Jump to content
  • 0

a way to limit cast range, so you can run outside view etc


lllaaazzz

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  154
  • Reputation:   6
  • Joined:  10/14/17
  • Last Seen:  

i thought it worked but maybe just imaging it . . .

 

if your db range is 2 (not exactly sure what -2 range does)

and you get targeted you can run more then 8 cells away and still be hit

but if you run outside map range it fails

 

any easy way to make it so if im not still range 2 it fails

 

Nevermind, ill just make them all insta cast /ok

 

int skill_get_range2(struct block_list *bl, int skill_id, int skill_lv)
{
    int range;
    struct map_session_data *sd = BL_CAST(BL_PC, bl);
    if( bl->type == BL_MOB && battle_config.mob_ai&0x400 )
        return 9; //Mobs have a range of 9 regardless of skill used.

 

Edited by lllaaazzz
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...