xSense Posted January 4, 2014 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 1 Reputation: 0 Joined: 11/15/13 Last Seen: October 5, 2014 Share Posted January 4, 2014 Can someone help me with this? I need NPC like MVP Ranking but with Golden Peco(id:1233) Ranking. Without announce please. Like: 1. xSense killed 1212 Golden Peco. 2.Obama killed 1000 Golden Peco. ...etc. Quote Link to comment Share on other sites More sharing options...
Wolf Posted January 4, 2014 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 96 Reputation: 42 Joined: 11/15/11 Last Seen: May 19, 2023 Share Posted January 4, 2014 With the label's monster command puts you below: set $monster, $monster + 1; dispbottom "You killed "+$monster+" Peco!"; end; Or if you want a permanent variable, even a reboot, make: set monster, monster + 1; dispbottom "You killed "+monster+" Peco!"; end; Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted January 6, 2014 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted January 6, 2014 script request section ... oh yeah ... I'm guessing you are using this gold room script /* alter table `char` add `gold_rank` int(11) unsigned default 0 after unban_time, add index (gold_rank); */ prontera,155,180,5 script kjfhsdkfjhs 100,{ .@nb = query_sql( "select name, gold_rank from `char` where gold_rank > 0 order by gold_rank desc limit 2", .@name$, .@gold ); if ( !.@nb ) { mes "no ranking yet"; close; } for ( .@i = 0; .@i < .@nb; .@i++ ) mes .@name$ +" killed "+ .@gold +" Golden Peco"; close; OnNPCKillEvent: if ( strcharinfo(3) == "ordeal_1-2" && killedrid == 1369 ) query_sql "update `char` set gold_rank = gold_rank +1 where char_id = "+ getcharid(0); end; } Quote Link to comment Share on other sites More sharing options...
Question
xSense
Can someone help me with this? I need NPC like MVP Ranking but with Golden Peco(id:1233) Ranking.
Without announce please. Like:
1. xSense killed 1212 Golden Peco.
2.Obama killed 1000 Golden Peco.
...etc.
Link to comment
Share on other sites
2 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.