Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new_1-1,49,106,6 script ItemShopDemo 951,{
- mes "Hello Would you like to check my Shop?";
- //blablabla, shop call.
- set #KAFRAPOINTS,0;//Always 0, we use cashpoints.
- set #CASHPOINTS,countitem(909);//Currency Amount
- set @RRITMCur,909;//The Currency for this shop: Item ID
- close2;
- callshop "ITMCurMyShop",1;
- end;
- }
- //Shop Name must CONTAIN "ITMCur" to identify it as a item-currency cash shop.
- - cashshop ITMCurMyShop 74,5132:25,2115:50,5001:40,5003:45,5015:60,5073:50,5125:70,5230:25,5240:1
- new_1-1,52,106,6 script CharRegShopDemo 952,{
- mes "Hello Would you like to check my Shop?";
- //blablabla, shop call.
- set #KAFRAPOINTS,0;//Always 0, we use cashpoints.
- set #CASHPOINTS,MyCharCurrencyVal;//Currency Amount
- set @CharCurrrency$,"MyCharCurrencyVal";//The Currency for this shop: Char Reg Name
- close2;
- callshop "CharCurMyShop",1;
- end;
- }
- //Shop Name must CONTAIN "CharCur" to identify it as a charReg-Currency cash shop.
- - cashshop CharCurMyShop 74,5132:25,2115:50
- //Shop Name must CONTAIN "ITMCur" to identify it as a item-currency cash shop.
- - cashshop ITMCurMyShop 74,5132:25,2115:50
- new_1-1,55,106,6 script ACCRegShopDemo 952,{
- mes "Hello Would you like to check my Shop?";
- //blablabla, shop call.
- set #KAFRAPOINTS,0;//Always 0, we use cashpoints.
- set #CASHPOINTS,#MYAccCurrencyVal;//Currency Amount
- set @AccCurrrency$,"#MYAccCurrencyVal";//The Currency for this shop: Account Reg Name
- close2;
- callshop "ACCCurMyShop",1;
- end;
- }
- //Shop Name must CONTAIN "CharCur" to identify it as a charReg-Currency cash shop.
- - cashshop ACCCurMyShop 74,5132:25,2115:50
- //The following is just a example on how to add values to vars, YOU DONT AND SHOULDNT USE IT UNLESS TESTING.
- //the reg names here are just a example, it can read multiple var names.
- //any var name you set as CharCurrency or AccCurrrency will be read, you DONT need to get stuck with these names.
- new_1-1,46,103,6 script AddRegCurrency 953,{
- input @val;
- set MyCharCurrencyVal,@val;
- input @val;
- set #MYAccCurrencyVal,@val;
- mes "ok";
- close;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement