Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- prontera,159,180,3 script FreeItems 790,{
- mes "Here are some free items.";
- next;
- mes "Input the Item ID of your choice.";
- mes "^FF0000*0 to cancel^000000";
- do {
- input .@itemid;
- if (.@itemid == 0 ) {
- close;
- }
- if (getitemname(.@itemid) == "null") {
- mes "^FF0000"+.@itemid+"^000000 is not a valid item.";
- }
- }
- while (getitemname(.@itemid) == "null" );
- next;
- mes "How many ^FF0000"+getitemname(.@itemid)+"^000000 do you want?";
- mes "^FF0000*0 to cancel^000000";
- do {
- input .@itemamount;
- if((((getiteminfo(.@itemid,6))/10)*(.@itemamount)) > ((MaxWeight/10)-(Weight/10)) && (.@itemamount > 0 && .@itemamount <= 30000)) {
- mes "Sorry, ^FF0000"+.@itemamount+"x "+getitemname(.@itemid)+"^000000 will make you overweight.";
- }
- if (.@itemamount == 0) {
- close;
- }
- if (.@itemamount > 30000) {
- mes "Sorry, ^FF0000"+.@itemamount+"^000000 is not a valid amount.";
- }
- }
- while (.@itemamount > 30000 || ((((getiteminfo(.@itemid,6))/10)*(.@itemamount)) > ((MaxWeight/10)-(Weight/10))));
- next;
- mes "You requested for";
- mes "Item ID: ^FF0000"+.@itemid+"^000000.";
- mes "Item Name: ^FF0000"+getitemname(.@itemid)+"^000000.";
- mes "Amount: ^FF0000"+.@itemamount+"^000000.";
- mes " ";
- mes "Is this okay?";
- menu "Yes.",-,"No.",Notsatisfied;
- getitem .@itemid,.@itemamount;
- close;
- Notsatisfied:
- close;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement