kings_items.txt 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. //===== rAthena Script =======================================
  2. //= Event King Items
  3. //===== By: ==================================================
  4. //= $ephiroth
  5. //===== Current Version: =====================================
  6. //= 1.1
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= Grand Circlet Quest combined with Excalibur Quest.
  11. //===== Additional Comments: =================================
  12. //= 2006/09/27: 1.0 Release and fully working. [$ephiroth]
  13. //= 1.1 Optimized. [Euphy]
  14. //============================================================
  15. prt_castle,80,170,4 script King of Prontera 108,{
  16. mes "[King of Prontera]";
  17. mes "Hello, can you help me?";
  18. next;
  19. if(select("Sure, what can I do?:Sorry, I'm busy.")==2) {
  20. mes "[King of Prontera]";
  21. mes "Ok, that's fine, I'm sure someone else will help.";
  22. close; }
  23. mes "[King of Prontera]";
  24. mes "Thank you. Well, my daughter next to me is a little rowdy...";
  25. mes "If you get her these items I'm sure she'll calm down.";
  26. mes "I'll give you my crown or my sword as a reward.";
  27. next;
  28. setarray .@Items1[0],5007,742,30,741,50,753,20,732,1,710,20,629,20;
  29. setarray .@Items2[0],1137,2254,1,2282,1,714,1;
  30. switch(select("What do you need?:I have the items!:Forget it.")) {
  31. case 1:
  32. for(set .@i,1; .@i<3; set .@i,.@i+1) {
  33. mes "[King of Prontera]";
  34. mes "If you could get me:";
  35. for(set .@j,1; .@j<getarraysize(getd(".@Items"+.@i)); set .@j,.@j+2)
  36. mes " ~ ^0055FF"+getd(".@Items"+.@i+"["+(.@j+1)+"]")+"^000000x "+getitemname(getd(".@Items"+.@i+"["+.@j+"]"));
  37. mes "I'll give my "+((.@i)?"sword.":"crown.");
  38. if (.@i==2) close;
  39. next; }
  40. case 2:
  41. mes "[King of Prontera]";
  42. mes "What item do you want?";
  43. next;
  44. set .@i, select("Crown:Sword");
  45. for(set .@j,1; .@j<getarraysize(getd(".@Items"+.@i)); set .@j,.@j+2)
  46. if (countitem(getd(".@Items"+.@i+"["+.@j+"]")) < getd(".@Items"+.@i+"["+(.@j+1)+"]")) set .@nr,1;
  47. mes "[King of Prontera]";
  48. if (.@nr) {
  49. mes "You're missing something.";
  50. mes "Come back after you get ALL the items.";
  51. close; }
  52. for(set .@j,1; .@j<getarraysize(getd(".@Items"+.@i)); set .@j,.@j+2)
  53. delitem getd(".@Items"+.@i+"["+.@j+"]"), getd(".@Items"+.@i+"["+(.@j+1)+"]");
  54. getitem getd(".@Items"+.@i+"[0]"),1;
  55. mes "THANK YOU SOO MUCH!!";
  56. mes "This will surely calm her down.";
  57. mes "As promised, here is my "+((.@i==1)?"crown.":"sword.");
  58. close;
  59. case 3:
  60. mes "[King of Prontera]";
  61. mes "Ok, that's fine, I'm sure someone else will help.";
  62. close;
  63. }
  64. }
  65. prt_castle,84,170,4 script King's Daughter 62,{
  66. mes "[King's Daughter]";
  67. mes "Hmph, I hate my dad right now!!";
  68. next;
  69. if(select("Why?:Whatever...")==2) {
  70. mes "[King's Daughter]";
  71. mes "FINE THEN! Hmph!!";
  72. close; }
  73. mes "[King's Daughter]";
  74. mes "Well, he won't give me what I want!!";
  75. mes "He's the King of Prontera. He should be able to get me ANYTHING!!!";
  76. close;
  77. }