Come2WoW
Respected Member
Code:
I wrote the script for : cuando player deaded in (gurbashi (( area = 2177)) and icc ((area = 210)))
teleport to a map but dosnt work. tanks for fixe this :
PHP:
#include "ScriptPCH.h"
class Test : public PlayerScript
{
public:
Test() : PlayerScript("Test") { }
void OnPvPKill(Player *pKiller, Player *pVictim)
{
switch (pVictim ->GetAreaId())
{
case 2177: //pvp ring area
pVictim->TeleportTo(1, 4926.140137, -2844.216064, 1441.364624, 1.332412);
break;
}
switch (pVictim ->GetAreaId())
{
case 210: //icc area
pVictim->TeleportTo(1, 4926.140137, -2844.216064, 1441.364624, 1.332412);
break;
}
}
};
void AddSC_Test ()
{
new Test ();
}