Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PCHAR GetFullZone(DWORD ZoneID)
- {
- if (!ppWorldData | !pWorldData) return NULL;
- if(ZoneID > MAX_ZONES)
- ZoneID &= 0x7FFF;
- if(ZoneID > MAX_ZONES || ZoneID <= 0)
- return "UNKNOWN_ZONE";
- PZONELIST pZone = ((PWORLDDATA)pWorldData)->ZoneArray[ZoneID];
- return pZone->LongName;
- }
- // ***************************************************************************
- // Function: GetShortZone
- // Description: Returns a short zone name from a ZoneID
- // ***************************************************************************
- PCHAR GetShortZone(DWORD ZoneID)
- {
- if (!ppWorldData | !pWorldData) return NULL;
- if(ZoneID > MAX_ZONES)
- ZoneID &= 0x7FFF;
- if(ZoneID > MAX_ZONES || ZoneID <= 0)
- return "UNKNOWN_ZONE";
- PZONELIST pZone = ((PWORLDDATA)pWorldData)->ZoneArray[ZoneID];
- return pZone->ShortName;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement