ش | ی | د | س | چ | پ | ج |
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
#include "ScriptPCH.h"
class item_teleport : public ItemScript {
public:
item_teleport() : ItemScript("item_teleport") {}
bool OnUse(Player * player, Item * /*item*/, SpellCastTargets const& /*targets*/)
{
if (player->IsInCombat())
{
player->GetSession()->SendNotification(" shoma dar combat hastid!");
}
{
player->TeleportTo(0, 1234.00f, 4321.00f, 1242.00f, 4323.00f); // dar inja shoma mitonid mantaghe mored nazar ro entekhab konid map x y z o ba coomand .gps be dast avarid
return true;
}
}
};
void AddSC_item_teleport()
{
new item_teleport();
}
منبع : irancore