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-nmm6 (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-nmm6 (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-nmm6 (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
prevent becomming a criminal
Author Message
richm
Journeyman
*

Posts: 58
Likes Given: 4
Likes Received: 4 in 3 posts
Joined: Aug 2014
Reputation: 0



Post: #1
prevent becomming a criminal
Hello

I've set up a custom region, and anyone entering that region is given a specific EVENT, when leaving the EVENT is taken away.

Is there a way to incorporate into this EVENT that fighting in this region is not a crime? i.e. to prevent any players from becoming a criminal for attacking another?

Also, can anyone explain what the areadef "arena" does?

Thanks
Rich Smile
(This post was last modified: 09-05-2014 07:41 AM by richm.)
09-05-2014 07:40 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #2
RE: prevent becomming a criminal
u mean when doing criminal actions do not become the player a criminal?
09-06-2014 02:29 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #3
RE: prevent becomming a criminal
@Criminal
09-06-2014 02:33 AM
Find all posts by this user Like Post Quote this message in a reply
richm
Journeyman
*

Posts: 58
Likes Given: 4
Likes Received: 4 in 3 posts
Joined: Aug 2014
Reputation: 0



Post: #4
RE: prevent becomming a criminal
thank Smile
09-06-2014 05:14 AM
Find all posts by this user Like Post Quote this message in a reply
richm
Journeyman
*

Posts: 58
Likes Given: 4
Likes Received: 4 in 3 posts
Joined: Aug 2014
Reputation: 0



Post: #5
RE: prevent becomming a criminal
So I understand that if i use the trigger:

ON=@Criminal
RETURN 1

My players wont become a criminal for doing a criminal action, however will they still become "attackable" (grey) to someone they hit first? i.e. they will have an attacker memory?

Has anyone got a function that scans the players memory to .remove any attacker memories it comes across? As players may have more than 1 attacker memory I presume it would need some sort of loop in the function to keep checking? This is unfortunately out of my capabilities at the moment Sad
09-08-2014 07:34 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #6
RE: prevent becomming a criminal
You can take a look at @MemoryEquip trigger for items (@ItemMemoryEquip for chars). Any added memory is firing this trigger.

Edit: It is @MemoryEquip and not @LayerEquip.
(This post was last modified: 09-08-2014 11:02 PM by XuN.)
09-08-2014 04:22 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: #7
RE: prevent becomming a criminal
try using ".region.arena 1" ingame on this region, or set ARENA=1 directly on the AREADEF script

I never used it and don't know if it works, but as the name suggests, this will turn the region into a "arena" and ppl can attack each other without being flagged criminal
09-11-2014 08:18 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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