Advertisement
Guest User

Untitled

a guest
Nov 20th, 2014
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. prontera.gat,142,180,5 script Berry Exchanger 626,{
  2.  
  3. set $@npcname_mpq$, "^4000C0[Trader]^000000";
  4. mes $@npcname_mpq$;
  5. mes "Hi, I'm the Yggdrasil Berry Exchanger, I can pack them into boxes for easir trading! Would you like to do some packing?";
  6. next;
  7. menu "Yes, Please!",L_Berry,"No Thanks.",L_Exit;
  8.  
  9. L_Berry:
  10. mes $@npcname_mpq$;
  11. mes "Input the amount of yggberry you want to pack";
  12. next;
  13. input .@amount;
  14. if ( .@amount == 100 || countitem(607) < .@amount ) {
  15. mes $@npcname_mpq$;
  16. mes "Invalid amount";
  17. close;
  18. }
  19.  
  20. delitem 607 ,100;
  21. mes $@npcname_mpq$;
  22. mes "You really have " +.@amount+ " berrys? Okay, Let's trade!";
  23. getitem 13517,1;
  24. mes ". . .";
  25. mes "Thank you sweety. Dont ygg too much!";
  26. close;
  27.  
  28. LNotEnough:
  29. mes "You dont have the required items...?";
  30. mes "Come back when you are actually ready. Now gtfo!";
  31. close;
  32.  
  33. Lnotenuff:
  34. mes "Wtf, come back when you got the goods!";
  35. close;
  36. L_Exit:
  37. close;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement