Jump to content
  • 0

modify @monsterignore


Question

Posted

how do you modify @monsterignore to do this

if gm level is 70

you cannot be attacked by players but can be attacked by monsters

if gm level is 99

you can't be attacked by players and monsters

teach me please, sorry for bad english.

4 answers to this question

Recommended Posts

Posted

thanks for the reference

I just modified battle.c

if( sd->state.monster_ignore && flag&BCT_ENEMY )

to

if( sd->state.monster_ignore && flag&BCT_ENEMY )
 if( (pc_get_group_level(sd)!=99 && (map[m].flag.gvg_castle || map[m].flag.pvp)) || pc_get_group_level(sd)==99 )

this works for now, but still I like the answer to the first one

questions xD

1 how do you check if target is player xD?

2 how do you check if map=="prontera" for example?

Posted

1 how do you check if target is player xD?

target->type == BL_PC

2 how do you check if map=="prontera" for example?

map[sd->bl.m].name == "prontera"

Posted

thanks xD. already used

if( sd->state.monster_ignore && flag&BCT_ENEMY )
	  if( (pc_get_group_level(sd)!=99 && s_bl->type==BL_PC) || pc_get_group_level(sd)==99 )

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...