All pastes #403557 Raw Edit

Stuff

public text v1 · immutable
·published 2007-03-20 13:43 UTC
rendered paste body
using System;
using System.Collections.Generic;
using System.Text;
using ISXWoW;

namespace Bytebot
{
    class Mapper
    {
        private ISXWoW.ISXWoW wow = new ISXWoW.ISXWoW();

        public string SubZoneText
        {
            get 
            {
                return wow.WoWScript("GetMinimapZoneText()")[0].ToString();
            }
        }

        public string ZoneText
        {
            get 
            {
                return wow.WoWScript("GetRealZoneText()")[0].ToString();
            }
        }

        public string Continent
        {
            get
            {
                int CurrentMapContinent = int.Parse(wow.WoWScript("GetCurrentMapContinent()")[0]);
                wow.WoWScript("SetMapToCurrentZone()");
                return wow.WoWScript(string.Format("GetMapContinents(),{1}",CurrentMapContinent))[0].ToString();
            }
        }
    }
}