Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class item_the_bundle_of_bloodthistle : public ItemScript
- {
- public:
- item_the_bundle_of_bloodthistle() : ItemScript("item_the_bundle_of_bloodthistle") { }
- bool OnUse(Player* player, Item *pItem, SpellCastTargets const& targets)
- {
- if (player->GetQuestStatus(10570) == QUEST_STATUS_INCOMPLETE)
- {
- if (player){
- Creature *Icarius = player->SummonCreature(21409, player->GetPositionX() + 5 , player->GetPositionY() - 63, player->GetPositionZ() - 6, player->GetAngle(player) - 180 , TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 80000);
- Creature *Zarath = player->SummonCreature(21410, player->GetPositionX() + 5 , player->GetPositionY() - 60, player->GetPositionZ() - 6, player->GetAngle(player) - 180, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 80000);
- if (Zarath && Icarius){
- Icarius->GetMotionMaster()->MovePoint(0,player->GetPositionX() + 3 ,player->GetPositionY() - 10 ,player->GetPositionZ());
- Icarius->SetHomePosition(player->GetPositionX() + 3 ,player->GetPositionY() - 10 ,player->GetPositionZ(), player->GetOrientation());
- Zarath->GetMotionMaster()->MovePoint(0,player->GetPositionX() + 1 ,player->GetPositionY() - 8 ,player->GetPositionZ());
- Zarath->SetHomePosition(player->GetPositionX() + 1 ,player->GetPositionY() - 8 ,player->GetPositionZ(), player->GetOrientation());
- }
- }
- return false;
- }
- return true;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment