Fixed db2 loading, and world login.
This commit is contained in:
@@ -39,9 +39,6 @@ namespace Scripts.World.ItemScripts
|
||||
//Pilefakefur
|
||||
public const uint NesingwaryTrapper = 25835;
|
||||
|
||||
//Helpthemselves
|
||||
public const uint TrappedMammothCalf = 25850;
|
||||
|
||||
//Theemissary
|
||||
public const uint Leviroth = 26452;
|
||||
|
||||
@@ -59,16 +56,6 @@ namespace Scripts.World.ItemScripts
|
||||
187999, 188000, 188001, 188002, 188003,
|
||||
188004, 188005, 188006, 188007, 188008,
|
||||
};
|
||||
|
||||
//Helpthemselves
|
||||
public static uint[] MammothTraps =
|
||||
{
|
||||
188022, 188024, 188025, 188026, 188027,
|
||||
188028, 188029, 188030, 188031, 188032,
|
||||
188033, 188034, 188035, 188036, 188037,
|
||||
188038, 188039, 188040, 188041, 188042,
|
||||
188043, 188044
|
||||
};
|
||||
}
|
||||
|
||||
struct QuestIds
|
||||
@@ -199,35 +186,6 @@ namespace Scripts.World.ItemScripts
|
||||
}
|
||||
}
|
||||
|
||||
[Script]
|
||||
class item_dehta_trap_smasher : ItemScript
|
||||
{
|
||||
public item_dehta_trap_smasher() : base("item_dehta_trap_smasher") { }
|
||||
|
||||
public override bool OnUse(Player player, Item item, SpellCastTargets targets, ObjectGuid castId)
|
||||
{
|
||||
if (player.GetQuestStatus(QuestIds.CannotHelpThemselves) != QuestStatus.Incomplete)
|
||||
return false;
|
||||
|
||||
Creature pMammoth = player.FindNearestCreature(CreatureIds.TrappedMammothCalf, 5.0f);
|
||||
if (!pMammoth)
|
||||
return false;
|
||||
|
||||
foreach (var id in GameObjectIds.MammothTraps)
|
||||
{
|
||||
GameObject pTrap = player.FindNearestGameObject(id, 11.0f);
|
||||
if (pTrap)
|
||||
{
|
||||
pMammoth.GetAI().DoAction(1);
|
||||
pTrap.SetGoState(GameObjectState.Ready);
|
||||
player.KilledMonsterCredit(CreatureIds.TrappedMammothCalf);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
[Script]
|
||||
class item_captured_frog : ItemScript
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user