Jump to content
  • 0

Breaker Ladder


integral

Question


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  167
  • Reputation:   4
  • Joined:  02/01/12
  • Last Seen:  

Hello there, could you please help me with this problem?

I'm using this script, here(thank you for the script). Though I removed the prizes(sorry, I'm not sure if modifying it is allowed). But the problem is, even if it runs perfectly well on my lan server, when I tried it on my hosted server, the npc does not store any values in phpmyadmin.

Here's the modified script that I'm using.

prontera,148,166,5	script	Breaker Ladder	864,{



query_sql "SELECT `char`.char_id,`char`.`name`,global_reg_value.`value` FROM global_reg_value LEFT JOIN `char` ON global_reg_value.char_id=`char`.char_id WHERE global_reg_value.str='brokeemp' ORDER BY CAST(`global_reg_value`.`value` AS UNSIGNED) DESC LIMIT 10", .@char_id, .@name$, .@count;



mes "[ ^00FF00 Breaker Ladder ^000000 ]";
mes "Hello there "+strcharinfo(0)+", what do you want to do?";
menu "View Breaker Ladder",-,"Nothing",Lno;
next;

next;
for( set .@x,0; .@x<=9; set .@x,.@x+1 )
{
	mes "^0000FF"+(.@x+1)+".^000000 "+.@name$[.@x]+" - ^FF0000"+.@count[.@x]+"^000000 Point(s)";
} // .@x starts at 0, but you want to start with '1st', so use (.@x+1)
close;


Lno:
next;
mes "[ ^00FF00 Breaker Ladder ^000000 ]";
mes "Suit yourself..";
close;

}

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...