From ed185c63c1662b51d70b0c4e80946b7fb990882d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 24 Apr 2020 23:54:55 -0300 Subject: King Arthur now is locked to Guild Master and Guild Vice Leaders. Normal members will be warned. --- npc/014-4/kamelot.txt | 2 +- npc/042-0/arthur.txt | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/npc/014-4/kamelot.txt b/npc/014-4/kamelot.txt index 2bdcff38d..bd271a161 100644 --- a/npc/014-4/kamelot.txt +++ b/npc/014-4/kamelot.txt @@ -35,7 +35,7 @@ OnTouch: end; // Not in a guild: Gate is sealed (MK might be excluded as well) - if (getcharid(2) <= 0) { + if (getcharid(2) < 1) { dispbottom l("The gates are firmly shut. A warning is on the door, \"DO NOT ENTER. Guild Only.\""); end; } diff --git a/npc/042-0/arthur.txt b/npc/042-0/arthur.txt index 562148f61..78894ad14 100644 --- a/npc/042-0/arthur.txt +++ b/npc/042-0/arthur.txt @@ -6,10 +6,19 @@ // Part of Kamelot Guild Dungeon 042-0,58,28,0 script King Arthur NPC_KING_ARTHUR,{ - npctalkonce l("Don't bore me."); + .@g=getcharid(2); + .@pos=getguildrole(.@g, getcharid(3)); + if (.@pos > GPOS_VICELEADER) goto L_Refusal; + npctalk l("Don't bore me."); end; +L_Refusal: + mesc l("This man is THE LEGENDARY KING ARTHUR!"); + mes ""; + mesc l("I better leave talking to him to the guild Vice Leaders and Master."); + close; + OnInit: .distance=4; .sex=G_MALE; -- cgit v1.2.3-70-g09d2