mirror of
https://github.com/ornfelt/azerothcore_lua_scripts
synced 2026-08-22 06:26:03 -04:00
18 lines
No EOL
440 B
C++
18 lines
No EOL
440 B
C++
#include "ScriptPCH.h"
|
|
|
|
class ItemUse_item_custom : public ItemScript
|
|
{
|
|
public:
|
|
ItemUse_item_custom() : ItemScript("Gossip") {}
|
|
|
|
bool OnUse(Player* player, Item* item, SpellCastTargets const& targets)
|
|
{
|
|
player->SummonCreature(245,player->GetPositionX()+4 ,player->GetPositionY(), player->GetPositionZ(), 0,TEMPSUMMON_TIMED_DESPAWN,20000);
|
|
return true;
|
|
}
|
|
};
|
|
|
|
void AddSC_ItemUse_item_custom()
|
|
{
|
|
new ItemUse_item_custom();
|
|
} |