When player died

Nameleszx

New member
Messages
108
Points
0
When player die in a certain map (for example bossnia). It automatically warp the died player in prontera.

 
From cellphone so expect errors, or maybe not. Put this (or something like this) inside of a script:

OnPCDieEvent:

getmapxy(.@map$,.@x,.@y,0);

if (.@map$ == "bossnia") warp "prontera",0,0;

end;

PS: quite funny that auto correct tried to change prontera to printer.

 
shorter since u need only map name

OnPcDieEvent:

if(strcharinfo(3) == "bossnia") warp "prontera",0,0; end;

 
bossnia have 4 maps...

bossnia_01bossnia_02bossnia_03bossnia_04
the correct script should be

Code:
OnPCDieEvent:if( compare( strcharinfo(3),"bossnia_" ) )    warp "prontera",155,181;end;
 
Back
Top