brunoshp Posted September 15, 2013 Group: Members Topic Count: 64 Topics Per Day: 0.01 Content Count: 180 Reputation: 7 Joined: 12/19/12 Last Seen: November 21, 2024 Share Posted September 15, 2013 Hi, i need to reset rank in every day 30, and send 1 rop for leader, it is posible? my rank: prontera,140,180,4 script Ranking 857,{ mes "rank PvP [TOP 10]"; next; query_sql "SELECT name, kills, deaths FROM pvp ORDER BY kills DESC LIMIT 10",@name$,@kills,@deaths; dispbottom "Ranking PvP [TOP 10]"; dispbottom " "; dispbottom "Position < x > Name < x > kills < x > deaths"; dispbottom " "; for(set @i,0;@i<=9;set @i,@i+1) { dispbottom "["+(@i+1)+"] < x > "+@name$[@i]+" < x > "+@kills[@i]+" < x > "+@deaths[@i]+""; } close; } Quote Link to comment Share on other sites More sharing options...
Patskie Posted September 15, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 5 hours ago Share Posted September 15, 2013 Add this on your script : OnDay0130: OnDay0228: OnDay0330: OnDay0430: OnDay0530: OnDay0630: OnDay0730: OnDay0830: OnDay0930: OnDay1030: OnDay1130: OnDay1230: set .prize, 7227; set .amount, 5; query_sql "SELECT `name` FROM `pvp` ORDER BY `kills` DESC LIMIT 1",@name$; if (!isloggedin(getcharid(3, @name$))) { query_sql "INSERT INTO `inventory` ( `char_id`, `nameid`, `amount`, `equip`, `identify` ) VALUES ( '" +getcharid(0, @name$)+ "', '" +.prize+ "', '" +.amount+ "', 0, 1)"; } else getitem .prize, .amount, getcharid(3, @name$); query_sql "TRUNCATE TABLE `pvp`"; end; Quote Link to comment Share on other sites More sharing options...
brunoshp Posted September 16, 2013 Group: Members Topic Count: 64 Topics Per Day: 0.01 Content Count: 180 Reputation: 7 Joined: 12/19/12 Last Seen: November 21, 2024 Author Share Posted September 16, 2013 thz.!!!! Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 17, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted September 17, 2013 i think should be } else getitem .prize, .amount,getcharid(3, @name$); 1 Quote Link to comment Share on other sites More sharing options...
Patskie Posted September 21, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 5 hours ago Share Posted September 21, 2013 Thanks for the reminder @Emistry . Edited my last post Quote Link to comment Share on other sites More sharing options...
Question
brunoshp
Hi, i need to reset rank in every day 30, and send 1 rop for leader, it is posible?
my rank:
Link 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.