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
Disable PVP in houses (AREADEF/ROOMDEF etc.)
Author Message
Asavar
Apprentice
*

Posts: 4
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2015
Reputation: 0



Post: #1
Disable PVP in houses (AREADEF/ROOMDEF etc.)
Dear everyone,


I've been reading all I could find on the forums about AREADEF, ROOMDEF and events.

Basically, I want the houses in the game to be NO_PVP.

I read that all rooms in an area have the area flags.

I can't manage to disable PVP in houses at the moment. I've tried all I could find without any success.

I've read this topic but couldn't make an event work.

http://forum.spherecommunity.net/Thread-...ht=areadef

I tried to create new areas but all I get is conflicts.


Any help would be appreciated.
04-12-2015 10:30 PM
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: #2
RE: Disable PVP in houses (AREADEF/ROOMDEF etc.)
Do you have any kind of event for the houses?

If yes: apply an event to players entering the house which blocks pvp, remove on leave

If no: check Add-on\mordaunts_housing_system.zip, you can find inside what you need.
04-13-2015 05:18 AM
Find all posts by this user Like Post Quote this message in a reply
Asavar
Apprentice
*

Posts: 4
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2015
Reputation: 0



Post: #3
RE: Disable PVP in houses (AREADEF/ROOMDEF etc.)
Thank you.

I'm using static housing. All the houses are in sphereregion.scp. It's like willing to set the bank in no_pvp without the Britain Area being no_pvp.

A real nightmare.

Therefore, I don't have events for the houses. I'm checking Mourdaunts housing system.
04-13-2015 08:31 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: #4
RE: Disable PVP in houses (AREADEF/ROOMDEF etc.)
In this case, entering any building sets you statf_indoor so only a simple if (<flags>&statf_indoor) will do the job.
04-13-2015 04:51 PM
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)