find:(In the description it says this function is invoked when the player is receiving)
void pc_damage(struct map_session_data *sd,struct block_list *src,unsigned int hp, unsigned int sp)
inside the function add this:
unsigned int tick = gettick();
int warpgodelaycd = 5000; //This is the delay in milliseconds
sd->warpgodelay_tick = tick+warpgodelaycd; //This is the timer
then go now in map/atcommand.c
find
ACMD_FUNC(go)
then add this inside the function
unsigned int tick = gettick();
this is still in the (go) function
find below
nullpo_retr(-1, sd);
This is just below the list of maps in @go
then add below
if(DIFF_TICK(sd->warpgodelay_tick,tick)>0)
{
clif_displaymessage(fd,"There is a 5 seconds delay in using @go command");
return 0;
}
i want this to modify = when hit by mobs , there is no delay on using @go
Question
Fcuk
i want this to modify = when hit by mobs , there is no delay on using @go
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.