dize11 Posted August 30, 2013 Posted August 30, 2013 I have turn on in all pvp maps so i want it for certain maps only and warped to save point Quote
1 Skorm Posted August 31, 2013 Posted August 31, 2013 OnInit: set .maplist$, "|map1|map2|map3|map4|"; end; OnPCDieEvent: if( !compare(.maplist$,"|"+strcharinfo(3)+"|") ) end; set(@life,@life+1); if( @life > 1 ) { warp "SavePoint",0,0; set(@life,0); } end; 1 Quote
Skorm Posted August 31, 2013 Posted August 31, 2013 More info please... I'm not sure what you mean because when you die twice in a pvp room it warps to back to you save anyways. Quote
dize11 Posted August 31, 2013 Author Posted August 31, 2013 I have activated the option that when u die in pvp maps ull be warped at saved map but now i have activated pvp in all map so ill want to configure that into certain maps only by the way im using ea mod Quote
Emistry Posted August 31, 2013 Posted August 31, 2013 OnPCDieEvent: if( strcharinfo(3) == "mapname" ){ warp "SavePoint",0,0; } end; Quote
dize11 Posted August 31, 2013 Author Posted August 31, 2013 OnInit: set .maplist$, "|map1|map2|map3|map4|"; end; OnPCDieEvent: if( !compare(.maplist$,"|"+strcharinfo(3)+"|") ) end; set(@life,@life+1); if( @life > 1 ) { warp "SavePoint",0,0; set(@life,0); } end; How can i put in this script because not working if ill make another script file OnPCDieEvent: getmapxy .@map$, .@x, .@y, 0; for( set .@i, 0; .@i < getarraysize(.pvpmap$); set .@i, .@i+1 ) { if( .@map$ == .pvpmap$[.@i] ) { if ( #CASHPOINTS <= 0 ) end; set #CASHPOINTS,#CASHPOINTS-1; dispbottom "You have lose 1 Cash Point. Total is "+#CASHPOINTS+" Cash Points."; } } end; OnInit: setarray .pvpmap$[0],"guild_vs2","pvp_y_8-2","guild_vs1","guild_vs3","guild_vs4","guild_vs5","guild_vs1-2","1@orcs"; setarray .announcements$[0],"was killed by","was violated by","was owned by"; end; } Quote
Patskie Posted September 1, 2013 Posted September 1, 2013 Try : OnPCDieEvent: getmapxy .@map$, .@x, .@y, 0; for( set .@i, 0; .@i < getarraysize(.pvpmap$); set .@i, .@i+1 ) { if( .@map$ == .pvpmap$[.@i] ) { set @life, @life + 1; if ( @life > 1 ) { warp "SavePoint",0,0; } if ( #CASHPOINTS <= 0 ) end; set #CASHPOINTS,#CASHPOINTS-1; dispbottom "You have lose 1 Cash Point. Total is "+#CASHPOINTS+" Cash Points."; } } end; OnInit: setarray .pvpmap$[0],"guild_vs2","pvp_y_8-2","guild_vs1","guild_vs3","guild_vs4","guild_vs5","guild_vs1-2","1@orcs"; setarray .announcements$[0],"was killed by","was violated by","was owned by"; end; } Quote
dize11 Posted September 1, 2013 Author Posted September 1, 2013 Once ill killed me twice at 1st time in the room kicked me but if ill back in the pvp room just kick me in the 1st kill Quote
Joseph Posted September 1, 2013 Posted September 1, 2013 OnPCDieEvent: getmapxy .@map$, .@x, .@y, 0; for(set .@i, 0; .@i < getarraysize(.pvpmap$); set .@i, .@i+1) { if(.@map$ == .pvpmap$[.@i]) { set .@str$, "@life_" + .pvpmap$[.@i]; setd (.@str$, getd(.@str$) + 1); if (getd(.@str$) > 1) { warp "SavePoint",0,0; } if ( #CASHPOINTS <= 0 ) end; set #CASHPOINTS,#CASHPOINTS-1; dispbottom "You have lose 1 Cash Point. Total is "+#CASHPOINTS+" Cash Points."; } } end; OnInit: setarray .pvpmap$[0],"guild_vs2","pvp_y_8-2","guild_vs1","guild_vs3","guild_vs4","guild_vs5","guild_vs1-2","1@orcs"; setarray .announcements$[0],"was killed by","was violated by","was owned by"; end; } Quote
Emistry Posted September 2, 2013 Posted September 2, 2013 now i am confused with what exactly you want .... 1st you said ... when users died in pvp map...straight warp back to save point .... now.. can be if he died twice autokick isnt this is the original + default behavious of a pvp map where you died twice auto warp back to saved map .... Quote
Kido Posted April 26, 2014 Posted April 26, 2014 OnInit: set .maplist$, "|map1|map2|map3|map4|"; end; OnPCDieEvent: if( !compare(.maplist$,"|"+strcharinfo(3)+"|") ) end; set(@life,@life+1); if( @life > 1 ) { warp "SavePoint",0,0; set(@life,0); } end; this will kick any player who kills 2 times in a row another same player right? i'm looking for this feature DD: Quote
Potato Chips Posted September 1, 2014 Posted September 1, 2014 how about. resu kiling in pvp_y_1-2if the player is killed 5 consecutive times. then the killer will be sent to jail for 10mins. Quote
Question
dize11
I have turn on in all pvp maps so i want it for certain maps only and warped to save point
12 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.