sphinx_mask.txt 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //===== rAthena Script =======================================
  2. //= Sphinx Mask Quest (custom)
  3. //===== By: ==================================================
  4. //= sabernet09
  5. //===== Current Version: =====================================
  6. //= 1.3
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= This quest is related to Umbalian Chief.
  11. //= 1.1 Removed it from official Umbala quests [Lupus]
  12. //= 1.2 Added a missing variable (sphmask_q) [erKURITA]
  13. //= 1.3 Optimized, and coordinates moved. [Euphy]
  14. //============================================================
  15. morocc,208,90,6 script Turban Thief 58,{
  16. mes "[Turban Thief]";
  17. if(event_umbala < 2) {
  18. mes "What do you wan te withz me? Be gone!";
  19. close; }
  20. if(sphmask_q) {
  21. mes "You have no more business with me, go away!";
  22. close; }
  23. mes "E'llo mah frien, would I interesst tu with this rare mask? Its value I assure you is real mah frien. Tis manific!";
  24. next;
  25. callsub L_Menu,1,"1,000,000",1000000;
  26. callsub L_Menu,2,"750,000",750000;
  27. callsub L_Menu,3,"500,000",500000;
  28. next;
  29. mes "[Turban Thief]";
  30. mes "Ack! Forgez it! I can do bettaz en elsez where!";
  31. set sphmask_q,1;
  32. close;
  33. L_Menu:
  34. mes "[Turban Thief]";
  35. switch(getarg(0)) {
  36. case 1: mes "Wah? O ho ho ho, so you know thaz I steal dis from those savages no? Well I won'tz give it back. But I will for a pricez... wat you say?"; break;
  37. case 2: mes "Ahh a business man are you no? Fine, how about..."; break;
  38. case 3: mes "Hmmm... you drive a hard bargain, ok... my final offer..."; break; }
  39. next;
  40. if(select("Pay "+getarg(1)+"z:No deal")==2) return;
  41. mes "[Turban Thief]";
  42. if (Zeny < getarg(2)) {
  43. mes "Are youz playin wit me? You don't have ze money!";
  44. close; }
  45. set Zeny, Zeny-getarg(2);
  46. mes "O ho ho, it's a deal, then!";
  47. getitem 7114,1;
  48. set sphmask_q,1;
  49. close;
  50. }