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
Region Flag - Training area - Help Sort issue
Author Message
babazar
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 10 in 9 posts
Joined: Jun 2013
Reputation: 0



Post: #1
Region Flag - Training area - Help Sort issue
Hi guys,
I have a few flags set up for our training area for magic and so on. I have a slight issue. We have players who are PK others using mounts when there in the training area, Targeting players who are afk etc..
Our players use NPC who walk freely on heal pads so no one dies..

Any idea how we can stop our players being PK by mounts etc ?
12-13-2013 02:44 AM
Find all posts by this user Like Post Quote this message in a reply
Runcuks
Journeyman
*

Posts: 179
Likes Given: 5
Likes Received: 3 in 3 posts
Joined: Nov 2012
Reputation: 0



Post: #2
RE: Region Flag - Training area - Help Sort issue
Set a tag for a region, add event to your mounts or add extra following code:


on=@hittry
if (<uid>==<act.uid>) || (<ACT.REGION.TAG0.NOKILLING>==1)
attackoff
return 1
endif
12-13-2013 06:06 AM
Find all posts by this user Like Post Quote this message in a reply
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #3
RE: Region Flag - Training area - Help Sort issue
Or just check region flags for region_flag_no_pvp
Code:
on=@Attack
if (<act.region.flags> &region_flag_no_pvp)
return 1
endif

No need to use a tag if the region is non-pvp.
(This post was last modified: 12-13-2013 06:24 AM by Khaos.)
12-13-2013 06:22 AM
Find all posts by this user Like Post Quote this message in a reply
Wap
Journeyman
*

Posts: 138
Likes Given: 6
Likes Received: 7 in 6 posts
Joined: Mar 2012
Reputation: 3

UORPG.net

Post: #4
RE: Region Flag - Training area - Help Sort issue
Also, if I remember correctly, region_flag_no_pvp doesn't block war magic for default.
12-13-2013 06:33 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Wap's post
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #5
RE: Region Flag - Training area - Help Sort issue
Code:
on=@GetHit
if (<src.region.flags> &region_flag_no_pvp) && (<argn2> &dam_magic)
return 1
endif

Close facsimile to resolve that. Another way is to add an event to the players to check the region on=@SpellCast; if it has the flag for damaging in the spell, return 1 out of it.
(This post was last modified: 12-13-2013 06:45 AM by Khaos.)
12-13-2013 06:43 AM
Find all posts by this user Like Post Quote this message in a reply
babazar
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 10 in 9 posts
Joined: Jun 2013
Reputation: 0



Post: #6
RE: Region Flag - Training area - Help Sort issue
would i need to add this as a resourcetype and add it as an event in the map?
12-13-2013 07:03 AM
Find all posts by this user Like Post Quote this message in a reply
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #7
RE: Region Flag - Training area - Help Sort issue
You could or attach it to the players. Whichever you prefer. Smile

If you add it as a resource type though on an event in a region; the triggers will need to check for the PET MEMORY. That way other npcs that are not tamed aren't affected.
(This post was last modified: 12-13-2013 07:18 AM by Khaos.)
12-13-2013 07:16 AM
Find all posts by this user Like Post Quote this message in a reply
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #8
RE: Region Flag - Training area - Help Sort issue
Code:
[events e_events_pet]
on=@Hit
if (<act.region.flags> &region_flag_no_pvp)
emote won't attack <src.name> in this area.
return 1
endif

[events e_events_player]
on=@GetHit
if (<act.region.flags> &region_flag_no_pvp) && (<argn2> &dam_magic)
smsg <src.name>'s spell does not affect you in this area.
src.smsg You cannot harm <name> in this area.
return 1
endif

This actually should be what you need possibly. Not sure if you need the <ACT> in there or not. Seemed logical.
12-13-2013 11:24 AM
Find all posts by this user Like Post Quote this message in a reply
babazar
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 10 in 9 posts
Joined: Jun 2013
Reputation: 0



Post: #9
RE: Region Flag - Training area - Help Sort issue
Thanks Khaos, All give it a try and get back to youBig Grin
12-13-2013 09:48 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes babazar's post
Post Reply 


Forum Jump:


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