Quote:
Originally Posted by PW-Prophets
Yea I guess it will have to be done that way.
Edit: Now that I have that done I will be doing some heavy testing before it is uploaded.
Thank you omarr for kicking me back in the right direction.
Edit: Good news all features are fixed, so I am now just testing and making minor ajustments. Prophet Bot should be uploaded by the end of the night!
|
your welcome

btw. take a look in your source on this:
Func SetPetSupport()
this line can be deleted:
Global $PETNO = IniRead("smurfit.ini", "WF Pet", "petslot", "1")
on the page before, i post some other stuff for the bot.
since i now take a closer look to the bot source, i had some question:
for what do you scan all players around you ?
seams no use for it.
then i see u scan every seconds char data, npc list.
npc list is need only if start attack mob, then i would get only hp on mob id.
char data also, no need to scan all infos every second.
on battle scan hp/mp only, after battle refresh exp and so on.
bot will be much faster as i now see, i recoded that.
so the anti ks function...as i say some months ago has a bug.
mob hp is shown right in label wen selected a target, but get then lost so on ks check is most 0/0 hp.
since u scan to much for npc list.
use a msgbox before ks check to see what i mean.
better use mob id to scan before and in battle, then it work fine.
edit:
to the anti ks:
look in BuildNPCArray(), let u show the array.
u see the mob hp is only shown if mob is selected, other then its empty!
so the case can happend, u target mob...hp/mxhp is 0/0 since function (BuildNPCArray) run while mob was not target first.
so anti ks says: all ok, attack
then function select target, hp/maxhp is different since mob is allready attacked...and u do ks.
i did now:
1.read user defined moblist to an array (e.g. $Moblist with ID and Name)
best on start of bot or wen user change moblist to hunt.
2.read all surounded mobs from X...to another array (e.g $FoundMobs)
use _ArraySearch to find ID or Name from mobX in our user $Moblist
if found, we have a mob user want to kill:
Redim ($FoundMobs+1)
selectTarget (to get hp/maxhp)
then read out all infos like hp,position and so on...to $FoundMobsX
last use _ArraySort for distance to player...so mob next to player will attacked first
later u have a small array ($FoundMobs), with only mobs user real like to kill + the right hp/maxhp
now targeting goes faster and anti ks works.
hope u understand my bad english.