mleo1 Posted December 14, 2012 Posted December 14, 2012 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. Quote
Fresh prince Posted December 15, 2012 Posted December 15, 2012 @pk is the best solution for that. Try to find cydh's guide on source. Quote
mleo1 Posted December 16, 2012 Author Posted December 16, 2012 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? Quote
Cydh Posted December 16, 2012 Posted December 16, 2012 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" Quote
mleo1 Posted December 16, 2012 Author Posted December 16, 2012 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 ) Quote
Question
mleo1
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.