Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. prt_in,31,109,4 script AD Set Dealer 871,{
  2.  
  3. mes "Please think TWICE before select the item(s).";
  4. mes "You need ^0055FF"+getitemname(.cost_id)+"^000000 to buy it.";
  5. mes "^FF0000WARNING^000000 : Make sure you have enough weight to carry items before it drops on the floor !";
  6. mes "GMs will not take any responsibilities of this case.";
  7. set .@i,select( .menu$ ) - 1;
  8. if( countitem( .cost_id ) < .cost[.@i] ){
  9. mes "You need ^FF0000"+.cost[.@i]+" x "+getitemname(.cost_id)+"^000000";
  10. }else{
  11. mes "Here your item...";
  12. mes "^FF0000"+.amount[.@i]+" x ^0055FF"+getitemname(.item_id[.@i])+"^000000";
  13. if( select( "Sure?","No" ) == 2 ) close;
  14. delitem .cost_id,.cost[.@i];
  15. getitem2 .item_id[.@i],.amount[.@i],1,0,0,0,0,0,0;
  16. }
  17. close;
  18.  
  19. OnInit:
  20. set .cost_id,7539;
  21. setarray .item_id,7135;
  22. setarray .cost,1;
  23. setarray .amount,10;
  24.  
  25. set .item_id_size,getarraysize( .item_id );
  26. for( set .@i,0; .@i < .item_id_size; set .@i,.@i + 1 )
  27. set .menu$,.menu$ + "^FF0000"+.amount[.@i]+" x ^0055FF"+getitemname(.item_id[.@i])+" ^777777- "+.cost[.@i]+" "+getitemname( .cost_id )+"^000000" + ":";
  28. end;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement