![]() |
Region Flag - Training area - Help Sort issue - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: Region Flag - Training area - Help Sort issue (/Thread-Region-Flag-Training-area-Help-Sort-issue) |
Region Flag - Training area - Help Sort issue - babazar - 12-13-2013 02:44 AM 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 ? RE: Region Flag - Training area - Help Sort issue - Runcuks - 12-13-2013 06:06 AM 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 RE: Region Flag - Training area - Help Sort issue - Khaos - 12-13-2013 06:22 AM Or just check region flags for region_flag_no_pvp Code: on=@Attack No need to use a tag if the region is non-pvp. RE: Region Flag - Training area - Help Sort issue - Wap - 12-13-2013 06:33 AM Also, if I remember correctly, region_flag_no_pvp doesn't block war magic for default. RE: Region Flag - Training area - Help Sort issue - Khaos - 12-13-2013 06:43 AM Code: on=@GetHit 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. RE: Region Flag - Training area - Help Sort issue - babazar - 12-13-2013 07:03 AM would i need to add this as a resourcetype and add it as an event in the map? RE: Region Flag - Training area - Help Sort issue - Khaos - 12-13-2013 07:16 AM You could or attach it to the players. Whichever you prefer. ![]() 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. RE: Region Flag - Training area - Help Sort issue - Khaos - 12-13-2013 11:24 AM Code: [events e_events_pet] This actually should be what you need possibly. Not sure if you need the <ACT> in there or not. Seemed logical. RE: Region Flag - Training area - Help Sort issue - babazar - 12-13-2013 09:48 PM Thanks Khaos, All give it a try and get back to you ![]() |