yuhsing

Untitled

Nov 17th, 2012
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. prontera,155,181,5 script Sample#sql_random 757,{
  2. if( query_sql( "SELECT `id` FROM `item_db` WHERE `type`='5' AND `equip_locations`='256' ORDER BY RAND() LIMIT 1",.@ItemID ) ){
  3. mes "You randomed "+getitemname( .@ItemID );
  4. getitem .@ItemID,1;
  5. }else{
  6. mes "Found Nothing...";
  7. }
  8. close;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment