Advertisement
EyesOfAHawk

Untitled

May 9th, 2018
127
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.24 KB | None
  1. //==Test Event Rental Glove
  2. amatsu,236,223,3    script  Event Dealer 3#ama  4_M_JPNOJI,{
  3.  
  4. while (true) {
  5.     mes("Hello, would you like to participate in the event?");
  6.     next();
  7.     switch (select(
  8.         "^ff1000I do not want to participate at the moment.",
  9.         "^00ff48I would love to, but what does it entail?",
  10.         "^e5da10Show me what event items I can buy!"
  11.     )) {
  12.     case 1:
  13.         mes("I am sorry but please come back when you are ready.");
  14.         close;
  15.  
  16.     case 2:
  17.         callsub(S_Yes);
  18.         break;
  19.     case 3:
  20.         callsub(S_Shop);
  21.         break;
  22.     }
  23. }
  24.  
  25. S_Yes:
  26.     mes("Some text.");
  27.     next;
  28.     return;
  29.  
  30.    
  31. S_Shop:
  32.     mes("Let's see what we have in store.");
  33.     close2();
  34.     openshop("Dummy_Shop_xxxxx");
  35.     end;
  36. }
  37.  
  38. //================Input Event Item Here================
  39. -   trader  Dummy_Shop_xxxxx    FAKE_NPC,{
  40.  
  41. OnInit:
  42.     tradertype(NST_CUSTOM);
  43.     sellitem(Red_Potion, 2);
  44.     sellitem(Wild_Rose_Hat, 5);
  45.     sellitem(Wit_Pumpkin_Hat, 5);
  46.     sellitem(Vanilmirth_Hat, 3);
  47.     sellitem(Turtle_Hat, 4);
  48.     end;
  49.  
  50. OnCountFunds:
  51.     setcurrency(countitem(Event_Token));
  52.     end;
  53.  
  54. OnPayFunds:
  55.     dispbottom(sprintf("Hi: price = %d", @price));
  56.     if (countitem(Event_Token) < @price)
  57.         end;
  58.     delitem(Event_Token, @price);
  59.     purchaseok();
  60.     end;
  61.  
  62. }
Advertisement
RAW Paste Data Copied
Advertisement