The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
i_memory: where you store the mem_flags
Author Message
ForesteR
Apprentice
*

Posts: 45
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: May 2015
Reputation: 0



Post: #13
RE: i_memory: where you store the mem_flags
(05-20-2015 05:32 PM)XuN Wrote:  This is how notoriety is being checked now.
Code:
//Predefined behs
if (<src.flags>&statf_invul)
  return 7//invul
endif
if (<src.criminal>)
  return 4//criminal
endif
if (AllowIncognito && <src.flags>&statf_incognito)//AllowIncognito is set depending on the situation
  return 3//neutral
endif
if (<region.flags>&region_flag_arena) //yes, this does exists, but it was missing in sphere_defs... i added it right now.
  return 3
endif
if (Noto_IsEvil) // i pasted this function in another post
  return 6
endif
if (Noto_IsNeutral)
  return 3
endif
//Checking mems

if (<src>!=<uid>)// no more checks for me passed this point, i'm not going to have memories of me commiting a crime so its ok to return blue.


ref1=<findmemories_with_one_of_these_flags MEMORY_SAWCRIME | MEMORY_AGGREIVED | MEMORY_HARMEDBY>
if (<ref1>)
  return 4//criminal
endif

if (<src.isinparty> && <src.isinsamepartyof <uid>>)
  return 2//green, noto_guild_same
endif
if (<src.guild>)
  if (<guild>)
    if (<src.guild>==<guild>)
       return 2
    elseif (<guild.isalliedwith <src.guild>>)
       return 2
    elseif (<guild.isatwarwith <src.guild>>)
       return 5// brown, noto_guild_War
    endif
  endif
endif
if (<src.town>)
   if (<town>)
    if (<town.isatwarwith <src.town>>)
       return 5
    endif
  endif
endif

endif
return 1

Can u post the custom functions?
06-19-2015 05:16 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: i_memory: where you store the mem_flags - ForesteR - 06-19-2015 05:16 AM

Forum Jump:


User(s) browsing this thread: 10 Guest(s)