diff options
author | shennetsind <ind@henn.et> | 2013-03-29 19:40:25 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-03-29 19:40:25 -0300 |
commit | a89d501fc60b12a997a262429cb4515af9dad69e (patch) | |
tree | 39e2a5153a99d46dc40cb461eb3ecdb9ded73275 /src/map/instance.c | |
parent | cfd2bdb06048c17decaafd0f5a3c04e3f0ac6a3b (diff) | |
download | hercules-a89d501fc60b12a997a262429cb4515af9dad69e.tar.gz hercules-a89d501fc60b12a997a262429cb4515af9dad69e.tar.bz2 hercules-a89d501fc60b12a997a262429cb4515af9dad69e.tar.xz hercules-a89d501fc60b12a997a262429cb4515af9dad69e.zip |
Hercules Renewal: clif.c
1st Phase Complete.
http://hercules.ws/board/topic/237-hercules-renewal/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/instance.c')
-rw-r--r-- | src/map/instance.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map/instance.c b/src/map/instance.c index 76ae61147..8ddde8b3e 100644 --- a/src/map/instance.c +++ b/src/map/instance.c @@ -88,7 +88,7 @@ int instance_create(int party_id, const char *name) memset( instance[i].map, 0x00, sizeof(instance[i].map) ); p->instance_id = i; - clif_instance(i, 1, 0); // Start instancing window + clif->instance(i, 1, 0); // Start instancing window ShowInfo("[Instance] Created: %s.\n", name); return i; } @@ -357,7 +357,7 @@ void instance_destroy(int instance_id) else type = 3; - clif_instance(instance_id, 5, type); // Report users this instance has been destroyed + clif->instance(instance_id, 5, type); // Report users this instance has been destroyed while( instance[instance_id].num_map && last != instance[instance_id].map[0] ) { // Remove all maps from instance @@ -403,13 +403,13 @@ void instance_check_idle(int instance_id) delete_timer(instance[instance_id].idle_timer, instance_destroy_timer); instance[instance_id].idle_timer = INVALID_TIMER; instance[instance_id].idle_timeout = 0; - clif_instance(instance_id, 3, 0); // Notify instance users normal instance expiration + clif->instance(instance_id, 3, 0); // Notify instance users normal instance expiration } else if( instance[instance_id].idle_timer == INVALID_TIMER && idle ) { instance[instance_id].idle_timeout = now + instance[instance_id].idle_timeoutval; instance[instance_id].idle_timer = add_timer( gettick() + (unsigned int)instance[instance_id].idle_timeoutval * 1000, instance_destroy_timer, instance_id, 0); - clif_instance(instance_id, 4, 0); // Notify instance users it will be destroyed of no user join it again in "X" time + clif->instance(instance_id, 4, 0); // Notify instance users it will be destroyed of no user join it again in "X" time } } @@ -453,7 +453,7 @@ void instance_set_timeout(int instance_id, unsigned int progress_timeout, unsign } if( instance[instance_id].idle_timer == INVALID_TIMER && instance[instance_id].progress_timer != INVALID_TIMER ) - clif_instance(instance_id, 3, 0); + clif->instance(instance_id, 3, 0); } /*-------------------------------------- @@ -463,7 +463,7 @@ void instance_check_kick(struct map_session_data *sd) { int16 m = sd->bl.m; - clif_instance_leave(sd->fd); + clif->instance_leave(sd->fd); if( map[m].instance_id ) { // User was on the instance map if( map[m].save.map ) |