Jump to content
  • 0

Lock Attack (/nc) on GvG maps


Fratini

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  153
  • Reputation:   8
  • Joined:  07/01/14
  • Last Seen:  

Hi,

 

I would like to know where can I change to be able to lock the target in GvG maps.

 

Thank you!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  08/22/12
  • Last Seen:  

I was hoping somebody else would answer this.... anyways I believe it is client sided (/nc).

However if you go into your unit.c and search for unit_attack_timer_sub...

You can just insert this above

if(ud->state.attack_continue)
ud->attacktimer = add_timer(ud->attackabletime,unit_attack_timer,src->id,0);
 

if(src->type == BL_PC && map[src->m].flag.gvg)
ud->state.attack_continue = 0; // 0 for disabling the autoattack/lock, 1 for enabling it ALL THE TIME.

 

This code is 100% untested.

 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  153
  • Reputation:   8
  • Joined:  07/01/14
  • Last Seen:  

Thank you @Corrosive for reply! I'll test it and edit this post after, with results.

Edited by Fratini
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...