WyriHaximus
28-10-2006, 08:53 PM
To start with this is my first mod. I have programming/scripting knowledge in PHP, JavaScript, VB6.0 and some others so the putting something together wasn't realy a problem but getting it to work as I wan it :).
This is my .toc:
## Interface: 11200
## Title: WyriHaximus Map Data Gatherer v1.0
## Notes: Gathers data of every single coardinate in the game.
## SavedVariables: MapDataGatherer
MapDataGatherer.lua
MapDataGatherer.xml
This is my .xml:
<?xml-stylesheet type="text/xsl" href="/css/wowui.xsl"?>
<Ui xmlns="http://www.blizzard.com/wow/ui/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
<Script file="MapDataGatherer.lua"/>
<Frame parent="UIParent">
<Frames>
<Button name="MapDataGatherer" inherits="MapDataGathererTemplate" frameStrata="FULLSCREEN" toplevel="true">
<Scripts>
<OnLoad>
MapDataGatherer_OnLoad();
</OnLoad>
<OnEvent>
MapDataGatherer_OnEvent();
</OnEvent>
<OnUpdate>
MapDataGatherer_OnUpdate(arg1);
</OnUpdate>
</Scripts>
</Button>
</Frames>
</Frame>
</Ui>
This is my .lue:
MDG_COORDS_ID = "Coords";
function MapDataGatherer_OnLoad()
this:RegisterEvent("ZONE_CHANGED");
this:RegisterEvent("ZONE_CHANGED_INDOORS");
this:RegisterEvent("ZONE_CHANGED_NEW_AREA");
this:RegisterEvent("MINIMAP_ZONE_CHANGED");
this:RegisterEvent("PLAYER_ENTERING_WORLD");
end
function MapDataGatherer_OnEvent()
this.pvpType, this.factionName, this.isArena = GetZonePVPInfo();
this.px, this.py = GetPlayerMapPosition("player");
MapDataGatherer.[GetZoneText()].[this.px].[this.py] = {
["ZoneText"] = GetZoneText(),
["SubZOneText"] = GetSubZoneText(),
["PvP"] = {
["Type"] = this.pvpType,
["FactionName"] = this.factionName,
["isArena"] = this.isArena,
},
};
end
function MapDataGatherer_OnUpdate(arg1)
MapDataGatherer_OnEvent();
end
The problem are these 2 errors and this in my saved values file "MapDataGatherer = MapDataGatherer":
http://img63.imageshack.us/img63/1917/wowscrnshot102806201919un4.th.jpg (http://img63.imageshack.us/my.php?image=wowscrnshot102806201919un4.jpg)
(This error keeps popping up if I click it away.)
http://img124.imageshack.us/img124/710/wowscrnshot102806201843bu5.th.jpg (http://img124.imageshack.us/my.php?image=wowscrnshot102806201843bu5.jpg)
(This error is only once at login.)
The whole goal of this AddOn is gathering information about every coardinate of every area.
If someone can help em with this problem it would be very much apriciated.
Greetings,
WyriHaximus
This is my .toc:
## Interface: 11200
## Title: WyriHaximus Map Data Gatherer v1.0
## Notes: Gathers data of every single coardinate in the game.
## SavedVariables: MapDataGatherer
MapDataGatherer.lua
MapDataGatherer.xml
This is my .xml:
<?xml-stylesheet type="text/xsl" href="/css/wowui.xsl"?>
<Ui xmlns="http://www.blizzard.com/wow/ui/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
<Script file="MapDataGatherer.lua"/>
<Frame parent="UIParent">
<Frames>
<Button name="MapDataGatherer" inherits="MapDataGathererTemplate" frameStrata="FULLSCREEN" toplevel="true">
<Scripts>
<OnLoad>
MapDataGatherer_OnLoad();
</OnLoad>
<OnEvent>
MapDataGatherer_OnEvent();
</OnEvent>
<OnUpdate>
MapDataGatherer_OnUpdate(arg1);
</OnUpdate>
</Scripts>
</Button>
</Frames>
</Frame>
</Ui>
This is my .lue:
MDG_COORDS_ID = "Coords";
function MapDataGatherer_OnLoad()
this:RegisterEvent("ZONE_CHANGED");
this:RegisterEvent("ZONE_CHANGED_INDOORS");
this:RegisterEvent("ZONE_CHANGED_NEW_AREA");
this:RegisterEvent("MINIMAP_ZONE_CHANGED");
this:RegisterEvent("PLAYER_ENTERING_WORLD");
end
function MapDataGatherer_OnEvent()
this.pvpType, this.factionName, this.isArena = GetZonePVPInfo();
this.px, this.py = GetPlayerMapPosition("player");
MapDataGatherer.[GetZoneText()].[this.px].[this.py] = {
["ZoneText"] = GetZoneText(),
["SubZOneText"] = GetSubZoneText(),
["PvP"] = {
["Type"] = this.pvpType,
["FactionName"] = this.factionName,
["isArena"] = this.isArena,
},
};
end
function MapDataGatherer_OnUpdate(arg1)
MapDataGatherer_OnEvent();
end
The problem are these 2 errors and this in my saved values file "MapDataGatherer = MapDataGatherer":
http://img63.imageshack.us/img63/1917/wowscrnshot102806201919un4.th.jpg (http://img63.imageshack.us/my.php?image=wowscrnshot102806201919un4.jpg)
(This error keeps popping up if I click it away.)
http://img124.imageshack.us/img124/710/wowscrnshot102806201843bu5.th.jpg (http://img124.imageshack.us/my.php?image=wowscrnshot102806201843bu5.jpg)
(This error is only once at login.)
The whole goal of this AddOn is gathering information about every coardinate of every area.
If someone can help em with this problem it would be very much apriciated.
Greetings,
WyriHaximus