浏览代码

* Fixed Guild Manager access to Guild Master only.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11746 54d463be-8e91-2dee-dedb-b68131a5f0ec
L0ne_W0lf 17 年之前
父节点
当前提交
cceb752c18
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 1 0
      npc/Changelog.txt
  2. 3 2
      npc/guild/gldfunc_manager.txt

+ 1 - 0
npc/Changelog.txt

@@ -1,6 +1,7 @@
 Date		Added
 ======
 2007/11/16
+	* Rev. 11746 Fixed Guild Manager access To Guild Master only. [L0ne_W0lf]
 	* Rev. 11745 Attempt at correcting a small move mistake I made [L0ne_W0lf]
 	  in regards to the movement of Odin's temple's spawn file.
 	* Rev. 11744 Deleted Odin temple field spawn file. Not sure [L0ne_W0lf]

+ 3 - 2
npc/guild/gldfunc_manager.txt

@@ -3,7 +3,7 @@
 //===== By: ==================================================
 //= jAthena - kalen (1.0) & eAthena Team
 //===== Current Version: =====================================
-//= 1.8
+//= 1.9
 //===== Compatible With: =====================================
 //= eAthena SVN; RO Episode 4+
 //===== Description: =========================================
@@ -37,6 +37,7 @@
 //=	No longer uses defined numerical values for guardian HP calculation
 //=	Guardian summon display list is now DYNAMIC. Updated with guardian corrections.
 //=	Added dialog for castle Abandoning. Commented out be default.
+//= 1.8 Fixed guild members being able to access Guild Master services. [L0ne_W0lf]
 //============================================================
 
 function	script	F_GldManager	{
@@ -75,7 +76,7 @@ function	script	F_GldManager	{
 		mes "Brave soul... fate will guide you towards your future...";
 		return 0;
 	}
-	if (getcharid(2) != .@GID){
+	if (getcharid(2) != .@GID || strcharinfo(0) != getguildmaster(.@GID)){
 		mes "[ "+getarg(0)+" ]";
 		mes "No matter how much you pester me, I'll still follow my master ^ff0000" + getguildmaster(.@GID) + "^000000. Where are Guardians?! Send these ruffians away right now!";
 		return 0;