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 > Site Support Forums > WoWDigger.com Support

 
 
Thread Tools Display Modes
Old 05-10-2005, 06:05 PM   #1
Bevyan
WorldofWar.Net Member
 
Join Date: Sep 2005
Posts: 2
Correction of small error in wownetexport.lua

Version 1.7.0.3

Use /wne show
use /wne npclist

and you get wownetexport.lua: 252 attempt tp concatenate field 'levelmax' (a nil value) if WorldObjectType data is among collected data. For example Gold Vein, Flame of Byltan, ...

Original function:
Code:
 
function WNE_PrintNPCs() 
	local index=0;
	local levelrange;
	for name in WNE_NPCInfo do
		index = index+1;
		levelrange=WNE_NPCInfo[name]["levelmin"] .. " - " ..WNE_NPCInfo[name]["levelmax"];
		TextDisplay:AddMessage("  ("..index..") " .. name .. " [lvl " .. levelrange .. "]",0,1,0);	
	end
end
Corrected function:
Code:
function WNE_PrintNPCs() 
  local index=0;
  local levelrange;
  local levelmin;
  local levelmax;
  for name in WNE_NPCInfo do
    levelmin = "";
    if (WNE_NPCInfo[name]["levelmin"] ~= nil) then
      levelmin = WNE_NPCInfo[name]["levelmin"];
    end
    levelmax = "";
    if (WNE_NPCInfo[name]["levelmax"] ~= nil) then
      levelmax = WNE_NPCInfo[name]["levelmax"];
    end
    index = index+1;
    levelrange = levelmin .. " - " .. levelmax;
    if (WNE_NPCInfo[name]["levelmin"] == nil and WNE_NPCInfo[name]["levelmax"] == nil) then
      TextDisplay:AddMessage("  ("..index..") " .. name,0,1);
    else
      TextDisplay:AddMessage("  ("..index..") " .. name .. " [lvl " .. levelrange .. "]",0,1,0);
    end
	end
end
I know this error doesn't have any influence over collecting data for your database and it is only modification for correct data display.

I hope it will help you.
Bevyan is offline  
Old 06-10-2005, 05:00 PM   #2
Annunaki
WWN Data Coder
 
Annunaki's Avatar
 
Join Date: Apr 2005
Location: Belgium
Posts: 296
That show data thingie was there for debugging purposes :-P So nobody should actually be using it anyway :-0
Annunaki is offline  
 

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:08 PM.


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