浏览代码

fixed
free access to the guild dungeons

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1179 54d463be-8e91-2dee-dedb-b68131a5f0ec

Lupus 20 年之前
父节点
当前提交
12880187cd
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 3 0
      npc/Changelog.txt
  2. 1 1
      npc/guild/gldfunc_dunsw.txt

+ 3 - 0
npc/Changelog.txt

@@ -34,6 +34,9 @@ Other Ppl
 
 Date		Added
 ======
+02/26
+	* Now players can reach Guilds Dungeons only trough their own captured castles. [Lupus]
+		Before they coulkd enter the dungeons vie unoccupied castles. Thanks 2Ishizu-chan for fix
 02/16
 	* Fixed 1 payon castle guardian spawn coords
 	* Fixed Wootan and Beetle King names in the spawn files [Lupus]

+ 1 - 1
npc/guild/gldfunc_dunsw.txt

@@ -35,7 +35,7 @@ function	script	F_GldDunSw	{
 	menu "Yes",-,"No",M_No;
 
 		set @GID, GetCastleData(getarg(0)+".gat",1);
-		if (getcharid(2) != @GID) goto L_NotGLead;
+		if (@GID == 0 || getcharid(2) != @GID) goto L_NotGLead;
 		warp "gld_dun"+getarg(1)+".gat",getarg(2),getarg(3);
 		end;