diff options
Diffstat (limited to 'npc/quests/guildrelay.txt')
-rw-r--r-- | npc/quests/guildrelay.txt | 122 |
1 files changed, 61 insertions, 61 deletions
diff --git a/npc/quests/guildrelay.txt b/npc/quests/guildrelay.txt index 0968c9ae0..87c72ef16 100644 --- a/npc/quests/guildrelay.txt +++ b/npc/quests/guildrelay.txt @@ -38,30 +38,30 @@ //== Floating NPCs to duplicate from. ====================== - script RelayDummy1::GuildRelay1 4_M_SAGE_A,{ - .@name$ = strnpcinfo(1); + .@name$ = strnpcinfo(NPC_NAME_VISIBLE); if (.@name$ == "Buzz") { .@name2$ = "Lenya"; .@name3$ = "Gealuve"; .@name4$ = "Pariz"; - .@GID = getcastledata("aldeg_cas"+strnpcinfo(2),1); + .@GID = getcastledata("aldeg_cas"+strnpcinfo(NPC_NAME_HIDDEN),1); } else if (.@name$ == "Jody") { .@name2$ = "Ron Haware"; .@name3$ = "Vers"; .@name4$ = "Gen Garish"; - .@GID = getcastledata("gefg_cas"+strnpcinfo(2),1); + .@GID = getcastledata("gefg_cas"+strnpcinfo(NPC_NAME_HIDDEN),1); } else if (.@name$ == "Chungye") { .@name2$ = "Dosuhlji"; .@name3$ = "Yayula"; .@name4$ = "Ashin"; - .@GID = getcastledata("payg_cas"+strnpcinfo(2),1); + .@GID = getcastledata("payg_cas"+strnpcinfo(NPC_NAME_HIDDEN),1); } else if (.@name$ == "Hermod") { .@name2$ = "Atila"; .@name3$ = "Cecil"; .@name4$ = "Diligo"; - .@GID = getcastledata("prtg_cas"+strnpcinfo(2),1); + .@GID = getcastledata("prtg_cas"+strnpcinfo(NPC_NAME_HIDDEN),1); } if (checkweight(Spawn,630) == 0) { mes "^3355FFWait a minute! You're"; @@ -85,8 +85,8 @@ mes "head on your way.^000000"; close; } - if (getcharid(2) == .@GID) { - if (strcharinfo(0) == getguildmaster(.@GID)) { + if (getcharid(CHAR_ID_GUILD) == .@GID) { + if (strcharinfo(PC_NAME) == getguildmaster(.@GID)) { if (guildrelay_q == 100) { if (guildtime > 22) { if (gettime(GETTIME_HOUR) > 1 && gettime(GETTIME_HOUR) < guildtime) { @@ -371,7 +371,7 @@ mes "You look as though"; mes "something is on your mind."; next; - switch(select("N-no, nothing.:I want to take a lesson.")) { + switch(select("N-no, nothing.", "I want to take a lesson.")) { case 1: mes "[" + .@name$ + "]"; mes "Hm? That's strange."; @@ -619,7 +619,7 @@ getitem Old_Violet_Box,1; } else if ((.@incen_item > 90) && (.@incen_item < 101)) { - getitem Ear_Of_Angel's_Wing,1; + getitem Ear_Of_Angels_Wing,1; } next; mes "[" + .@name$ + "]"; @@ -675,7 +675,7 @@ mes "so that you will be better"; mes "able to protect the weak."; next; - switch(select("I want to take the test.:Let me think about it.")) { + switch(select("I want to take the test.", "Let me think about it.")) { case 1: mes "[" + .@name$ + "]"; mes "Is that so? In this test,"; @@ -732,7 +732,7 @@ if (countitem(Soul_Of_Guild) > 0) { if (BaseJob == Job_Knight) { mes "[" + .@name$ + "]"; - mes "Hello," + strcharinfo(0) + "."; + mes "Hello," + strcharinfo(PC_NAME) + "."; mes "So you were the one chosen"; mes "by your guild master? I see."; mes "You should deliver that Spirit"; @@ -753,7 +753,7 @@ else if (countitem(Soul_Of_Courage) > 0) { if ((guildrelay_q == 88) && (BaseJob == Job_Knight)) { mes "[" + .@name$ + "]"; - mes "Ah," + strcharinfo(0) + ""; + mes "Ah," + strcharinfo(PC_NAME) + ""; mes "Congratulations. It looks"; mes "like you did a good job."; mes "Please give the Spirit of"; @@ -769,7 +769,7 @@ } else if (BaseJob == Job_Blacksmith) { mes "[" + .@name$ + "]"; - mes "Hello," + strcharinfo(0) + "."; + mes "Hello," + strcharinfo(PC_NAME) + "."; mes "Ah, I see that you have"; mes "the Spirit of Charge."; mes "Heh heh, it's always exciting"; @@ -791,7 +791,7 @@ else if (countitem(Soul_Of_Partnership) > 0) { if ((guildrelay_q == 87) && (BaseJob == Job_Blacksmith)) { mes "[" + .@name$ + "]"; - mes "Hello," + strcharinfo(0) + "."; + mes "Hello," + strcharinfo(PC_NAME) + "."; mes "I commend you on your work."; mes "Please give that spirit to"; mes "the next person so that the"; @@ -806,7 +806,7 @@ } else if (BaseJob == Job_Alchemist) { mes "[" + .@name$ + "]"; - mes "Hello, " + strcharinfo(0) + "."; + mes "Hello, " + strcharinfo(PC_NAME) + "."; mes "I see that you posess"; mes "the Spirit of Association."; mes "Good luck with your test."; @@ -826,7 +826,7 @@ else if (countitem(Soul_Of_Correspondence) > 0) { if ((guildrelay_q == 86) && (BaseJob == Job_Alchemist)) { mes "[" + .@name$ + "]"; - mes "Hello," + strcharinfo(0) + "."; + mes "Hello," + strcharinfo(PC_NAME) + "."; mes "I commend you on your work."; mes "Please give that spirit to"; mes "the next person so that the"; @@ -841,7 +841,7 @@ } else if (BaseJob == Job_Hunter) { mes "[" + .@name$ + "]"; - mes "Hello, " + strcharinfo(0) + "."; + mes "Hello, " + strcharinfo(PC_NAME) + "."; mes "I see that you posess"; mes "the Spirit of Coordination."; mes "Good luck on your test."; @@ -861,7 +861,7 @@ else if (countitem(Soul_Of_Proceeding) > 0) { if ((guildrelay_q == 85) && (BaseJob == Job_Hunter)) { mes "[" + .@name$ + "]"; - mes "Hello, " + strcharinfo(0) + "."; + mes "Hello, " + strcharinfo(PC_NAME) + "."; mes "Congratulations, it looks"; mes "like you finished the test."; mes "You may now give the Spirit of"; @@ -882,7 +882,7 @@ else if (countitem(Soul_Of_Confidence) > 0) { if (BaseJob == Job_Sage) { mes "[" + .@name$ + "]"; - mes "Hello, " + strcharinfo(0) + "."; + mes "Hello, " + strcharinfo(PC_NAME) + "."; mes "I see that you possess"; mes "the Spirit of Trust."; mes "Good luck, and do not"; @@ -904,7 +904,7 @@ else if (countitem(Soul_Of_Agreement) > 0) { if ((guildrelay_q == 71) && (BaseJob == Job_Sage)) { mes "[" + .@name$ + "]"; - mes "Hello," + strcharinfo(0) + "."; + mes "Hello," + strcharinfo(PC_NAME) + "."; mes "I commend you on your work."; mes "Please give that spirit to"; mes "the next person so that the"; @@ -920,7 +920,7 @@ } else if ((BaseJob == Job_Bard) || (BaseJob == Job_Dancer)) { mes "[" + .@name$ + "]"; - mes "Ah, " + strcharinfo(0) + ","; + mes "Ah, " + strcharinfo(PC_NAME) + ","; mes "I see that you have the"; mes "Spirit of Union. Always keep"; mes "in mind that the strength of"; @@ -942,7 +942,7 @@ else if (countitem(Soul_Of_Harmony) > 0) { if ((guildrelay_q == 72) && ((BaseJob == Job_Bard) || (BaseJob == Job_Dancer))) { mes "[" + .@name$ + "]"; - mes "Hello," + strcharinfo(0) + "."; + mes "Hello," + strcharinfo(PC_NAME) + "."; mes "I commend you on your work."; mes "Please give that spirit to"; mes "the next person so that the"; @@ -958,7 +958,7 @@ } else if (BaseJob == Job_Assassin) { mes "[" + .@name$ + "]"; - mes "Ah, " + strcharinfo(0) + ","; + mes "Ah, " + strcharinfo(PC_NAME) + ","; mes "I see that you have the Spirit"; mes "of Combination. Remember that"; mes "working in tandem, combining"; @@ -980,7 +980,7 @@ else if (countitem(Soul_Of_Unity) > 0) { if ((guildrelay_q == 74) && (BaseJob == Job_Assassin)) { mes "[" + .@name$ + "]"; - mes "Greetings, " + strcharinfo(0) + ","; + mes "Greetings, " + strcharinfo(PC_NAME) + ","; mes "did you rest well? Please"; mes "give that spirit to the next"; mes "person so that the testing"; @@ -996,7 +996,7 @@ } else if (BaseJob == Job_Wizard) { mes "[" + .@name$ + "]"; - mes "Hello, " + strcharinfo(0) + ","; + mes "Hello, " + strcharinfo(PC_NAME) + ","; mes "I see that you've been"; mes "entrusted with the Spirit"; mes "of Solidarity. Do your best"; @@ -1018,7 +1018,7 @@ else if (countitem(Soul_Of_Friendship) > 0) { if ((guildrelay_q == 75) && (BaseJob == Job_Wizard)) { mes "[" + .@name$ + "]"; - mes "Ah, " + strcharinfo(0) + ","; + mes "Ah, " + strcharinfo(PC_NAME) + ","; mes "congratulations on a job"; mes "well done. Please give the"; mes "Spirit of Friendship to your"; @@ -1040,7 +1040,7 @@ else if (countitem(Soul_Of_Peace) > 0) { if (BaseJob == Job_Rogue) { mes "[" + .@name$ + "]"; - mes "Ah, " + strcharinfo(0) + ","; + mes "Ah, " + strcharinfo(PC_NAME) + ","; mes "I see that you have the"; mes "Spirit of Peace. Please"; mes "do your best for the sake"; @@ -1062,7 +1062,7 @@ else if (countitem(Soul_Of_Spirit) > 0) { if ((guildrelay_q == 95) && (BaseJob == Job_Priest)) { mes "[" + .@name$ + "]"; - mes "Hello," + strcharinfo(0) + "."; + mes "Hello," + strcharinfo(PC_NAME) + "."; mes "I commend you on your work."; mes "Please give that spirit to"; mes "the next person so that the"; @@ -1078,7 +1078,7 @@ } else if (BaseJob == Job_Priest) { mes "[" + .@name$ + "]"; - mes "Ah, " + strcharinfo(0) + ","; + mes "Ah, " + strcharinfo(PC_NAME) + ","; mes "please take good care of"; mes "that Spirit of Determination."; close; @@ -1097,7 +1097,7 @@ else if (countitem(Soul_Of_Service) > 0) { if ((guildrelay_q == 98) && (BaseJob == Job_Priest)) { mes "[" + .@name$ + "]"; - mes "Hello," + strcharinfo(0) + "."; + mes "Hello," + strcharinfo(PC_NAME) + "."; mes "I commend you on your work."; mes "Please give that spirit to"; mes "the next person so that the"; @@ -1113,7 +1113,7 @@ } else if (BaseJob == Job_Crusader) { mes "[" + .@name$ + "]"; - mes "Ah, " + strcharinfo(0) + ","; + mes "Ah, " + strcharinfo(PC_NAME) + ","; mes "please take good care"; mes "of that Spirit of Service."; close; @@ -1132,7 +1132,7 @@ else if (countitem(Soul_Of_Glory) > 0) { if ((guildrelay_q == 96) && (BaseJob == Job_Crusader)) { mes "[" + .@name$ + "]"; - mes "Hello," + strcharinfo(0) + "."; + mes "Hello," + strcharinfo(PC_NAME) + "."; mes "I commend you on your work."; mes "Please give that spirit to"; mes "the next person so that the"; @@ -1148,7 +1148,7 @@ } else if (BaseJob == Job_Monk) { mes "[" + .@name$ + "]"; - mes "Ah, " + strcharinfo(0) + ","; + mes "Ah, " + strcharinfo(PC_NAME) + ","; mes "please take good care"; mes "of that Spirit of Glory."; close; @@ -1167,7 +1167,7 @@ else if (countitem(Soul_Of_Victory) > 0) { if ((guildrelay_q == 97) && (Class == Job_Monk)) { mes "[" + .@name$ + "]"; - mes "Ah, " + strcharinfo(0) + ","; + mes "Ah, " + strcharinfo(PC_NAME) + ","; mes "congratulations on a job"; mes "well done. Please give"; mes "the Spirit of Victory to your"; @@ -1197,7 +1197,7 @@ } } else { - if (getcharid(2) == 0) { + if (getcharid(CHAR_ID_GUILD) == 0) { mes "[" + .@name$ + "]"; mes "You haven't joined"; mes "a guild yet? Why don't"; @@ -1214,7 +1214,7 @@ mes "Have you come here"; mes "as an invited guest?"; next; - switch(select("No, not really...:I was invited by the guild master.")) { + switch(select("No, not really...", "I was invited by the guild master.")) { case 1: mes "[" + .@name$ + "]"; mes "Oh, really?"; @@ -1229,7 +1229,7 @@ case 2: mes "[" + .@name$ + "]"; mes "Oh, really? Ah, now"; - mes "I recognize you, ^4d4dff" + strcharinfo(0) + "^000000."; + mes "I recognize you, ^4d4dff" + strcharinfo(PC_NAME) + "^000000."; mes "Please come in, and make"; mes "yourself comfortable."; close; @@ -1239,7 +1239,7 @@ } - script RelayDummy2::GuildRelay2 4_M_SAGE_A,{ - .@name$ = strnpcinfo(1); + .@name$ = strnpcinfo(NPC_NAME_VISIBLE); getmapxy(.@m$, .@x, .@x, UNITTYPE_NPC); .@GID = getcastledata(.@m$,1); if (checkweight(Knife,1) == 0) { @@ -1264,8 +1264,8 @@ mes "head on your way.^000000"; close; } - if (getcharid(2) == .@GID) { - if (strcharinfo(0) == getguildmaster(.@GID)) { + if (getcharid(CHAR_ID_GUILD) == .@GID) { + if (strcharinfo(PC_NAME) == getguildmaster(.@GID)) { if (countitem(Soul_Of_Guild) > 0) { mes "[" + .@name$ + "]"; mes "Hm. You can't just keep"; @@ -1330,7 +1330,7 @@ close; } } - if ((countitem(Thin_N'_Long_Tongue) > 29) && (countitem(Shoulder_Protection) > 29) && (countitem(Black_Mask) > 29) && (guildrelay_q == 2)) { + if ((countitem(Thin_N_Long_Tongue) > 29) && (countitem(Shoulder_Protection) > 29) && (countitem(Black_Mask) > 29) && (guildrelay_q == 2)) { mes "[" + .@name$ + "]"; mes "Huh. I didn't actually"; mes "expect that you'd collect"; @@ -1338,7 +1338,7 @@ mes "Now, take this and give it to"; mes "a Blacksmith or Mastersmith."; mes "Your guild's pretty good..."; - delitem Thin_N'_Long_Tongue,30; + delitem Thin_N_Long_Tongue,30; delitem Shoulder_Protection,30; delitem Black_Mask,30; guildrelay_q = 88; @@ -1380,7 +1380,7 @@ mes "Don't forget this time."; close; } - if ((countitem(Fright_Paper_Blade) > 29) && (countitem(Lizard_Scruff) > 29) && (countitem(Elder_Pixie's_Beard) > 29) && (guildrelay_q == 89)) { + if ((countitem(Fright_Paper_Blade) > 29) && (countitem(Lizard_Scruff) > 29) && (countitem(Elder_Pixies_Beard) > 29) && (guildrelay_q == 89)) { mes "[" + .@name$ + "]"; mes "Huh. I didn't actually"; mes "expect that you'd collect"; @@ -1390,7 +1390,7 @@ mes "Your guild's pretty good..."; delitem Fright_Paper_Blade,30; delitem Lizard_Scruff,30; - delitem Elder_Pixie's_Beard,30; + delitem Elder_Pixies_Beard,30; guildrelay_q = 88; getitem Soul_Of_Courage,1; close; @@ -1604,7 +1604,7 @@ mes "your Falcon for the"; mes "sake of your guild."; next; - switch(select("Donate Falcon:No way!")) { + switch(select("Donate Falcon", "No way!")) { case 1: if (checkfalcon()) { mes "[" + .@name$ + "]"; @@ -1728,7 +1728,7 @@ } } else { - if (strcharinfo(0) == getguildmaster(.@GID)) { + if (strcharinfo(PC_NAME) == getguildmaster(.@GID)) { mes "[" + .@name$ + "]"; mes "Hm? What brings you"; mes "here? Feel free to take"; @@ -1748,7 +1748,7 @@ } - script RelayDummy3::GuildRelay3 4_M_SAGE_A,{ - .@name$ = strnpcinfo(1); + .@name$ = strnpcinfo(NPC_NAME_VISIBLE); getmapxy(.@m$, .@x, .@x, UNITTYPE_NPC); .@GID = getcastledata(.@m$,1); if (checkweight(Knife,1) == 0) { @@ -1768,8 +1768,8 @@ mes "there's no reason to be here.^000000"; close; } - if (getcharid(2) == .@GID) { - if (strcharinfo(0) == getguildmaster(.@GID)) { + if (getcharid(CHAR_ID_GUILD) == .@GID) { + if (strcharinfo(PC_NAME) == getguildmaster(.@GID)) { if (countitem(Soul_Of_Confidence) > 0) { mes "[" + .@name$ + "]"; mes "Hm? What are you doing?"; @@ -2019,7 +2019,7 @@ getitem Soul_Of_Harmony,1; close; } - else if ((countitem(Heart_Of_Tree) > 29) && (countitem(Soft_Leaf) > 29) && (countitem(Poison_Toad's_Skin) > 29) && (guildrelay_q == 11)) { + else if ((countitem(Heart_Of_Tree) > 29) && (countitem(Soft_Leaf) > 29) && (countitem(Poison_Toads_Skin) > 29) && (guildrelay_q == 11)) { mes "[" + .@name$ + "]"; mes "Oh, perfect! You brought"; mes "all the items. Well then,"; @@ -2029,7 +2029,7 @@ mes "^42426FAssassin Cross^000000. Thank you."; delitem Heart_Of_Tree,30; delitem Soft_Leaf,30; - delitem Poison_Toad's_Skin,30; + delitem Poison_Toads_Skin,30; if (BaseJob == Job_Dancer) { guildrelay_q = 72; } @@ -2039,7 +2039,7 @@ getitem Soul_Of_Harmony,1; close; } - else if ((countitem(Goat's_Horn) > 29) && (countitem(Honey_Jar) > 29) && (countitem(Porcupine_Spike) > 29) && (guildrelay_q == 80)) { + else if ((countitem(Goats_Horn) > 29) && (countitem(Honey_Jar) > 29) && (countitem(Porcupine_Spike) > 29) && (guildrelay_q == 80)) { mes "[" + .@name$ + "]"; mes "Oh, perfect! You brought"; mes "all the items. Well then,"; @@ -2047,7 +2047,7 @@ mes "take this spirit now. Please"; mes "give it to an ^42426FAssassin^000000 or an"; mes "^42426FAssassin Cross^000000. Thank you."; - delitem Goat's_Horn,30; + delitem Goats_Horn,30; delitem Honey_Jar,30; delitem Porcupine_Spike,30; if (BaseJob == Job_Dancer) { @@ -2132,7 +2132,7 @@ mes "and defeat. Remember that."; next; mes "[" + .@name$ + "]"; - mes "Hey," + strcharinfo(0) + ","; + mes "Hey," + strcharinfo(PC_NAME) + ","; mes "if you really want to become"; mes "strong enough to protect your"; mes "guild, then you must level up."; @@ -2283,7 +2283,7 @@ } } else { - if (strcharinfo(0) == getguildmaster(.@GID)) { + if (strcharinfo(PC_NAME) == getguildmaster(.@GID)) { mes "[" + .@name$ + "]"; mes "Hm. You're the master"; mes "of another guild, aren't"; @@ -2432,7 +2432,7 @@ } - script GuildDummy4::GuildRelay4 4_M_SAGE_A,{ - .@name$ = strnpcinfo(1); + .@name$ = strnpcinfo(NPC_NAME_VISIBLE); getmapxy(.@m$, .@x, .@x, UNITTYPE_NPC); .@GID = getcastledata(.@m$,1); if (checkweight(Knife,1) == 0) { @@ -2452,8 +2452,8 @@ mes "there's no reason to be here.^000000"; close; } - if (getcharid(2) == .@GID) { - if (strcharinfo(0) == getguildmaster(.@GID)) { + if (getcharid(CHAR_ID_GUILD) == .@GID) { + if (strcharinfo(PC_NAME) == getguildmaster(.@GID)) { if (countitem(Soul_Of_Peace) > 0) { mes "[" + .@name$ + "]"; mes "Hm? That spirit that"; @@ -2527,9 +2527,9 @@ close; } } - getpartymember(getcharid(1)); + getpartymember(getcharid(CHAR_ID_PARTY)); .@partymembercount = $@partymembercount; - .@partyleader = getpartyleader(getcharid(1),2); + .@partyleader = getpartyleader(getcharid(CHAR_ID_PARTY),2); if (guildrelay_q == 91) { if (.@partymembercount == 6) { mes "[" + .@name$ + "]"; @@ -3076,7 +3076,7 @@ } } else { - if (strcharinfo(0) == getguildmaster(.@GID)) { + if (strcharinfo(PC_NAME) == getguildmaster(.@GID)) { mes "[" + .@name$ + "]"; mes "You might be the master"; mes "of a guild, but you and I"; |