Jump to content

@ignorebattle


goddameit

Recommended Posts


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

index.php?app=downloads&module=display&section=screenshot&id=2671

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 by goddameit
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

would be nice if all players can't atk them too. (sorry if it is already like this, didn't read the code yet :P)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

would be nice if all players can't atk them too. (sorry if it is already like this, didn't read the code yet :P)

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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