ForesteR 
Apprentice

Posts: 45
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: May 2015
Reputation: 0
![]()
|
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>®ion_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 |
|
|