summaryrefslogtreecommitdiff
path: root/npc/guild
diff options
context:
space:
mode:
Diffstat (limited to 'npc/guild')
-rw-r--r--npc/guild/gldfunc_treasure.txt3
-rw-r--r--npc/guild/prtg/prtg_treas.txt1
2 files changed, 2 insertions, 2 deletions
diff --git a/npc/guild/gldfunc_treasure.txt b/npc/guild/gldfunc_treasure.txt
index 8841fbb01..1d728b376 100644
--- a/npc/guild/gldfunc_treasure.txt
+++ b/npc/guild/gldfunc_treasure.txt
@@ -96,6 +96,5 @@ function script F_GldTreasSw {
// Treasure Room Protrection
//===============================================================
function script F_TreasProtect {
- set @GID, GetCastleData(getarg(0),1);
- if (strcharinfo(0) != getguildmaster(@GID)) warp getarg(1),getarg(2),getarg(3);
+ if (strcharinfo(0) != getguildmaster( GetCastleData(getarg(0),1) )) warp getarg(1),getarg(2),getarg(3);
}
diff --git a/npc/guild/prtg/prtg_treas.txt b/npc/guild/prtg/prtg_treas.txt
index de3f9501e..442636f10 100644
--- a/npc/guild/prtg/prtg_treas.txt
+++ b/npc/guild/prtg/prtg_treas.txt
@@ -105,6 +105,7 @@ prtg_cas03,193,130,0 script Switch#TresPt03 111,{
// Treasure Room Protection ------------------------------------------------
prtg_cas03,189,132,0 script ban_warp#3 -1,6,6,{
+OnTouch:
callfunc "F_TreasProtect", "prtg_cas03", "prontera",109,179;
end;
}