diff options
author | Emistry Haoyan <equinox1991@gmail.com> | 2020-03-07 22:21:39 +0800 |
---|---|---|
committer | Emistry Haoyan <equinox1991@gmail.com> | 2020-03-08 00:52:37 +0800 |
commit | 9ab883aa927c77cd8a0e1c9afb65ebef8ce5ab89 (patch) | |
tree | 53af653457a5fe4d1254d0cff710a909f757f0e5 /npc/custom | |
parent | 9106bbab19b4feaa4623a3b8e5d59e08ef73b640 (diff) | |
download | hercules-9ab883aa927c77cd8a0e1c9afb65ebef8ce5ab89.tar.gz hercules-9ab883aa927c77cd8a0e1c9afb65ebef8ce5ab89.tar.bz2 hercules-9ab883aa927c77cd8a0e1c9afb65ebef8ce5ab89.tar.xz hercules-9ab883aa927c77cd8a0e1c9afb65ebef8ce5ab89.zip |
Added Item Bound Type constants
- improve readability.
Diffstat (limited to 'npc/custom')
-rw-r--r-- | npc/custom/itembind.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/npc/custom/itembind.txt b/npc/custom/itembind.txt index e104d89b1..f0e128453 100644 --- a/npc/custom/itembind.txt +++ b/npc/custom/itembind.txt @@ -25,7 +25,7 @@ prontera,144,174,4 script Bound Items 4_M_JP_MID,{ } mes "What kind of bind?"; .@boundtype = 1 << (select("Account", "Guild", "Character")-1); - if(.@boundtype == 2 && (!getcharid(CHAR_ID_GUILD) || getguildinfo(GUILDINFO_MASTER_NAME, getcharid(CHAR_ID_GUILD)) != strcharinfo(PC_NAME))) { + if(.@boundtype == IBT_GUILD && (!getcharid(CHAR_ID_GUILD) || getguildinfo(GUILDINFO_MASTER_NAME, getcharid(CHAR_ID_GUILD)) != strcharinfo(PC_NAME))) { mes "In order for me to bind an item to a guild you must be the master of one."; close; } @@ -68,7 +68,7 @@ prontera,144,174,4 script Bound Items 4_M_JP_MID,{ mes "You don't have any bound items in your inventory. Not much I can do here."; close; } - countbound(2); + countbound(IBT_GUILD); if(.unbindprice) { mes "Unbinding an item has a fee of ^0000FF"+.unbindprice+"^000000 zeny."; if(Zeny < .unbindprice) { @@ -127,8 +127,8 @@ OnInit: .logbinds = 1; //Other stuff - .boundtypes$[1] = "account"; - .boundtypes$[2] = "guild"; - .boundtypes$[4] = "character"; + .boundtypes$[IBT_ACCOUNT] = "account"; + .boundtypes$[IBT_GUILD] = "guild"; + .boundtypes$[IBT_CHARACTER] = "character"; end; } |