diff options
author | Haru <haru@dotalux.com> | 2015-11-14 19:43:38 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-11-14 21:11:42 +0100 |
commit | 367c806bccbf242c2025356777b4cf1d194c481a (patch) | |
tree | 16e19f7f12fa35be0cf68dec6d9f49293931a21d /npc/custom/bgqueue/flavius.txt | |
parent | 5869aadef89270cf38bee53f5ce3959142dde10a (diff) | |
download | hercules-367c806bccbf242c2025356777b4cf1d194c481a.tar.gz hercules-367c806bccbf242c2025356777b4cf1d194c481a.tar.bz2 hercules-367c806bccbf242c2025356777b4cf1d194c481a.tar.xz hercules-367c806bccbf242c2025356777b4cf1d194c481a.zip |
Standardized script-queue related commands
- The commands queueadd, queueremove, queueopt, queuedel and qiclear
now all return true (success) or false (failure). - Taken/extended
from AnnieRuru's PR #847.
- The constants HQO_OnDeath, HQO_OnLogOut, HQO_OnMapChange were renamed
to QUEUEOPT_DEATH, QUEUEOPT_LOGOUT, QUEUEOPT_MAPCHANGE respectively.
- The name of the variable @QMapChangeTo$ used during the
QUEUEOPT_MAPCHANGE event has been renamed to @Queue_Destination_Map$.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'npc/custom/bgqueue/flavius.txt')
-rw-r--r-- | npc/custom/bgqueue/flavius.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/npc/custom/bgqueue/flavius.txt b/npc/custom/bgqueue/flavius.txt index f93821264..99a4d5e0a 100644 --- a/npc/custom/bgqueue/flavius.txt +++ b/npc/custom/bgqueue/flavius.txt @@ -33,8 +33,8 @@ OnPlayerListReady: set $@Croix_QueueBG1, queue(); set $@Guill_QueueBG1, queue(); - queueopt($@Guill_QueueBG1,HQO_OnLogout,"start#bat_b01::OnGuillaumeQuit"); - queueopt($@Croix_QueueBG1,HQO_OnLogout,"start#bat_b01::OnCroixQuit"); + queueopt($@Guill_QueueBG1, QUEUEOPT_LOGOUT, "start#bat_b01::OnGuillaumeQuit"); + queueopt($@Croix_QueueBG1, QUEUEOPT_LOGOUT, "start#bat_b01::OnCroixQuit"); set .@i, 0; @@ -143,8 +143,8 @@ OnPlayerListReady: bg_warp $@FlaviusBG1_id2,"bat_b01",311,224; /* after warp */ - queueopt($@Guill_QueueBG1,HQO_OnMapChange,"start#bat_b01::OnGuillaumeQuit"); - queueopt($@Croix_QueueBG1,HQO_OnMapChange,"start#bat_b01::OnCroixQuit"); + queueopt($@Guill_QueueBG1, QUEUEOPT_MAPCHANGE, "start#bat_b01::OnGuillaumeQuit"); + queueopt($@Croix_QueueBG1, QUEUEOPT_MAPCHANGE, "start#bat_b01::OnCroixQuit"); donpcevent "countdown#bat_b01::OnEnable"; end; |