Hi everyone. Does anyone know how to fix this script?
Here are the things that I need for this script..
1st: I want this script pick a card from the system and in every 2 hours it will change to another card. picking a card should be random and all the cards in the system should be available.
2nd: While the time is not up yet the picked card can be seen from the NPC and it will just change to another card when 2 hours is up.
prontera,150,150,5 script Sample 89,{mes "No available cards at the moment.";close; OnClock0000:OnClock0200: OnClock0400:OnClock0600:OnClock0800:OnClock1000:OnClock1200:OnClock1400:OnClock1600:OnClock1800:OnClock2000:OnClock2200:OnStart:.number = rand(1,494); // this are the number of cards available in the system.@cards = query_sql("SELECT `card_id`,`card_names`,`cedi_points`,`id` FROM `cards` WHERE `id` = "+.number+"",@ccards,@cnames,@cpoints,@cid) ;for (.@i = 0; .@i < .@cards; .@i++ ) if( .number == @cid[.@i] ) {mes "I'm missing a " +@cnames[.@i]+ ". I can offer " +@cpoints[.@i]+ " premium points in return.";close;}}
I hope that anyone understand what I mean. Please help me. Thanks...
Hi everyone. Does anyone know how to fix this script?
Here are the things that I need for this script..
1st: I want this script pick a card from the system and in every 2 hours it will change to another card. picking a card should be random and all the cards in the system should be available.
2nd: While the time is not up yet the picked card can be seen from the NPC and it will just change to another card when 2 hours is up.
I hope that anyone understand what I mean. Please help me. Thanks...
Share this post
Link to post
Share on other sites