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/events/nguild | |
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/events/nguild')
-rw-r--r-- | npc/events/nguild/nguild_ev_agit.txt | 2 | ||||
-rw-r--r-- | npc/events/nguild/nguild_flags.txt | 6 | ||||
-rw-r--r-- | npc/events/nguild/nguild_kafras.txt | 2 | ||||
-rw-r--r-- | npc/events/nguild/nguild_managers.txt | 8 |
4 files changed, 9 insertions, 9 deletions
diff --git a/npc/events/nguild/nguild_ev_agit.txt b/npc/events/nguild/nguild_ev_agit.txt index 9bb76f728..81adc89d4 100644 --- a/npc/events/nguild/nguild_ev_agit.txt +++ b/npc/events/nguild/nguild_ev_agit.txt @@ -80,7 +80,7 @@ function script F_AgitBreak { setcastledata .@map$,1, .@GID; mapannounce .@map$,"The emperium has been destroyed.",bc_map,0x00CCFF; - announce "The [" + getcastlename(.@map$) + "] castle has been conquered by the [" + getguildname(.@GID) + "] guild.",bc_all; + announce "The [" + getcastlename(.@map$) + "] castle has been conquered by the [" + getguildinfo(GUILDINFO_NAME, .@GID) + "] guild.",bc_all; donpcevent "::OnRecvCastle"+.@castle$; disablenpc "Kafra Staff#"+.@castle$; diff --git a/npc/events/nguild/nguild_flags.txt b/npc/events/nguild/nguild_flags.txt index 999f79dca..91ca46c87 100644 --- a/npc/events/nguild/nguild_flags.txt +++ b/npc/events/nguild/nguild_flags.txt @@ -68,10 +68,10 @@ function script F_Flags { mes "1. Following the ordinance of the"; mes "Divine Rune Midgard Kingdom,"; mes "we approve that this place is in"; - mes "the private possession of ^ff0000" + getguildname(.@GID) + "^000000 Guild."; + mes "the private possession of ^ff0000" + getguildinfo(GUILDINFO_NAME, .@GID) + "^000000 Guild."; mes " "; - mes "2. The guild Master of ^ff0000"+ getguildname(.@GID) + "^000000 Guild is"; - mes "^FF0000" + getguildmaster(.@GID) + "^000000"; + mes "2. The guild Master of ^ff0000"+ getguildinfo(GUILDINFO_NAME, .@GID) + "^000000 Guild is"; + mes "^FF0000" + getguildinfo(GUILDINFO_MASTER_NAME, .@GID) + "^000000"; mes "If there is anyone who objects to this,"; mes " prove your strength and honor with a steel blade in your hand."; return; diff --git a/npc/events/nguild/nguild_kafras.txt b/npc/events/nguild/nguild_kafras.txt index 96371ec91..7dfd14036 100644 --- a/npc/events/nguild/nguild_kafras.txt +++ b/npc/events/nguild/nguild_kafras.txt @@ -41,7 +41,7 @@ function script F_GKafra { @GID = getcastledata(getarg(0),1); if (getcharid(CHAR_ID_GUILD) != @GID || getgdskilllv(@GID,10001) < 1) { mes "[Kafra Service]"; - mes "I am contracted to provide service only for the ^ff0000" + getguildname(@GID) + "^000000 Guild. Please use another Kafra Corporation staff member around here. I am Sorry for your inconvenience."; + mes "I am contracted to provide service only for the ^ff0000" + getguildinfo(GUILDINFO_NAME, @GID) + "^000000 Guild. Please use another Kafra Corporation staff member around here. I am Sorry for your inconvenience."; cutin "",255; close; } diff --git a/npc/events/nguild/nguild_managers.txt b/npc/events/nguild/nguild_managers.txt index a24a0cb15..93fe8b92c 100644 --- a/npc/events/nguild/nguild_managers.txt +++ b/npc/events/nguild/nguild_managers.txt @@ -48,16 +48,16 @@ function script F_GldManager { return; } if (getcharid(CHAR_ID_GUILD) != @GID){ - mes "I am here to follow ^5533FF" + getguildmaster(@GID) + "^000000's command! Hey! Your not even a part of the guild!!"; + mes "I am here to follow ^5533FF" + getguildinfo(GUILDINFO_MASTER_NAME, @GID) + "^000000's command! Hey! Your not even a part of the guild!!"; mes "Where are the guardians? Destroy these intruders!"; return; } - if (strcharinfo(PC_NAME) != getguildmaster(@GID)){ - mes "You're not ^5533FF" + getguildmaster(@GID) + "^000000! I am here to follow ^5533FF" + getguildmaster(@GID) + "^000000's command only"; + if (strcharinfo(PC_NAME) != getguildinfo(GUILDINFO_MASTER_NAME, @GID)){ + mes "You're not ^5533FF" + getguildinfo(GUILDINFO_MASTER_NAME, @GID) + "^000000! I am here to follow ^5533FF" + getguildinfo(GUILDINFO_MASTER_NAME, @GID) + "^000000's command only"; return 0; } - mes "Welcome Master ^5533FF" + getguildmaster(@GID) + "^000000 ! I will assist you in any way I can!"; + mes "Welcome Master ^5533FF" + getguildinfo(GUILDINFO_MASTER_NAME, @GID) + "^000000 ! I will assist you in any way I can!"; next; switch (select("Kafra Staff Employment / Dismissal","Enter Treasure Room","Cancel")) { |