diff options
author | gumi <git@gumi.ca> | 2019-10-20 13:40:25 -0400 |
---|---|---|
committer | gumi <git@gumi.ca> | 2019-10-20 22:20:12 -0400 |
commit | 50f7cd8138cafc307b51d5c1f02c7f2893d2a0c5 (patch) | |
tree | 16ee679469af6aba9aa8b50b5985508e9715a450 /npc/custom/itembind.txt | |
parent | 9127ead75b9baa4e6372d11cb4ba033651976629 (diff) | |
download | hercules-50f7cd8138cafc307b51d5c1f02c7f2893d2a0c5.tar.gz hercules-50f7cd8138cafc307b51d5c1f02c7f2893d2a0c5.tar.bz2 hercules-50f7cd8138cafc307b51d5c1f02c7f2893d2a0c5.tar.xz hercules-50f7cd8138cafc307b51d5c1f02c7f2893d2a0c5.zip |
convert scripts to use getguildinfo()
Diffstat (limited to 'npc/custom/itembind.txt')
-rw-r--r-- | npc/custom/itembind.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/custom/itembind.txt b/npc/custom/itembind.txt index 7d95afdfc..e104d89b1 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) || getguildmaster(getcharid(CHAR_ID_GUILD)) != strcharinfo(PC_NAME))) { + if(.@boundtype == 2 && (!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; } @@ -88,7 +88,7 @@ prontera,144,174,4 script Bound Items 4_M_JP_MID,{ next; for(.@i = 0; .@i < getarraysize(@bound_items); .@i++) { if(@inventorylist_id[.@item] == @bound_items[.@i] && - (!getcharid(CHAR_ID_GUILD) || getguildmaster(getcharid(CHAR_ID_GUILD)) != strcharinfo(PC_NAME)) + (!getcharid(CHAR_ID_GUILD) || getguildinfo(GUILDINFO_MASTER_NAME, getcharid(CHAR_ID_GUILD)) != strcharinfo(PC_NAME)) ) { mes "I will only unbind guild bound items that the guild master requests."; close; |