retroflav Posted June 2, 2013 Posted June 2, 2013 Hello can I request an Izlude type pvp that will auto resu and auto random warp a player on death and player could only get out the pvp room when he types @die. Quote
Jaburak Posted June 2, 2013 Posted June 2, 2013 - script pvpresu -1,{ OnInit: set .map$,"pvp_y_1-2"; OnPCDieEvent: if(getmapflag(strcharinfo(3),mf_pvp) == 0) end; if(strcharinfo(3) != .map$) end; dispbottom "You'll be revived in 3 seconds"; sleep2 3000; warp strcharinfo(3),0,0; if(HP == 0) atcommand "@alive"; percentheal 100,100; } Quote
Capuche Posted June 2, 2013 Posted June 2, 2013 - script junion -1,{ OnInit: set .map$,"pvp_y_1-2"; end; OnPCDieEvent: if(strcharinfo(3) != .map$) end; if( !killerrid )// suicide warp "prontera",0,0; else warp strcharinfo(3),0,0; percentheal 100,100; } @Anakid You forgot an end after set .map$,"pvp_y_1-2"; You can remove the unecessary getmapflag since you already defined the map in oninit if(getmapflag(strcharinfo(3),mf_pvp) == 0) end; warp strcharinfo(3),0,0; if(HP == 0) atcommand "@alive"; The hp value of player warped is always 1. Quote
retroflav Posted June 3, 2013 Author Posted June 3, 2013 (edited) This is such a great help. Thank you! It works finally! Edited June 3, 2013 by retroflav Quote
Question
retroflav
Hello can I request an Izlude type pvp that will auto resu and auto random warp a player on death and player could only get out the pvp room when he types @die.
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.