Advertisement
Guest User

Npc Demo

a guest
Dec 29th, 2012
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. new_1-1,49,106,6 script ItemShopDemo 951,{
  2. mes "Hello Would you like to check my Shop?";
  3. //blablabla, shop call.
  4. set #KAFRAPOINTS,0;//Always 0, we use cashpoints.
  5. set #CASHPOINTS,countitem(909);//Currency Amount
  6. set @RRITMCur,909;//The Currency for this shop: Item ID
  7. close2;
  8. callshop "ITMCurMyShop",1;
  9. end;
  10. }
  11. //Shop Name must CONTAIN "ITMCur" to identify it as a item-currency cash shop.
  12. - cashshop ITMCurMyShop 74,5132:25,2115:50,5001:40,5003:45,5015:60,5073:50,5125:70,5230:25,5240:1
  13. new_1-1,52,106,6 script CharRegShopDemo 952,{
  14. mes "Hello Would you like to check my Shop?";
  15. //blablabla, shop call.
  16. set #KAFRAPOINTS,0;//Always 0, we use cashpoints.
  17. set #CASHPOINTS,MyCharCurrencyVal;//Currency Amount
  18. set @CharCurrrency$,"MyCharCurrencyVal";//The Currency for this shop: Char Reg Name
  19. close2;
  20. callshop "CharCurMyShop",1;
  21. end;
  22. }
  23. //Shop Name must CONTAIN "CharCur" to identify it as a charReg-Currency cash shop.
  24. - cashshop CharCurMyShop 74,5132:25,2115:50
  25. //Shop Name must CONTAIN "ITMCur" to identify it as a item-currency cash shop.
  26. - cashshop ITMCurMyShop 74,5132:25,2115:50
  27. new_1-1,55,106,6 script ACCRegShopDemo 952,{
  28. mes "Hello Would you like to check my Shop?";
  29. //blablabla, shop call.
  30. set #KAFRAPOINTS,0;//Always 0, we use cashpoints.
  31. set #CASHPOINTS,#MYAccCurrencyVal;//Currency Amount
  32. set @AccCurrrency$,"#MYAccCurrencyVal";//The Currency for this shop: Account Reg Name
  33. close2;
  34. callshop "ACCCurMyShop",1;
  35. end;
  36. }
  37. //Shop Name must CONTAIN "CharCur" to identify it as a charReg-Currency cash shop.
  38. - cashshop ACCCurMyShop 74,5132:25,2115:50
  39. //The following is just a example on how to add values to vars, YOU DONT AND SHOULDNT USE IT UNLESS TESTING.
  40. //the reg names here are just a example, it can read multiple var names.
  41. //any var name you set as CharCurrency or AccCurrrency will be read, you DONT need to get stuck with these names.
  42. new_1-1,46,103,6 script AddRegCurrency 953,{
  43. input @val;
  44. set MyCharCurrencyVal,@val;
  45. input @val;
  46. set #MYAccCurrencyVal,@val;
  47. mes "ok";
  48. close;
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement