for slot = first, last do
item = inventory.BagSlot[slot]
item:update()
if item.Available and (item.Id == itemNameOrId or item.Name == itemNameOrId) then
if itemNameOrId == "<EMPTY>" or itemNameOrId == 0 then -- so you can count empty slots
totalCount = totalCount + 1
else
totalCount = totalCount + item.ItemCount;
end
end;
end;
for slot = first, last do
item = inventory.BagSlot[slot]
if (item) then
item:update()
if item.Available and (item.Id == itemNameOrId or item.Name == itemNameOrId) then
if itemNameOrId == "<EMPTY>" or itemNameOrId == 0 then -- so you can count empty slots
totalCount = totalCount + 1
else
totalCount = totalCount + item.ItemCount;
end
end;
end;
end;
then that should fix your problem (theoretically).
Nice it works! Thanks.
I got another problem now
At the begining of KS, the bot doesnt kill all the frogs and later, it will attack only when aggroed. As my character is lvl 80 (only for test), I dnt get the aggro often, so I kill only few mobs. I use thunderstorm as main skill (I also tried to profile settings used by Lisa)
Thank you
gmm...sounds like the TARGET_LVL_BELOW setting in your profile to me - i'm not at my botting machine, so can't tell you any more than that atm - check your porfile for an option like TARGET_LVL_BELOW and make sure it is set to something like 30
Umm it is set to 40...just to make sure i didnt miss anything: 80-40 = 40 ? So it should kill them...
And when I use my other KS script, it kills the mobs. Strange thing.
Is there a reason why you use swimhack outside the instance? Isn't it very dangerous to get caught? I know people see people who swimhack like if they where jumping very high... So when the traffic is high, people might take screenshots or videos? I might try to change that return waypoint a bit.
Umm it is set to 40...just to make sure i didnt miss anything: 80-40 = 40 ? So it should kill them...
And when I use my other KS script, it kills the mobs. Strange thing.
Umm I didnt modify the script, so it shouldnt be there...anyway I did a fast search and nothing is set to RUN. Profile seems alright also.
The new waypoint I made from pancer to KS (without fly) seems to work alright. Only thing left is to make the bot kill every mob in each room. Don't know why it doesn't.
If you rewrote the code from Pancer, obviously there must be a change to "RUN" or "TRAVEL" so that it doesn't attack mobs on the way back to KS. Maybe you accidentally deleted the code that changes it back to "NORMAL".
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
Doesn't work with default profile either. I still didn't find what the issue is... It's a strange thing because it's the only wp doing this. I think it might have something to do will the killzone, because other wp without the killzone work great..
rocking666 wrote:Doesn't work with default profile either. I still didn't find what the issue is... It's a strange thing because it's the only wp doing this. I think it might have something to do will the killzone, because other wp without the killzone work great..
Cool, you may have found your answer. I don't use the killzone function, not sure if it is relevant in the current version of the bot, so I can not help with that. I mainly have my WPs set to TRAVEL when I'm out of KS and NORMAL inside. I adjust my target ranges
This is what i use also with normal WP (without killzone). I think i'll forget about this script since I can't get it working Wanted to compare g/h of a script using killzone with another using normal WP.
This script seems to be a very nice work although it doesnt work for me