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)