From 060105016caf3edd7e2528412a42d6323a27921a Mon Sep 17 00:00:00 2001 From: evera Date: Wed, 23 Aug 2006 02:04:46 +0000 Subject: fix'd exploit in bio ethics quest git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8448 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/Changelog.txt | 1 + npc/quests/quests_lighthalzen.txt | 13 +++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/npc/Changelog.txt b/npc/Changelog.txt index 3cbd9b261..6e5364362 100644 --- a/npc/Changelog.txt +++ b/npc/Changelog.txt @@ -36,6 +36,7 @@ Playtester Date Added ====== 08/22 + * Fixed bug letting anyone get homunculus skills from Bio Ethics [Evera] * Updated Gunslinger Quest, removed "Thin Trunk" (7186) according to RockmanEXE [Toms] 08/21 * Fixing MoM's typos (Citrin -> Citrine) over Lv4 weapon quest. [erKURITA] diff --git a/npc/quests/quests_lighthalzen.txt b/npc/quests/quests_lighthalzen.txt index 874d0c174..28909d5c5 100644 --- a/npc/quests/quests_lighthalzen.txt +++ b/npc/quests/quests_lighthalzen.txt @@ -4,7 +4,7 @@ //= Persian, Vicious_Pucca, Completed by aoa00 //= Evera, MasterOfMupppets //===== Current Version: ===================================== -//= 2.5 +//= 2.6 //===== Compatible With: ===================================== //= eAthena SVN //===== Description: ========================================= @@ -45,6 +45,7 @@ //= 2.4 Fixed the bug where a str&int debug was shown in the console for //= test tube in bio labs quest. [Evera] //= 2.5 Fixed Kellasus giving you extra skills in Bio Ethics quest [Evera] +//= 2.6 Fixed exploit letting any class get homunculus from Bio Ethics Quest [Evera] //============================================================ //= aoa's comment //= In future, Need for new monsters. No-Drop, No-Exp, Weak "Mobster","VENOMOUS","NOXIOUS" @@ -2771,7 +2772,7 @@ lhz_in01.gat,224,140,8 script Kellasus 57,{ mes "[Kellasus]"; mes "I already taught you"; mes "skills of the homunculus..."; - if (getskilllv(238) == 0) skill 238,1,0; + if (getskilllv(238) == 0 && class == 18) skill 238,1,0; close; } switch(bioeth){ @@ -2869,7 +2870,7 @@ lhz_in01.gat,224,140,8 script Kellasus 57,{ mes "[Kellasus]"; mes "I guess I could teach you a few skills.."; //Gives player bio ethics and sets bitshift for quest finished - skill 238,1,0; + if(class == 18) skill 238,1,0; set MISC_QUEST,MISC_QUEST|64; set bioeth,0; close; @@ -2882,7 +2883,7 @@ lhz_in01.gat,224,140,8 script Kellasus 57,{ mes "meant to be known and what"; mes "secrets were never intended"; mes "for mankind to understand?"; - set @keltalk,1; + if(class == 18) set @keltalk,1; close; break; case 1: @@ -2955,7 +2956,7 @@ lhz_in01.gat,225,122,4 script Skrajiad 754,{ lhz_in02.gat,269,273,4 script Bringel 709,{ //Unofficial Text if(bioeth > 3 || MISC_QUEST&64){ - if(getskilllv(247) == 0) skill 247,1,0; + if(getskilllv(247) == 0 && class == 18) skill 247,1,0; } if(bioeth == 3){ mes "[Bringel]"; @@ -2964,7 +2965,7 @@ lhz_in02.gat,269,273,4 script Bringel 709,{ mes "I will teach you a"; mes "valuable skill to use."; //Learn res homun - skill 247,1,0; + if(class == 18) skill 247,1,0; set bioeth,4; close; } -- cgit v1.2.3-70-g09d2