Jump to content

  •  

Photo

Prevent Logout when use any Skill.


  • Please log in to reply
No replies to this topic

#1 Kusan

Kusan

    Member

  • Members
  • PipPip
  • 17 posts

Posted 08 August 2016 - 07:51 PM

@EDIT
 
I edited and was the easiest thing in the world. for those who want to make a system Anti -Run PvP edit this
 
Search src/map/skill.c and find: 
 
case TF_BACKSLIDING:
        clif->skill_nodamage(src,bl,skill_id,skill_lv,1);
	skill->blown(src,bl,skill->get_blewcount(skill_id,skill_lv),unit->getdir(bl),0);
	clif->fixpos(bl);
        break;

and add after clif->fixpos(bl);

 

case TF_BACKSLIDING:
        clif->skill_nodamage(src,bl,skill_id,skill_lv,1);
	skill->blown(src,bl,skill->get_blewcount(skill_id,skill_lv),unit->getdir(bl),0);
	clif->fixpos(bl);
        sd->canlog_tick = timer->gettick();
        break;

 

 

So you can no longer logout when using this skill.

 

 

 


Edited by Kusan, 08 August 2016 - 09:57 PM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


This topic has been visited by 19 user(s)