summaryrefslogtreecommitdiff
path: root/npc/custom/woe_controller.txt
diff options
context:
space:
mode:
authorhemagx <ibrahem.h.basyone@gmail.com>2016-09-02 04:56:54 +0200
committerhemagx <ibrahem.h.basyone@gmail.com>2016-09-02 04:56:54 +0200
commit79e7a41e6652b553024b51576cc37015deed950c (patch)
tree57780b1ecc7c5ae125be1c89406f8db1e00a581b /npc/custom/woe_controller.txt
parent0f1d03f505fdc03533122db8ba19fa55f64f11b7 (diff)
parent0f1d0507eb95cf07ce7eb66d89ad9853938612e6 (diff)
downloadhercules-79e7a41e6652b553024b51576cc37015deed950c.tar.gz
hercules-79e7a41e6652b553024b51576cc37015deed950c.tar.bz2
hercules-79e7a41e6652b553024b51576cc37015deed950c.tar.xz
hercules-79e7a41e6652b553024b51576cc37015deed950c.zip
Merge pull request #1412 from Asheraf/strcharinfo
change *strcharinfo to use constants Closes #1412 as merged
Diffstat (limited to 'npc/custom/woe_controller.txt')
-rw-r--r--npc/custom/woe_controller.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/npc/custom/woe_controller.txt b/npc/custom/woe_controller.txt
index b0836820f..e109951d7 100644
--- a/npc/custom/woe_controller.txt
+++ b/npc/custom/woe_controller.txt
@@ -192,13 +192,13 @@ OnReward:
return;
OnPCLoadMapEvent:
- if (!compare(strcharinfo(3),"g_cas")) end;
- if (((.AutoKick && .Active[0]) || (.NoOwner && !getcastledata(strcharinfo(3),1))) && !(.Active[0]&(1<<getd("."+strcharinfo(3))))) {
- if (getcharid(2) && getcastledata(strcharinfo(3),1) == getcharid(2)) end;
+ if (!compare(strcharinfo(PC_MAP),"g_cas")) end;
+ if (((.AutoKick && .Active[0]) || (.NoOwner && !getcastledata(strcharinfo(PC_MAP),1))) && !(.Active[0]&(1<<getd("."+strcharinfo(PC_MAP))))) {
+ if (getcharid(2) && getcastledata(strcharinfo(PC_MAP),1) == getcharid(2)) end;
sleep2 1000;
- message strcharinfo(0), getcastlename(strcharinfo(3))+" is currently inactive.";
+ message strcharinfo(PC_NAME), getcastlename(strcharinfo(PC_MAP))+" is currently inactive.";
sleep2 5000;
- if (compare(strcharinfo(3),"g_cas")) warp "SavePoint",0,0;
+ if (compare(strcharinfo(PC_MAP),"g_cas")) warp "SavePoint",0,0;
}
end;