goddameit Posted November 18, 2012 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Share 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 Link to comment Share on other sites More sharing options...
EvilPuncker Posted November 19, 2012 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 713 Reputation: 71 Joined: 11/08/11 Last Seen: December 25, 2024 Share 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 Link to comment Share on other sites More sharing options...
goddameit Posted November 20, 2012 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Author Share 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 Link to comment Share on other sites More sharing options...
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.