I realize you put out your vbs script that serves as documentation of a sort but what I'd really like is documentation of the object you supply so that if we are not using VB we don't have to look at the VB script and determine what we THINK is the case.
One example is the function IsAttacking(spawnID), does that mean the mob is attacking or is attacking us?
What is InstanceName? the zone name has a number after it telling the instance number so what purpose does this serve?
Are you really throwing an error to return mob difficulty? Wouldn't it be easier to have a MobDifficulty function instead? If MobPower returns -1 how do I know if it's the mobs difficulty or that the mob has no power? If I can do MobPower and get no error how do I get difficulty? or is this a typo in the vbs and you intended to have MobDifficulty instead of MobPower?
Basically what I'm saying is I have to look at the vbs file to figure out how to use the object because I have found no documentation for the object. Could this be corrected or did I just miss the documentation somewhere?
One issue I'm having is that although most functions seem to work fine I have been unable to use MobIndex(spawnID) successfully, is it broken or is there something I should know about using it in Jscript?
What is the difference between FindMob and FindNearestMob, if FindMob does not return the nearest what order does it return them in? Random?
If I do:
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
for (index = 0;index < oSvcObj.MaxIndex;index++) {
... code here
}
Will I have found every mob in your DB? I ask because I have been looking at code from others and have seen them attempt to access indexes above MaxIndex, are there mobs there? If so please tell us about them.
Any time I am looking for documentation for this object I end out having to go through this thread again, it's very long and tedious, could the first message be edited to have documentation?
on the first page you have this in the change log:
(!empty($user->lang['QUOTE'])) ? $user->lang['QUOTE'] : ucwords(strtolower(str_replace('_', ' ', 'QUOTE'))):
April 21, 2005
Added InstanceName
Added MobDifficulty
Fixed Several Broken Memory Offsets
Fixed Bad Target Drawing on the radar (would overlap and was hard to read)
Added PC types, so the Draw PC, DrawNPC should now work correctly...
Is there a DrawPC or DrawNPC function on this object? it's not in the vbs file and I'd love to hear about it.
I realize this is a lot of questions but I"m just wrapping up my NavigateClass and have started the MobClass which is inteded to be a DB of mobs which can be accessed more conveniently based on more flexible criteria like mob color or distance or direction, etc... and I need to use as many of the abilities this object has to offer.
To finish up here is a request, I would like to be able to do something like the above code loop and inside do something like:
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
mobinfo = oSvcObj.MobInfo(index);
Where mobinfo returns a string of comma delimited fields containing everything your object knows about the mob so that I don't have to do 10 calls to the object to get level and difficulty and power and health and distance (you must have it since you have findnearestmob) etc.... Then I could just parse that string and I'd be done with that mob. You might even take this a step further and have GetAllMobInfo that returns GetMobInfo for all mobs with a field value of 'NewMob' or even '\n' to delimit mobs, this way we could make one call and have all mob info you have available at the time which we could parse and be done with it. Any chance of this actually happening? If so could this also be done with player info?