Jump to content
The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades. ×
  • 0

Breaker of the month


Outfox pRO

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   0
  • Joined:  01/25/13
  • Last Seen:  

please set my breaker of the month to war of emperium only thank you



prontera,157,197,3 script BOTM 413,{

mes "[Breaker of The Month]";
set @nb, query_sql("select name,count(*) as wins from `emp_breakers` left join `char` on `char`.char_id=`emp_breakers`.char_id where `time`>='"+(gettimetick(2)-(3600*24*30))+"' group by `emp_breakers`.char_id ORDER BY wins DESC LIMIT 1", @name$, @wins);
if(@nb)
{
mes ""+@name$[0]+" - "+@wins[0]+" wins";
}
else
{
mes "We have not this player";
monster "prontera",160,186,"Poringz0rd",1288,1;
}
close;

OnInit:
waitingroom "Breaker Of The Month",0;
end;
query_sql("CREATE TABLE IF NOT EXISTS `emp_breakers` (`id` int(20) NOT NULL AUTO_INCREMENT,`char_id` int(30) NOT NULL,`time` int(30) NOT NULL,PRIMARY KEY (`id`)) ENGINE=InnoDB;");
end;

OnNPCKillEvent:
if(killedrid == 1288)
{
query_sql("insert into emp_breakers values (null, '"+getcharid(0)+"', UNIX_TIMESTAMP())");
}
end;
}

Edited by Patskie
Change to code
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   616
  • Joined:  07/05/12
  • Last Seen:  

I don't undersand your request, please reformulate it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...