SphereCommunity
Criminal will flag you grey even if you are PK - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Criminal will flag you grey even if you are PK (/Thread-Criminal-will-flag-you-grey-even-if-you-are-PK)



Criminal will flag you grey even if you are PK - Rizz - 05-09-2015 07:57 AM

If you are pk and turn to criminal, you will be flagged as grey.
Is that a bug or a feature?

Some players complain about this.

r2265


RE: Criminal will flag you grey even if you are PK - XuN - 05-09-2015 04:50 PM

This is intended (OSI-like), you can override this with @NotoSend:

Code:
ON=@NotoSend
if (<IsEvil>) // If i'm evil
argn1 = 6 // my notoriety will be always RED regardless of anything else (criminal, etc), you can also add some checks here to send green notoriety for PK players in same guild, party, etc ... or even custom friend lists... whatever :)
endif


[FUNCTION IsMurderer] //tells if someone is PK.
return <qval (<kills> > <serv.MurderMinCount>) ? 1 : 0>

[FUNCTION IsEvil] // tells if someone is RED, because of being PK or any other factors.
if (<Region.Guarded> && <Region.tag0.red>)// red regions have reversed checks.
if (<IsMurderer>)
  return 0
endif
if (!<Brain>) // player
  if (<Karma> > <serv.PlayerKarmaEvil> )
   return 1
  endif
else
  if (<Karma> > 0 )
   return 1
  endif
endif
return 0 // Anything else is not red in this region, return false
endif
//Other regions
if (<IsMurderer>) //If I'm PK them i'm red, no more checks needed.
return 1
endif
if (<brain>) // special checks for npcs
if (<brain>==12 || <brain>==10) // brain_undead and brain_monster
  return <qval (<karma>< 0)?1:0> // are red if their karma is lower than 0
elseif (<brain>==11) // brain_berserk is always red
  return 1
elseif (<brain>==1) // brain_animal are red if karma is lower or equal to -800
  return <qval (<karma><=-800)?1:0>
endif
else //players
return <qval (<Karma> < <serv.PlayerKarmaEvil>)?1:0> // checking ini's setting for player's karma.
endif
return <qval (<Karma> <= -3000)?1:0> // everything else must have less than -3000 karma

I'll post an aditional function:

Code:
[FUNCTION IsNeutral]
if (<brain>)
if (<brain>==10 || <brain>==11) // undeads and monsters
  return <qval (<karma> < 0)?1:0>
elseif (<brain>==1) // animals
  return <qval (<karma> <= 100 )?1:0>
endif
else
return <qval (<Karma> < <serv.PlayerKarmaNeutral>) ?1:0>
endif
return <qval (<Karma> < 0) ?1:0>



RE: Criminal will flag you grey even if you are PK - Rizz - 05-11-2015 03:50 AM

Thx XuN


RE: Criminal will flag you grey even if you are PK - Coruja - 05-14-2015 04:59 PM

yep it works like this, even PK can be flagged criminal too because on OSI pk can enter on guarded regions too and guards can be called only when someone become criminal (on sphere you can do it using GuardsOnMurderers=0 on sphere.ini), so both blue/pk players must know when they are criminal