summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorDastgir <dastgirpojee@rocketmail.com>2015-06-24 15:44:00 +0200
committerHaru <haru@dotalux.com>2015-06-25 13:19:54 +0200
commitb44a271fc81749bb987f2668b85e9d597e0d1fa8 (patch)
tree5cc8ff8440075358e1d636f717c9f17c216d38af /npc
parentc0accecdd22698f2b1cf276a4e666b5a4cf65465 (diff)
downloadhercules-b44a271fc81749bb987f2668b85e9d597e0d1fa8.tar.gz
hercules-b44a271fc81749bb987f2668b85e9d597e0d1fa8.tar.bz2
hercules-b44a271fc81749bb987f2668b85e9d597e0d1fa8.tar.xz
hercules-b44a271fc81749bb987f2668b85e9d597e0d1fa8.zip
Updated Blacksmith job quest with some extra conditions.
Reference: rathena/rathena@1d64b8f9e1d95f40778a625c10735a10d9e6f5db (part) Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'npc')
-rw-r--r--npc/jobs/2-1/blacksmith.txt27
1 files changed, 20 insertions, 7 deletions
diff --git a/npc/jobs/2-1/blacksmith.txt b/npc/jobs/2-1/blacksmith.txt
index 53f2fa5fc..0109de356 100644
--- a/npc/jobs/2-1/blacksmith.txt
+++ b/npc/jobs/2-1/blacksmith.txt
@@ -7,7 +7,7 @@
//= Optimized and further edited by kobra_k88.
//= Further bugfixed and tested by Lupus
//===== Current Version: =====================================
-//= 2.8
+//= 2.9
//===== Description: =========================================
//= [Official Conversion]
//= Job Change quest for Blacksmith class.
@@ -38,6 +38,7 @@
//= 2.6a Typo fix [Yommy]
//= 2.7 Added Quest Log commands. [Kisuka]
//= 2.8 Removed the need for use of 'goto.' [L0ne_W0lf]
+//= 2.9 Updated with some extra conditions. [Euphy]
//==============================================================
ein_in01,18,28,4 script Guildsman#BLS 4_M_JOB_BLACKSMITH,{
@@ -70,20 +71,27 @@ ein_in01,18,28,4 script Guildsman#BLS 4_M_JOB_BLACKSMITH,{
mes "and passion of our souls into";
mes "our craft. Our skills of melting metal into new weapons";
mes "and tools is truly a form of art!";
+ if (BaseClass >= Job_Thief) close; // Custom expanded class check.
next;
+ // Third class check - precedes other BaseClass dialogue.
+ if (Class >= Job_Rune_Knight && Class <= Job_Baby_Mechanic2) {
+ mes "[Altiregen]";
+ mes "You... look like a stranger. But somehow it seems that you're related to our guild. Haha~";
+ mes "Am I right?";
+ close;
+ }
if (BaseClass == Job_Novice) {
if (Sex == 0) {
mes "[Altiregen]";
mes "Oh~";
mes "what a very";
mes "pretty lady!";
- mes "Are you interested in";
- mes "becoming a Blacksmith?";
- next;
- mes "[Altiregen]";
- mes "First, you must become a Merchant before you can become a Blacksmith. Go to the city of Alberta to learn the Merchant trade.";
- close;
}
+ mes "Are you interested in";
+ mes "becoming a Blacksmith?";
+ next;
+ mes "[Altiregen]";
+ mes "First, you must become a Merchant before you can become a Blacksmith. Go to the city of Alberta to learn the Merchant trade.";
close;
}
else if (BaseClass == Job_Swordman) {
@@ -247,6 +255,11 @@ ein_in01,18,28,4 script Guildsman#BLS 4_M_JOB_BLACKSMITH,{
}
else if (BSMITH_Q == 17 && countitem(1005) > 0 && JobLevel > 39) {
mes "[Altiregen]";
+ if (checkmount() || hascashmount()) {
+ mes "You are on a riding pet, so you cannot change your job.";
+ mes "Please unmount your riding pet and try again!";
+ close;
+ }
mes "Excellent, I can tell by the twinkle in your eye that you were successful. I can now bestow upon you the gift of the smithing, the art of the Blacksmith.";
if (questprogress(2015)) {
changequest 2015,2016;