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 /src/map/pc.c | |
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 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index d3b5498cc..1b7fcd610 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -5529,7 +5529,7 @@ int pc_setpos(struct map_session_data* sd, unsigned short map_index, int x, int for( i = 0; i < sd->queues_count; i++ ) { struct script_queue *queue = script->queue(sd->queues[i]); if (queue && queue->event_mapchange[0] != '\0') { - pc->setregstr(sd, script->add_str("@QMapChangeTo$"), map->list[m].name); + pc->setregstr(sd, script->add_str("@Queue_Destination_Map$"), map->list[m].name); npc->event(sd, queue->event_mapchange, 0); } } |