PDA

View Full Version : Disable mod while in city


Athene
27-06-2006, 10:21 AM
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?

WonderTeam
27-06-2006, 11:12 AM
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.

Athene
27-06-2006, 11:52 AM
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