I'm not sure what to tell ya.
All I did was take the target name that I saw on my screen and put it into the array.
Does your names have any special characters in them, ie with umlouts (sp?) or anything?
Post your array so I can see what you are entering.
Finally, do this.
Run this script and see what names the script "thinks" is around your char:
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
Dim oServiceObject
Dim File
Dim temp
Dim FTarget
logFilename = GetXUnleashedDirectory() + "\Scripts\EQ2Test.txt" 'debug log file
function writeLogLine (msg)
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim FTarget, File, MyDate, MyTime, temp
MyDate = CStr (FormatDateTime (Date, 1))
MyTime = CStr (FormatDateTime (Time, 3))
Set FTarget = CreateObject("Scripting.FileSystemObject")
Set File = FTarget.OpenTextFile(logFilename, ForAppending, True)
temp = "[" & MyDate & " " & MyTime & "] " & msg & vbCrLf
File.Write temp
File.Close
end function
writeLogLine("Loading in Library: EQ2Service")
XUScriptPlugin.staStatus.Text = "Loading libraries... (EQ2Harvest-EQ2Service)"
XUScriptHost.ImportScript("EQ2Harvest\EQ2Service.vbs")
XUScriptPlugin.staStatus.Text = "Loading EQ2Service..."
set oServiceObject = XUScriptPlugin.GetService("EQ2Service.Service")
if Err.Number <> 0 then
XUScriptPlugin.staStatus.Text = "EQ2Service Failed to load!"
Sleep 5000
else
XUScriptPlugin.staStatus.Text = "UpdateData"
oServiceObject.UpdateData
Sleep 1000
Dim SpawnID
for i = 0 to 60
SpawnID = getMobID(oServiceObject, i)
SpawnName = getMobName(oServiceObject, i)
SpawnLevel = getMobLevel(oServiceObject, i)
writeLogLine("SpawnID[" & i & "," & SpawnName & "] is " & SpawnID & " level=" & SpawnLevel)
next
Sleep 2000
set File = Nothing
set FTarget = Nothing
set oServiceObject = Nothing
end if