summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authoreuphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-02 18:09:25 +0000
committereuphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-02 18:09:25 +0000
commit1bdf177a0bbcf3885ca5f8fad35923591eb37bd5 (patch)
tree111533f3c1ad32dd969a959facfc5511a495c7de /npc
parent947dbec4da6c83498e71261996b12b0c4aa406d2 (diff)
downloadhercules-1bdf177a0bbcf3885ca5f8fad35923591eb37bd5.tar.gz
hercules-1bdf177a0bbcf3885ca5f8fad35923591eb37bd5.tar.bz2
hercules-1bdf177a0bbcf3885ca5f8fad35923591eb37bd5.tar.xz
hercules-1bdf177a0bbcf3885ca5f8fad35923591eb37bd5.zip
* Neuralizer is no longer consumed upon failure (bugreport:6040)
* Some cleaning of the Sorcerer job change quest (jobs\3-2\sorcerer.txt) * Cleaning of "Bunny Band Quest" script (quests\bunnyband.txt) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16367 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc')
-rw-r--r--npc/jobs/3-2/sorcerer.txt104
-rw-r--r--npc/other/CashShop_Functions.txt15
-rw-r--r--npc/quests/bunnyband.txt169
3 files changed, 88 insertions, 200 deletions
diff --git a/npc/jobs/3-2/sorcerer.txt b/npc/jobs/3-2/sorcerer.txt
index 9f6626f4a..c3147f9e7 100644
--- a/npc/jobs/3-2/sorcerer.txt
+++ b/npc/jobs/3-2/sorcerer.txt
@@ -4,7 +4,7 @@
//= Masao
//= Credits: Muad_Dib
//===== Current Version: =====================================
-//= 1.0
+//= 1.1
//===== Compatible With: =====================================
//= Any rAthena SVN
//===== Description: =========================================
@@ -12,6 +12,7 @@
//= Job change Quest from Sage / Professor -> Sorcerer.
//===== Additional Comments: =================================
//= 1.0 First Version.
+//= 1.1 Cleaning. [Euphy]
//============================================================
gef_tower,102,34,5 script Merito 742,{
@@ -20,40 +21,30 @@ gef_tower,102,34,5 script Merito 742,{
mes "You packed so much in your bag. Try again after emptying your bag.";
close;
}
+ mes "[Merito]";
if (Class == Job_Sorcerer || Class == Job_Sorcerer_T || Class == Job_Baby_Sorcerer){
- mes "[Merito]";
mes "Please get on with the sprits well~ You should~!";
close;
}
if (JobLevel < 50 || SkillPoint != 0 || BaseLevel < 99){
- mes "[Merito]";
mes "Wow~ you are a young adventurer. I envy you.";
close;
}
if ((Class != Job_Sage) && (Class != Job_Professor) && (Class != Job_Baby_Sage)){
- mes "[Merito]";
mes "Wow~ you are a young adventurer. I envy you.";
close;
}
- if ((Class == Job_Sage || Class == Job_Professor || Class == Job_Baby_Sage) && (job_soc < 1)){
- mes "[Merito]";
+ if (job_soc < 1){
mes "Welcome. What can I help you with?";
next;
- menu "Do you know about Sorcerers?",-;
+ select("Do you know about Sorcerers?");
mes "[Merito]";
mes "Wouldn't it be more comfortable to just live as a scholar? Sorcerers are busy communicating with the spirits and don't have much time to read books...";
next;
mes "[Merito]";
mes "What made you want to be a sorcerer?";
next;
- switch(select("The spirit of fire led me here.:The spirit of water led me here.:The spirit of earth led me here:The spirit of meat led me here.")){
- case 1:
- break;
- case 2:
- break;
- case 3:
- break;
- case 4:
+ if(select("The spirit of fire led me here.:The spirit of water led me here.:The spirit of earth led me here:The spirit of meat led me here.")==4) {
mes "[Merito]";
mes "That kind of spirit doesn't exist!";
close;
@@ -65,10 +56,7 @@ gef_tower,102,34,5 script Merito 742,{
mes "[Merito]";
mes "Hmm... Then first, can you write down your name on this list?";
next;
- switch(select("Write name.:I won't.")){
- case 1:
- break;
- case 2:
+ if(select("Write name.:I won't.")==2){
mes "[Merito]";
mes "Well, okay. See you again when you get a chance.";
close;
@@ -82,17 +70,13 @@ gef_tower,102,34,5 script Merito 742,{
set job_soc,1;
close;
}
- if ((Class == Job_Sage || Class == Job_Professor || Class == Job_Baby_Sage) && (job_soc == 1)){
- mes "[Merito]";
+ else if (job_soc == 1){
mes "Good, then I'll give you a short explanation about the Sorcerer.";
next;
mes "[Merito]";
mes "["+strcharinfo(0)+"], can you handle magic skillfully?";
next;
- switch(select("Yes, I can.:No, I'm not really good at it.")){
- case 1:
- break;
- case 2:
+ if(select("Yes, I can.:No, I'm not really good at it.")==2){
mes "[Merito]";
mes "What!? You don't know how to use magic?";
mes "What are you doing here then? Get out of here. Right now!";
@@ -140,9 +124,8 @@ gef_tower,102,34,5 script Merito 742,{
close;
}
}
- if ((Class == Job_Sage || Class == Job_Professor || Class == Job_Baby_Sage) && (job_soc > 1)){
- mes "[Merito]";
- mes "How about your test? Well, Karacas is a little lazy, so that might bother you some... kkk";
+ else if (job_soc > 1){
+ mes "How about your test? Well, Karacas is a little lazy, so that might bother you some...";
close;
}
}
@@ -153,35 +136,31 @@ gef_tower,113,161,5 script Karacas 754,{
mes "You packed so much in your bag. Try again after emptying your bag.";
close;
}
- if (Class == Job_Sorcerer || Class == Job_Sorcerer_T){
- mes "[Karacas]";
+ mes "[Karacas]";
+ if (Class == Job_Sorcerer || Class == Job_Sorcerer_T || Class == Job_Baby_Sorcerer){
mes "You look happy. Have a great journey.";
close;
}
if (JobLevel < 50 || SkillPoint != 0 || BaseLevel < 99){
- mes "[Karacas]";
mes "Is there anything I can do for you?";
close;
}
if ((Class != Job_Sage) && (Class != Job_Professor) && (Class != Job_Baby_Sage)){
- mes "[Karacas]";
mes "Is there anything I can do for you?";
close;
}
- if ((Class == Job_Sage || Class == Job_Professor || Class == Job_Baby_Sage) && (job_soc < 2)){
- mes "[Karacas]";
+ if (job_soc < 2){
mes "More people are visiting Geffen Tower thesedays.";
close;
}
- if ((Class == Job_Sage || Class == Job_Professor || Class == Job_Baby_Sage) && (job_soc == 2)){
- mes "[Karacas]";
+ else if (job_soc == 2){
mes "....";
next;
- menu "Ah... excuse me~",-;
+ select("Ah... excuse me~");
mes "[Karacas]";
mes "... (Z z z~)";
next;
- menu "Hm hm!!!~",-;
+ selecT("Hm hm!!!~");
mes "[Karacas]";
mes "Aaaak!! ";
mes "Oh, my... ";
@@ -189,7 +168,7 @@ gef_tower,113,161,5 script Karacas 754,{
mes "[Karacas]";
mes "Wh... where are you from?";
next;
- menu "Merito told me to visit you.",-;
+ select("Merito told me to visit you.");
mes "[Karacas]";
mes "I see, give me a moment.";
mes "The list... has already arrived.";
@@ -197,10 +176,7 @@ gef_tower,113,161,5 script Karacas 754,{
mes "[Karacas]";
mes "So, you are ["+strcharinfo(0)+"]... right?";
next;
- switch(select("Yes, I am.:No, I'm not!")){
- case 1:
- break;
- case 2:
+ if(select("Yes, I am.:No, I'm not!")==2){
mes "[Karacas]";
mes "Oh, there must be some mistake in the list, I think. Will you come again later?";
close;
@@ -214,7 +190,7 @@ gef_tower,113,161,5 script Karacas 754,{
mes "[Karacas]";
mes "Sounds easy, right?";
next;
- menu "Ahh... sir. Is that really possible?",-;
+ select("Ahh... sir. Is that really possible?");
mes "[Karacas]";
mes "Well, it is impossible to meet every spirit by yourself. You need to train yourself very hard to give a shape to the spirits and see them clearly through your eyes.";
next;
@@ -236,7 +212,7 @@ gef_tower,113,161,5 script Karacas 754,{
mes "[Karacas]";
mes "Sorcerers use this basic principle, this is the essential knowledge that Sorcerers need to have to reach the spirits.";
next;
- menu "So communicating with spirits...",-;
+ select("So communicating with spirits...");
mes "[Karacas]";
mes "Right~";
mes "This job is based on the power of spirits.";
@@ -259,12 +235,11 @@ gef_tower,113,161,5 script Karacas 754,{
changequest 12096,12097;
close;
}
- if ((Class == Job_Sage || Class == Job_Professor || Class == Job_Baby_Sage) && (job_soc == 3)){
+ else if (job_soc == 3){
if ((countitem(992) > 2) && (countitem(991) > 2) && (countitem(990) > 2) && (countitem(993) > 2)){
- mes "[Karacas]";
mes "Oh, you have all the materials.";
next;
- menu "What should I do next?",-;
+ select("What should I do next?");
mes "[Karacas]";
mes "I'll tell you about it now. First, I'll tell you the places for the test. You better write them down.";
next;
@@ -283,7 +258,7 @@ gef_tower,113,161,5 script Karacas 754,{
mes "[Karacas]";
mes "You need to prepare at least 3 small stones for each property. For example, you need Wind of Verdure, not Rough Wind.";
next;
- menu "So I need the property stones...",-;
+ select("So I need the property stones...");
mes "[Karacas]";
mes "Yes, you have quick wits!";
next;
@@ -296,7 +271,7 @@ gef_tower,113,161,5 script Karacas 754,{
mes "[Karacas]";
mes "Of course if you are lucky enough, if you fail, a Wind of Verdure can be changed into a Rough Wind... Well, that's not a common situation so let's leave that out of the discussion for now.";
next;
- menu "What if I run out of stones?",-;
+ select("What if I run out of stones?");
mes "[Karacas]";
mes "Ahahaha... If you run out of property stones, you simply have to get more.";
next;
@@ -306,7 +281,7 @@ gef_tower,113,161,5 script Karacas 754,{
mes "[Karacas]";
mes "If you are an advanced Sorcerer, you will be able to talk with spirits without going through this process again. But beginners need to use that kind of medium to talk with them.";
next;
- menu "So the reagent is...?",-;
+ select("So the reagent is...?");
mes "[Karacas]";
mes "We don't know which reagent is going to be made from the spirits. It differs by the state of spirits.";
next;
@@ -319,14 +294,10 @@ gef_tower,113,161,5 script Karacas 754,{
mes "[Karacas]";
mes "Have any questions?";
next;
- switch(select("No.:Please explain it again.")){
- case 1:
- break;
- case 2:
+ if(select("No.:Please explain it again.")==2){
mes "[Karacas]";
mes "Haha, then can I have a cup of water for a minute? Please come and find me again later.";
next;
- break;
}
mes "[Karacas]";
mes "Then I'll write down the progress that I've summarized shortly. Wait...";
@@ -336,7 +307,6 @@ gef_tower,113,161,5 script Karacas 754,{
changequest 12097,12098;
close;
}
- mes "[Karacas]";
mes "Before I let you know the progressing way, you'll need to bring some required material.";
next;
mes "[Karacas]";
@@ -349,13 +319,12 @@ gef_tower,113,161,5 script Karacas 754,{
mes "When you bring these basic things, I'll guide you to the next step.";
close;
}
- if ((Class == Job_Sage || Class == Job_Professor || Class == Job_Baby_Sage) && (job_soc == 4)){
- if ((countitem(6276) > 0) && (countitem(6278) > 0) && (countitem(6277) > 0)){
- mes "[Karacas]";
+ else if (job_soc == 4){
+ if (countitem(6276) && countitem(6278) && countitem(6277)){
mes "Wow~ your skill is good.";
mes "I thought you'd be overwhelmed by the spirits but you've managed to get the effective medicine!";
next;
- menu "Is this all I need to do?",-;
+ select("Is this all I need to do?");
mes "[Karacas]";
mes "Well done. First, I will organize the miraculous medicine so please wait a moment.";
delitem 6276,1;
@@ -365,15 +334,13 @@ gef_tower,113,161,5 script Karacas 754,{
completequest 12098;
close;
}
- mes "[Karacas]";
mes "It's not an easy thing to get the desired effect by communicating with spirits.";
next;
mes "[Karacas]";
mes "Don't give up and keep on trying~";
close;
}
- if ((Class == Job_Sage || Class == Job_Professor || Class == Job_Baby_Sage) && (job_soc == 5)){
- mes "[Karacas]";
+ else if (job_soc == 5){
mes "Originally my teacher needs to check the Sorcerer job change but after he went out to find the spirit of fish, I can't see him. So I'll check it myself.";
next;
mes "[Karacas]";
@@ -391,14 +358,7 @@ gef_tower,113,161,5 script Karacas 754,{
next;
mes "[Karacas]";
mes "Congratulations, ["+strcharinfo(0)+"]";
- if(Class == Job_Baby_Sage){
- jobchange Job_Baby_Sorcerer;
- }
- else if (Class == Job_Sage){
- jobchange Job_Sorcerer;
- }else if (Class == Job_Professor){
- jobchange Job_Sorcerer_T;
- }
+ jobchange roclass(eaclass()|EAJL_THIRD);
getitem 5756,1;
getitem 2795,1;
next;
diff --git a/npc/other/CashShop_Functions.txt b/npc/other/CashShop_Functions.txt
index 382e43ba0..07630674b 100644
--- a/npc/other/CashShop_Functions.txt
+++ b/npc/other/CashShop_Functions.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= L0ne_W0lf
//===== Current Version: =====================================
-//= 1.4
+//= 1.5
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
@@ -21,6 +21,7 @@
//= 1.2 Updated the dungeon teleport scroll menu. [L0ne_w0lf]
//= 1.3 Implemented Aozi Giant Flywing Fix. (bugreport:4242) [L0ne_w0lf]
//= 1.4 Simplified Giant Flywing function using warpparty. [L0ne_w0lf]
+//= 1.5 Neuralizer is no longer consumed upon failure. [Euphy]
//============================================================
// Kafra Card
@@ -78,14 +79,10 @@ function script F_CashPartyCall2 {
// - Reset players skills. Weight must be 0, options must be off.
// - No arguments.
function script F_CashReset {
- if (Class != Job_Novice) {
- if (Weight < 1) {
- if (checkriding() || checkfalcon() || checkcart()) return;
- else {
- resetskill;
- sc_end SC_ALL;
- }
- }
+ if (Class != Job_Novice && Weight == 0 && !checkriding() && !checkfalcon() && !checkcart() && !ismounting()) {
+ resetskill;
+ sc_end SC_ALL;
+ if (countitem(12213)) delitem 12213,1;
}
return;
}
diff --git a/npc/quests/bunnyband.txt b/npc/quests/bunnyband.txt
index dbb231881..629de4e4d 100644
--- a/npc/quests/bunnyband.txt
+++ b/npc/quests/bunnyband.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= rAthena Dev Team
//===== Current Version: =====================================
-//= v1.5
+//= 1.6
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
@@ -11,8 +11,9 @@
//= Quest to obtain a Bunny Band headgear.
//===== Additional Comments: =================================
//= 1.5 Rescripted to Aegis 10.3 standards. [L0ne_W0lf]
-// Changed @BUNYBAN back to a BUNYBAND, it hsoudl be this way.
+// Changed @BUNYBAN back to BUNYBND, it should be this way.
// Removed duplicates. NPC is ALberta-only.
+//= 1.6 Cleaning. [Euphy]
//============================================================
alberta,26,229,0 script Kafra Employee#bunny 83,{
@@ -32,37 +33,16 @@ alberta,26,229,0 script Kafra Employee#bunny 83,{
mes "see if you brought";
mes "all the items...";
next;
- if (countitem(949) < 100) {
- mes "[Kafra Employee]";
- mes "Ooh, I'm sorry";
- mes "but you need to";
- mes "bring at least";
- mes "100 Feathers.";
- close;
- }
- if (countitem(706) == 0) {
- mes "[Kafra Employee]";
- mes "Ooh, I'm sorry";
- mes "but you need to";
- mes "bring at least";
- mes "1 Four-Leaf Clover.";
- close;
- }
- if (countitem(722) == 0) {
- mes "[Kafra Employee]";
- mes "Ooh, I'm sorry";
- mes "but you need to";
- mes "bring at least";
- mes "1 Pearl.";
- close;
- }
- if (countitem(2213) == 0) {
- mes "Ooh, I'm sorry";
- mes "but you need to";
- mes "bring at least";
- mes "1 Kitty Band.";
- close;
- }
+ setarray .@Items[0],949,100,706,1,722,1,2213,1;
+ for(set .@i,0; .@i<8; set .@i,.@i+2)
+ if (countitem(.@Items[.@i]) < .@Items[.@i+1]) {
+ mes "[Kafra Employee]";
+ mes "Ooh, I'm sorry";
+ mes "but you need to";
+ mes "bring at least";
+ mes .@Items[.@i+1]+" "+getitemname(.@Items[.@i])+((!.@i)?"s.":".");
+ close;
+ }
mes "[Kafra Employee]";
mes "Great, I see that";
mes "you've gathered";
@@ -71,46 +51,17 @@ alberta,26,229,0 script Kafra Employee#bunny 83,{
mes "Please wait a moment";
mes "while I put it together...";
next;
- if (countitem(949) < 100) {
- mes "[Kafra Employee]";
- mes "Hm? I'm sorry,";
- mes "but I actually can't";
- mes "make this right now.";
- mes "You need 100 Feathers";
- mes "in order for me to put this";
- mes "Bunny Band together...";
- close;
- }
- if (countitem(706) < 1) {
- mes "[Kafra Employee]";
- mes "Hm? I'm sorry,";
- mes "but I actually can't";
- mes "make this right now. You";
- mes "need 1 Four-Leaf Clover";
- mes "in order for me to put this";
- mes "Bunny Band together...";
- close;
- }
- if (countitem(722) < 1) {
- mes "[Kafra Employee]";
- mes "Hm? I'm sorry,";
- mes "but I actually can't";
- mes "make this right now.";
- mes "You need 1 Pearl in";
- mes "order for me to put this";
- mes "Bunny Band together...";
- close;
- }
- if (countitem(2213) < 1) {
- mes "[Kafra Employee]";
- mes "Hm? I'm sorry,";
- mes "but I actually can't";
- mes "make this right now.";
- mes "You need 1 Kitty Band";
- mes "in order for me to put this";
- mes "Bunny Band together...";
- close;
- }
+ for(set .@i,0; .@i<8; set .@i,.@i+2)
+ if (countitem(.@Items[.@i]) < .@Items[.@i+1]) {
+ mes "[Kafra Employee]";
+ mes "Hm? I'm sorry,";
+ mes "but I actually can't";
+ mes "make this right now. You";
+ mes "need "+.@Items[.@i+1]+" "+getitemname(.@Items[.@i])+((!.@i)?"s":"");
+ mes "in order for me to put this";
+ mes "Bunny Band together...";
+ close;
+ }
delitem 949,100; //Feather
delitem 706,1; //Four_Leaf_Clover
delitem 722,1; //Scarlet_Jewel
@@ -130,29 +81,7 @@ alberta,26,229,0 script Kafra Employee#bunny 83,{
mes "of the Kafra Services~";
close;
case 2:
- mes "[Kafra Employee]";
- mes "To thank our valued";
- mes "customers, Kafra Corporation";
- mes "has prepared a special event";
- mes "where Kafra Employee will assemble";
- mes "Bunny Bands for adventurers";
- mes "who bring the required items.";
- next;
- mes "[Kafra Employee]";
- mes "For this special,";
- mes "one of a kind item,";
- mes "bring 100 Feathers,";
- mes "1 Four-Leaf Clover,";
- mes "1 Kitty Band and";
- mes "1 Pearl.";
- next;
- mes "[Kafra Employee]";
- mes "When you're ready,";
- mes "come back and bring";
- mes "those items to me.";
- mes "(Sponsored by the";
- mes "Alberta Merchant Guild).";
- close;
+ goto L_Info;
case 3:
close;
}
@@ -184,32 +113,34 @@ alberta,26,229,0 script Kafra Employee#bunny 83,{
mes "waiting for you here~";
close;
case 2:
- mes "[Kafra Employee]";
- mes "To thank our valued";
- mes "customers, Kafra Corporation";
- mes "has prepared a special event";
- mes "where Kafra Employee will assemble";
- mes "Bunny Bands for adventurers";
- mes "who bring the required items.";
- next;
- mes "[Kafra Employee]";
- mes "For this special,";
- mes "one of a kind item,";
- mes "bring 100 Feathers,";
- mes "1 Four-Leaf Clover,";
- mes "1 Kitty Band and";
- mes "1 Pearl.";
- next;
- mes "[Kafra Employee]";
- mes "When you're ready,";
- mes "come back and bring";
- mes "those items to me.";
- mes "(Sponsored by the";
- mes "Alberta Merchant Guild).";
- close;
+ break;
case 3:
close;
}
+L_Info:
+ mes "[Kafra Employee]";
+ mes "To thank our valued";
+ mes "customers, Kafra Corporation";
+ mes "has prepared a special event";
+ mes "where Kafra Employee will assemble";
+ mes "Bunny Bands for adventurers";
+ mes "who bring the required items.";
+ next;
+ mes "[Kafra Employee]";
+ mes "For this special,";
+ mes "one of a kind item,";
+ mes "bring 100 Feathers,";
+ mes "1 Four-Leaf Clover,";
+ mes "1 Kitty Band and";
+ mes "1 Pearl.";
+ next;
+ mes "[Kafra Employee]";
+ mes "When you're ready,";
+ mes "come back and bring";
+ mes "those items to me.";
+ mes "(Sponsored by the";
+ mes "Alberta Merchant Guild).";
+ close;
}
//============================================================