goddameit Posted November 18, 2012 Posted November 18, 2012 (edited) File Name: @ignorebattle File Submitter: goddameit File Submitted: 18 Nov 2012 File Category: Source Modifications Content Author: Goddameit Preview : [media=] [/media]When Someone use this command, all player in that map will not be attacked by mobs Click here to download this file Edited November 18, 2012 by goddameit Quote
EvilPuncker Posted November 19, 2012 Posted November 19, 2012 would be nice if all players can't atk them too. (sorry if it is already like this, didn't read the code yet ) Quote
goddameit Posted November 20, 2012 Author Posted November 20, 2012 would be nice if all players can't atk them too. (sorry if it is already like this, didn't read the code yet ) Index: src/map/battle.c=================================================================== --- src/map/battle.c (revision 16928) +++ src/map/battle.c (working copy) @@ -5089,6 +5089,9 @@ if( (s_bl = battle_get_master(src)) == NULL ) s_bl = src; + + if(s_bl->type == BL_MOB && t_bl->type == BL_PC && map[m].flag.mobcantattackplayer == 1 ) // [Goddameit] + return 0; if ( s_bl->type == BL_PC ) { switch( t_bl->type ) { remove Quote
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.