Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Criminal
Author Message
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #1
Criminal
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?
01-21-2017 01:54 PM
Find all posts by this user Like Post Quote this message in a reply
Sum
Apprentice
*

Posts: 40
Likes Given: 32
Likes Received: 5 in 4 posts
Joined: Feb 2016
Reputation: 0



Post: #2
RE: Criminal
Could it be as simple as a region flag? or does it happen on all maps?
01-22-2017 04:52 PM
Find all posts by this user Like Post Quote this message in a reply
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #3
RE: Criminal
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.
01-23-2017 08:26 AM
Find all posts by this user Like Post Quote this message in a reply
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #4
RE: Criminal
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?
(This post was last modified: 01-28-2017 01:25 PM by Leonidas.)
01-28-2017 01:09 PM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #5
RE: Criminal
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)
01-30-2017 12:08 PM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #6
RE: Criminal
I made some changes on source, try using this test build to check if it's working fine


Attached File(s)
.zip  SphereSvr-AttackTest.zip (Size: 1.24 MB / Downloads: 7)
01-31-2017 01:30 AM
Find all posts by this user Like Post Quote this message in a reply
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #7
RE: Criminal
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
01-31-2017 09:43 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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