SphereCommunity
Criminal When Looting - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Criminal When Looting (/Thread-Criminal-When-Looting)



Criminal When Looting - pinku - 03-22-2014 10:06 AM

Hey,

Is there a way to avoid a player from getting Criminal when looting another player body? I couldn't get to this result at all. :<

Thanks!


RE: Criminal When Looting - Ben - 03-22-2014 10:29 PM

LootingIsaCrime=0 in sphere.ini


RE: Criminal When Looting - pinku - 03-23-2014 05:05 AM

Thanks, Ben.

But is there a way to disable it only at certain situations?
As in, faction enemies (defined by TAGs) can loot each other.. Tongue


RE: Criminal When Looting - pinku - 03-26-2014 06:15 AM

I'm sorry to be bumping this at this stage, but is there any way I can do this?

Thanks!


RE: Criminal When Looting - darksun84 - 03-26-2014 06:55 AM

You can try this:
1-Do as Ben said by setting
// Looting or carving a blue player is a crime
LootingIsaCrime=0
2- Then add this to t_corpse typedef and add your condition checks
Code:
[TYPEDEF t_corpse]

ON=@PickUp_self
    if (<uid.<link>.tag0.yourfactiontag> != <src.tag0.yourfactiontag)
      src.criminal 1  
    endif