Added Arch Mage on Quest magic_books (#7009)

This commit is contained in:
mazvi 2022-06-07 17:03:21 +07:00 committed by GitHub
parent 038c1778e1
commit 24cfdc68de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@
//===== By: ==================================================
//= Masao, Muad_Dib (translation)
//===== Current Version: =====================================
//= 1.3
//= 1.4
//===== Compatible With: =====================================
//= rAthena Project
//===== Description: =========================================
@ -17,6 +17,8 @@
//= Aegis & fixed a bracket issue. [Capuche]
//= 1.2 Updates Magic Books gained from Lea. [Aleos]
//= 1.3 Fixes checkquest calls. [Everade]
//= 1.4 Added EAJ_WARLOCK so that jobs after Warlock such as
// Arch Mage can enter. [Mazvi]
//============================================================
// Main Quest :: war_book
@ -36,7 +38,7 @@ geffen_in,176,105,4 script Master Velofos 1_M_WIZARD,{
mes "I'm not here to babysit. Get lost!";
close;
}
if ((Class != Job_Warlock) && (Class != Job_Warlock_T) && (Class != Job_Baby_Warlock)) {
if ((eaclass()&EAJ_THIRDMASK)!=EAJ_WARLOCK) {
mes "[Master Velofos]";
mes "Ha ha, are you also seeking new knowledge?";
next;
@ -276,7 +278,7 @@ geffen_in,175,112,4 script Lea 2_F_MAGICMASTER,{
mes "You're overweight with items. Please lose some item weight first.";
close;
}
if (wm_book > 0 && (Class == Job_Warlock || Class == Job_Warlock_T || Class == Job_Baby_Warlock)) {
if (wm_book > 0 && ((eaclass()&EAJ_THIRDMASK)==EAJ_WARLOCK)) {
mes "[Lea]";
mes "How may I help you?";
next;
@ -411,7 +413,7 @@ mid_camp,255,244,4 script Galfos 4_M_JOB_WIZARD,{
mes "I'm not here to babysit. Get lost!";
close;
}
if ((Class != Job_Warlock) && (Class != Job_Warlock_T) && (Class != Job_Baby_Warlock)) {
if ((eaclass()&EAJ_THIRDMASK)!=EAJ_WARLOCK) {
mes "[Galfos]";
mes "My right arm feels hot while my left arm feels cold. I can never get used to this weird weather!";
close;