darksoke
OnTop500
ok just figured out how this thing is working and is better than changing your playercrateinfo tables no pain in the ass
to make it work just remove "//" or add your own events
well hope you like it , you can use it however you want jos't don't repost it in other forums , thank you
Code:
[COLOR="#F0FFFF"]
class playertp : public PlayerScript
{
public:
playertp() : PlayerScript("playertp") { }
uint64 playerGUID;
void OnCreate(Player* player)
{
playerGUID = player->GetGUID();
}
void OnLogin(Player* player)
{
if (playerGUID == player->GetGUID())
{
//Give items to player
//player->AddItem(your_item_id, 1);
//player->AddItem(your_item_id, 1);
//player->AddItem(your_item_id, 1);
//player->AddItem(your_item_id, 1);
//player->AddItem(your_item_id, 1);
//player->AddItem(your_item_id, 1);
//player->AddItem(your_item_id, 1);
//Teleport player to specific location
//player->TeleportTo(map_id, x, y, z, orientation);
//player->TeleportTo(1, 4614.016602, -3857.074707, 944.145386, 1.041835);
}
}
};
void AddSC_playertp()
{
new playertp();
} [/COLOR]
to make it work just remove "//" or add your own events
well hope you like it , you can use it however you want jos't don't repost it in other forums , thank you
Last edited: