Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ScriptPCH.h"
- class crafting_table_item : public ItemScript
- {
- crafting_table_item : ItemScript("crafting_table_item") { }
- bool OnUse(Player* player, Item* item, const SpellCastTargets &)
- {
- if(player->IsInCombat())
- {
- player->GetSession()->SendNotification("You cannot summon your crafting table while in combat!");
- return false;
- }
- player->SummonGameObject(180698, player->GetX() + 5, player->GetY(), player->GetZ(), 0, 0, 0, 0, 0, 1000);
- return true;
- }
- };
- void AddSC_crafting_table_item()
- {
- new crafting_table_item();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement