SphereCommunity
Criminal - Printable Version

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



Criminal - Leonidas - 01-21-2017 01:54 PM

Criminal status is not working on my server. I made a player account, attacked a npc, and they called guards but nothing happened. My player remains blue. I logged on 2 seperate player accounts and had 1 attack the other and the attacker still remained blue.

I've looked at all my events and tags I have set on players and none of them would impede criminal actions.

It seems that when I attack an NPC, they call guards, and when the guard arrives he does nothing because my character is blue. Maybe the guards are messed up?


RE: Criminal - Sum - 01-22-2017 04:52 PM

Could it be as simple as a region flag? or does it happen on all maps?


RE: Criminal - Leonidas - 01-23-2017 08:26 AM

Code:
[AREADEF a_townVesper]
NAME=Vesper
GROUP=Vesper
P=2899,676,0,0
RECT=2730,948,2826,999,0
RECT=2820,773,2953,1011,0
RECT=2844,608,2915,773,0
RECT=2915,608,2983,657,0
RECT=2983,623,3008,657,0
RECT=2915,657,2963,773,0
RECT=2953,738,3042,868,0
RECT=2963,687,2993,738,0
RECT=3042,808,3057,849,0
RECT=2953,868,2992,962,0
RECT=2828,692,2846,772,0
FLAGS=region_flag_nobuilding|region_flag_guarded|region_flag_insta_logout
EVENTS=r_default,r_default_rock,r_default_water,r_default_tree,r_default_grass
TAG.GUARDOWNER=the town
TAG.MUSIC=midi_vesper


I don't think it's the region and yeah it's happening everywhere.


RE: Criminal - Leonidas - 01-28-2017 01:09 PM

Anyone have any idea on this? I cannot figure this out.

Edit: Just noticed that when I attack an NPC i remain blue but I still get the popup notification "You may turn criminal for this aciton". Upon clicking okay my character still remains blue. But when I kill the npc, my character then turns criminal. Is there no hardcoded script that turns players criminal upon attacking npc's? Or is it only when they kill the npc?


RE: Criminal - Coruja - 01-30-2017 12:08 PM

try using AttackingIsaCrime on sphere.ini

AttackingIsaCrime=0 -> flag criminal only after hit / damage
AttackingIsaCrime=1 -> flag criminal instantly when start the attack (even without hit the target)


RE: Criminal - Coruja - 01-31-2017 01:30 AM

I made some changes on source, try using this test build to check if it's working fine


RE: Criminal - Leonidas - 01-31-2017 09:43 AM

AttackingIsACrime has always been set to 1.

Tried using your test build and it didn't fix anything. I'm guessing that means it has something to do with my scripts?

Thank you btw