Lil Troll Posted July 14, 2013 Posted July 14, 2013 This is Mysterious Script, anyone knows how to add map that will not affect by this script. example if I died in payon I will not be affected by this script like I will be resurected to my savepoint already can someone help me. prontera,99,120,4 script death 78 OnPCDieEvent: warp "prontera",x,x; sleep2 1000; announce "Hey "+strcharinfo(0)+", It seems you have died! Don't worry, you will be resurected in 3 Seconds!",bc_blue|bc_self; //sleep2 3000; //announce "10",bc_blue|bc_self; //sleep2 1000; //announce "9",bc_blue|bc_self; //sleep2 1000; //announce "8",bc_blue|bc_self; //sleep2 1000; //announce "7",bc_blue|bc_self; //sleep2 1000; //announce "6",bc_blue|bc_self; //sleep2 1000; //announce "5",bc_blue|bc_self; //sleep2 1000; //announce "4",bc_blue|bc_self; //sleep2 1000; announce "3",bc_blue|bc_self; sleep2 1000; announce "2",bc_blue|bc_self; sleep2 1000; announce "1",bc_blue|bc_self; sleep2 1000; announce "Respawning..",bc_blue|bc_self; atcommand "@alive "+strcharinfo(0); sleep2 1000; atcommand "@load "+strcharinfo(0); } Quote
Skorm Posted July 14, 2013 Posted July 14, 2013 (edited) This is Mysterious Script, anyone knows how to add map that will not affect by this script. example if I died in payon I will not be affected by this script like I will be resurected to my savepoint already can someone help me. prontera,99,120,4 script death 78,{ end; OnPCDieEvent: if(strcharinfo(3)=="payon"){ warp "SavePoint",0,0; } warp "prontera",0,0; sleep2 1000; announce "Hey "+strcharinfo(0)+", It seems you have died! Don't worry, you will be resurected in 3 Seconds!",bc_blue|bc_self; announce "3",bc_blue|bc_self; sleep2 1000; announce "2",bc_blue|bc_self; sleep2 1000; announce "1",bc_blue|bc_self; sleep2 1000; announce "Respawning..",bc_blue|bc_self; atcommand "@alive "+strcharinfo(0); sleep2 1000; atcommand "@load "+strcharinfo(0); } Edited July 15, 2013 by Skorm Quote
Skorm Posted July 15, 2013 Posted July 15, 2013 bump! It's extremely rude to bump a problem that you're already getting help for. =_=* If there is a problem with the script POST the error message... If the script isn't doing what you want then you've haven't given us enough information. READ http://rathena.org/board/forum-30/announcement-9-scripting-support-easy-as-1-2-3/ before posting. Quote
Lil Troll Posted July 15, 2013 Author Posted July 15, 2013 (edited) ohhh, sorry i didnt mean it i didnt see your reply.. The script do teleport you to a certain place when you died, and wait for a certain sec whether how many sec do you like, ireally want to know who to add map exception to this scripts. Edited July 15, 2013 by coldfire2k Quote
Xynvaroth Posted July 15, 2013 Posted July 15, 2013 (edited) Skorm offered you a solution to exclude one map already: if(strcharinfo(3)=="payon"){ warp "SavePoint",0,0; }If you want a generic solution with which you can just list all maps to be excluded in an array, try this:OnPCDieEvent: deletearray .@ExcludedMaps$[ 0 ], getarraysize( .@ExcludedMaps$[ 0 ] ); setarray .@ExcludedMaps$[ 0 ], "payon", "prontera", "izlude"; // [Xynvaroth]: Add all the maps to be excluded here. for( set .@Index, 0; .@Index <= getarraysize( .@ExcludedMaps$ ); set .@Index, .@Index + 1 ) if( strcharinfo( 3 ) == .@ExcludedMaps$[ .@Index ] ) end; // [Xynvaroth]: Put the rest of your code after this comment. Edited July 15, 2013 by Xynvaroth Quote
Lil Troll Posted July 15, 2013 Author Posted July 15, 2013 Ohh i didnt see that, am very sorry, thanks skorm! and thank you xynvaroth, im bit drowzy thats why i cant read properly, 47/7 of scripting my serv. thanks so much guys! Quote
Question
Lil Troll
6 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.