Unofficial World of Warcraft Forums  
Please respect other members. Please do not post links or information about hacking/warez/cheats.
Read the rules of these forums as we rarely warn before banning. Lost or need RSS check the forum map.

Quick Site Nav
Navigation
Worldofwar.Net
WoW Forums
WoWDigger WoW Database
Articles
Community Blogs
WoW Info
Wrath of the Lich King Info
Primary Professions
Secondary Professions
Maps
Classes
PvP
A-Z Index
Guides
Submit Guides
List Guides
UI/Mods
Latest Mods
Submit Mod
List Macros
Submit Macro
Media Gallery
Gallery Home
Upload Pics
Community WoW Shots
Community BC Shots
Player Pics
Official WoW Shots
Official BC Shots


Donate and get extra forum perks
Support WoW:IncGamers

Go Back   Unofficial World of Warcraft Forums > WoW Community Forums > UI Customisation > UI/Mod Developer Forum

Reply
 
Thread Tools Display Modes
Old 27-06-2006, 10:21 AM   #1
Athene
WorldofWar.Net Member
 
Athene's Avatar
 
Join Date: Mar 2005
Location: Oslo, Norway
Posts: 43
Disable mod while in city

I want my mod to turn off whenever a player enters any pvpsafe area(cities), and on again when the player enters a non-pvpsafe area.
However the only way I can find for doing this, is by using "zone_changed" and then check if the new zone matches any of the pvp-safe areas in the game... That's not a very efficient method, so Im hoping someone here knows a better way?
Athene is offline   Reply With Quote
Old 27-06-2006, 11:12 AM   #2
WonderTeam
WorldofWar.Net Member
 
Join Date: Apr 2006
Posts: 1
You can try to use:

GetZonePVPInfo();

Returns

String pvpType, String factionName, Boolean isArena

pvpType
"friendly", if the zone is controlled by the faction the player belongs to
"contested", if the zone is contested
"hostile", if the zone is controlled by the opposing faction
factionName
the faction, that controls the zone, if pypType is "friendly" or "hostile"
isArena
true, if the player is in an arena, false otherwise

Hope that helps.
WonderTeam is offline   Reply With Quote
Old 27-06-2006, 11:52 AM   #3
Athene
WorldofWar.Net Member
 
Athene's Avatar
 
Join Date: Mar 2005
Location: Oslo, Norway
Posts: 43
Well it's better than nothing, but it doesnt stop the mod from running while in camps in contested areas.
The thing is, that the mod is not needed while in cities\camps, and it's kinda annoying when it runs while you dont need it to. I've been thinking of both making it automatically stop running while in cities, and add a button to stop it manually. Maybe I'll just stick to the button
Athene is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:41 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Advertisement System V2.5 By   Branden