Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turbo_room,66,82,6 script Donation NPC 4_F_SCIENCE,{
- mes "Donation Exchanger";
- mes "I can exchange Pods for stuff.";
- next;
- mes "Donation Exchanger";
- mes "Please see our Forums for our";
- mes "Exchange Rate of Proof of Donation";
- next;
- .@menu = select("Headgear:Armor:Shield:Shoes:Weapons");
- switch(.@menu) {
- case 1:
- mes "Donation Exchanger";
- mes "Headgears cost pods and something something";
- openshop("HeadgearPods");
- close;
- break;
- // do the same for case 1 to below
- case 2:
- openshop("ArmorPods");
- close;
- break;
- case 3:
- openshop("ShieldPods");
- close;
- break;
- case 4:
- openshop("ShoesPods");
- close;
- break;
- case 5:
- openshop("WeaponsPods");
- close;
- break;
- }
- }
- // Enter your headgears here
- // Repeat script for ArmorPods, ShoesPods, etc.
- - script HeadgearPods FAKE_NPC,{
- OnInit:
- tradertype(NST_CUSTOM);
- sellitem 501,1,1; // Sells 1 Red Potion for 1 Currency (Pods)
- end;
- - script ArmorPods FAKE_NPC,{
- OnInit:
- tradertype(NST_CUSTOM);
- sellitem 502,1,1; // Sells 1 Red Potion for 1 Currency (Pods)
- end;
- - script ShieldPods FAKE_NPC,{
- OnInit:
- tradertype(NST_CUSTOM);
- sellitem 503,1,1; // Sells 1 Red Potion for 1 Currency (Pods)
- end;
- - script ShoesPods FAKE_NPC,{
- OnInit:
- tradertype(NST_CUSTOM);
- sellitem 504,1,1; // Sells 1 Red Potion for 1 Currency (Pods)
- end;
- - script WeaponsPods FAKE_NPC,{
- OnInit:
- tradertype(NST_CUSTOM);
- sellitem 505,1,1; // Sells 1 Red Potion for 1 Currency (Pods)
- end;
- // Sets Pods as the store currency
- OnCountFunds:
- setcurrency(countitem("7179"));
- end;
- // I don't know about this I just copied it from the trader sample.
- // The 's'/'have'/'has' is about getting the correct grammar/plural
- OnPayFunds:
- dispbottom ""+price+" Pod" + (@price == 1?"":"s") + " " + (@price == 1?"has":"have") + " been deducted from your inventory."; // put @ before '+price+' so it is '+@price+'
- if( countitem(pods) < @points || countitem("7179") < price-points) // put @ before each one, forum is censoring them
- end;
- delitem 7179,@points;
- delitem 7179,@price-@points;
- purchaseok();
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement