public static void CreateMorphItem(int x, int y, int inactiveItemID, int activeItemID, int range, int hue) { MorphItem item = new MorphItem(inactiveItemID, activeItemID, range); item.Hue = hue; item.MoveToWorld(new Point3D(x, y, -1), Map.Malas); }
public static void CreateMorphItem(int x, int y, int z, int inactiveItemID, int activeItemID, int range) { if (FindMorphItem(x, y, z, inactiveItemID, activeItemID)) { return; } MorphItem item = new MorphItem(inactiveItemID, activeItemID, range, 3); item.MoveToWorld(new Point3D(x, y, z), Map.Felucca); m_Count++; }
public static void CreateBigTeleporterItem(int x, int y, bool reverse) { if (FindMorphItem(x, y, 0, reverse ? 0x17DC : 0x17EE, reverse ? 0x17EE : 0x17DC)) { return; } MorphItem item = new MorphItem(reverse ? 0x17DC : 0x17EE, reverse ? 0x17EE : 0x17DC, 1, 3); item.MoveToWorld(new Point3D(x, y, 0), Map.Felucca); m_Count++; }
public static void CreateApproachLight(int x, int y, int z, int off, int on, LightType light) { if (FindMorphItem(x, y, z, off, on)) { return; } MorphItem item = new MorphItem(off, on, 2, 3); item.Light = light; item.MoveToWorld(new Point3D(x, y, z), Map.Felucca); m_Count++; }
public static void CreateMorphItem(int x, int y, int inactiveItemID, int activeItemID, int range, int hue) { var loc = new Point3D(x, y, -1); var map = Map.Malas; if (!MythikStaticValues.UpdateLoc(ref loc, ref map)) { return; } MorphItem item = new MorphItem(inactiveItemID, activeItemID, range); item.Hue = hue; item.MoveToWorld(loc, map); }
public static void CreateMorphItem(int x, int y, int inactiveItemID, int activeItemID, int range, int hue) { var p = new Point3D(x, y, -1); MorphItem item; if (FindObject(Map.Malas, p, 0, out item)) { item.Delete(); } item = new MorphItem(inactiveItemID, activeItemID, range); item.MoveToWorld(p, Map.Malas); item.Hue = hue; WeakEntityCollection.Add("doom", item); }