The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Criminal When Looting
Author Message
pinku
Journeyman
*

Posts: 118
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Apr 2013
Reputation: 4



Post: #1
Criminal When Looting
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!
03-22-2014 10:06 AM
Find all posts by this user Like Post Quote this message in a reply
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #2
RE: Criminal When Looting
LootingIsaCrime=0 in sphere.ini

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
03-22-2014 10:29 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
pinku
Journeyman
*

Posts: 118
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Apr 2013
Reputation: 4



Post: #3
RE: Criminal When Looting
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
(This post was last modified: 03-26-2014 06:14 AM by pinku.)
03-23-2014 05:05 AM
Find all posts by this user Like Post Quote this message in a reply
pinku
Journeyman
*

Posts: 118
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Apr 2013
Reputation: 4



Post: #4
RE: Criminal When Looting
I'm sorry to be bumping this at this stage, but is there any way I can do this?

Thanks!
03-26-2014 06:15 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #5
RE: Criminal When Looting
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
(This post was last modified: 03-26-2014 06:57 AM by darksun84.)
03-26-2014 06:55 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)