manabeast Posted July 1, 2012 Group: Members Topic Count: 138 Topics Per Day: 0.03 Content Count: 835 Reputation: 25 Joined: 11/22/11 Last Seen: December 4, 2012 Share Posted July 1, 2012 (edited) //http://code.google.com/p/ctscripts/ - script OnDieG5 -1,{ OnInit: set $killing,0; //PK Mode after last title (1 = On / 0 = Off) setarray .mapaspvp$[0],"lakeside01","poring_c02"; //Your PvP Maps setarray $titles$[0],"","{Killer}","{Attacker}","{Destroyer}","{Professional}","{Rampage}","{God of War}"; setarray .ammount[0],0,5,10,15,20,30,40,50; OnPCKillEvent: getmapxy(@mapa$,@x,@y,0); for(set @c,0; @c < getarraysize(.@mapaspvp$); set @c,@c+1) { if(@mapa$ == .@mapaspvp$[@c] && killedrid != getcharid(0)) { set killer,killer+1; for(set @d,0; @d < getarraysize(.ammount); set @d,@d+1) { if(killer == .ammount[@d]) { set title,@d; if(title != getarraysize($titles$)) dispbottom "You unlocked the title: "+$titles$[title]; if(title == getarraysize($titles$) && $killing == 1) dispbottom "You unlocked the last title: "+$titles$[title]+" and now you are in PK mode"; } } } } end; OnPCDieEvent: getmapxy(@mapa$,@x,@y,0); for(set @c,0; @c < getarraysize(.@mapaspvp$); set @c,@c+1) if(@mapa$ == .@mapaspvp$[@c]) { if(killer > 0) set killer,killer -1; } end; } - script TitleG5 -1,{ OnPCLoginEvent: atcommand "@fakename "+$titles$[title]+strcharinfo(0); if(title == getarraysize($titles$) && killing == 1) { atcommand "@killable"; atcommand "@killer"; } end; } why have those debug? i just change the title only @@? Edited July 2, 2012 by manabeast Quote Link to comment Share on other sites More sharing options...
Emistry Posted July 1, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted July 1, 2012 end; <--------------------------- OnPCKillEvent: 1 Quote Link to comment Share on other sites More sharing options...
manabeast Posted July 1, 2012 Group: Members Topic Count: 138 Topics Per Day: 0.03 Content Count: 835 Reputation: 25 Joined: 11/22/11 Last Seen: December 4, 2012 Author Share Posted July 1, 2012 } end; OnNPCKillEvent: } like this? in mapserv [Error]: script_rid2sd: fatal error ! player not attached ! Quote Link to comment Share on other sites More sharing options...
Euphy Posted July 1, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted July 1, 2012 I think he means "OnPCKillEvent". Add an "end" after line 7. 1 Quote Link to comment Share on other sites More sharing options...
manabeast Posted July 2, 2012 Group: Members Topic Count: 138 Topics Per Day: 0.03 Content Count: 835 Reputation: 25 Joined: 11/22/11 Last Seen: December 4, 2012 Author Share Posted July 2, 2012 thanks ^^ Quote Link to comment Share on other sites More sharing options...
Question
manabeast
why have those debug? i just change the title only @@?
Edited by manabeastLink to comment
Share on other sites
4 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.