diff options
author | Asheraf <acheraf1998@gmail.com> | 2016-08-29 17:40:13 +0100 |
---|---|---|
committer | hemagx <ibrahem.h.basyone@gmail.com> | 2016-09-02 04:56:00 +0200 |
commit | 0f1d0507eb95cf07ce7eb66d89ad9853938612e6 (patch) | |
tree | 57780b1ecc7c5ae125be1c89406f8db1e00a581b /npc/custom/woe_controller.txt | |
parent | 0f1d03f505fdc03533122db8ba19fa55f64f11b7 (diff) | |
download | hercules-0f1d0507eb95cf07ce7eb66d89ad9853938612e6.tar.gz hercules-0f1d0507eb95cf07ce7eb66d89ad9853938612e6.tar.bz2 hercules-0f1d0507eb95cf07ce7eb66d89ad9853938612e6.tar.xz hercules-0f1d0507eb95cf07ce7eb66d89ad9853938612e6.zip |
change *strcharinfo to use constants
Diffstat (limited to 'npc/custom/woe_controller.txt')
-rw-r--r-- | npc/custom/woe_controller.txt | 10 |
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; |