Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*int pcl_flushduration(lua_State *state, USER *sd) {
- struct block_list *bl = NULL;
- int x;
- int id;
- for(x = 0; x < MAX_MAGIC_TIMERS; x++) {
- id = sd->status.dura_aether[x].id;
- if(id > 0) {
- sd->status.dura_aether[x].duration = 0;
- clif_send_duration(sd,sd->status.dura_aether[x].id,0);
- sd->status.dura_aether[x].caster_id = 0;
- map_foreachinarea(clif_sendanimation, sd->bl.m, sd->bl.x, sd->bl.y, AREA, BL_PC, sd->status.dura_aether[x].animation, &sd->bl, -1);
- sd->status.dura_aether[x].animation = 0;
- if(sd->status.dura_aether[x].aether == 0) {
- sd->status.dura_aether[x].id = 0;
- }
- if(sd->status.dura_aether[x].caster_id != sd->bl.id) {
- bl = map_id2bl(sd->status.dura_aether[x].caster_id);
- }
- if(bl) {
- sl_doscript_blargs(magicdb_yname(id), "uncast", 2, &sd->bl, bl);
- } else {
- sl_doscript_blargs(magicdb_yname(id), "uncast", 1, &sd->bl);
- }
- }
- }
- return 0;
- }*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement