Author Topic: GetIsPvPArea ?  (Read 455 times)

Legacy_0pie

  • Jr. Member
  • **
  • Posts: 74
  • Karma: +0/-0
GetIsPvPArea ?
« on: April 02, 2011, 05:35:07 am »


                I want some unique power items in my mod to only work in no pvp areas. Is this possible ?
               
               

               
            

Legacy_GhostOfGod

  • Hero Member
  • *****
  • Posts: 1490
  • Karma: +0/-0
GetIsPvPArea ?
« Reply #1 on: April 02, 2011, 08:19:06 am »


               You can but there is no GetAreaPvP functions. So you have to take a kind of round about way to do it.
Either of these methods could work.

First, you would need to set a variable on either, all the areas that you want to allow the items to work or all the areas that you don't want them to work. Just depends on whichever will be less work for you. Then in you tag based script, check for the variable and then either allow the item to do what it's supposed to or don't.

The second method is just to list all the areas, that you want or don't want the item to work in, right in the tag based script itself. This might be a bit easier than going through each area in the toolset and adding a variable to it.
               
               

               


                     Modifié par GhostOfGod, 02 avril 2011 - 07:24 .