-
Littlejacky
- Posts: 37
- Joined: Mon Apr 28, 2014 2:41 pm
#41
Post
by Littlejacky » Thu May 08, 2014 1:35 pm
rock5 wrote:The number in the brackets is the id or name of the item you wish to count, in this case empty slots which have an id of 0. Try
Code: Select all
if inventory:itemTotalCount(0) >= 59 then
>= mean "more than or equals to". You don't want to use "equals to 59" because what happens if between checks it jumps to 60 and stays at 60?
I tried this and set it to;
function bagcheck()
if inventory:itemTotalCount(0) >= 59 then
sendMacro("LeaveParty();");
waitForLoadingScreen();
yrest(3000)
player:update();
changeProfileOption("LOOT", false)
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
end
but by doing this it didn't leave party, and even at 60/60 it didn't leave the party, it just did the instance over and over again w/o selling.
-
lisa
- Posts: 8332
- Joined: Tue Nov 09, 2010 11:46 pm
- Location: Australia
#42
Post
by lisa » Thu May 08, 2014 6:13 pm
inventory:itemTotalCount(0) is the number of empty slots so doing >= 59 means you have 59 or more empty slots, which is deffinately not what you want.
Code: Select all
if 2 >= inventory:itemTotalCount(0) then
if you have 2 or less empty slots, so 58/60 59/60 60/60
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#43
Post
by rock5 » Thu May 08, 2014 8:05 pm
- 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.
- How to: copy and paste in micromacro
________________________
Quote:
- “They say hard work never hurt anybody, but I figure, why take the chance.”
-
Littlejacky
- Posts: 37
- Joined: Mon Apr 28, 2014 2:41 pm
#44
Post
by Littlejacky » Sun May 11, 2014 6:28 am
I tried and changed so much, and I can't get it to work /:
I need to change the numbers in;
function bagcheck()
if inventory:itemTotalCount(0) == 0 then
sendMacro("LeaveParty();");
waitForLoadingScreen();
yrest(3000)
player:update();
changeProfileOption("LOOT", false)
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
end
or here
if inventory:itemTotalCount(0) == 0 then -- make sure to get pet xtras
player:merchant("Pancer");
yrest(100);
end
Or both places?
-
Littlejacky
- Posts: 37
- Joined: Mon Apr 28, 2014 2:41 pm
#45
Post
by Littlejacky » Wed May 14, 2014 6:51 am
And after some tries the bot now leave party at 2 >= , but when it comes and shall sell items at Pancer the bot shut down the waypoint/script.. What to do now? /:
-
lisa
- Posts: 8332
- Joined: Tue Nov 09, 2010 11:46 pm
- Location: Australia
#46
Post
by lisa » Wed May 14, 2014 7:15 am
Littlejacky wrote:sell items at Pancer the bot shut down the waypoint/script..
What does that mean exactly?
Does MM error and print an error message?
Does the game crash?
Does MM just sit there doing nothing forever?
I need more information if I am to help you.
-
Littlejacky
- Posts: 37
- Joined: Mon Apr 28, 2014 2:41 pm
#47
Post
by Littlejacky » Wed May 14, 2014 8:55 am
Now it's dosn't leave party at 2 >= anymore...
What I have changed is
function bagcheck()
if 2 >= inventory:itemTotalCount(0) then
sendMacro("LeaveParty();");
waitForLoadingScreen();
yrest(3000)
player:update();
changeProfileOption("LOOT", false)
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
and
</waypoint>
<!-- # 9 --><waypoint x="-15764" z="11358" type="TRAVEL" > </waypoint>
<!-- # 10 --><waypoint x="-15967" z="11304" type="TRAVEL"> </waypoint>
<!-- # 11 --><waypoint x="-16078" z="11312" type="TRAVEL"> </waypoint>
<!-- # 12 --><waypoint x="-16249" z="11327" type="TRAVEL"> </waypoint>
<!-- # 13 --><waypoint x="-16450" z="11350" type="TRAVEL"> </waypoint>
<!-- # 14 --><waypoint x="-16607" z="11365" type="TRAVEL"> </waypoint>
<!-- # 15 --><waypoint x="-16618" z="11352" type="TRAVEL">
changeProfileOption("HARVEST_DISTANCE", 200);
yrest(100);
if 2 >= inventory:itemTotalCount(0) then
player:merchant("Pancer");
yrest(100);
I don't understand why this isn't working..
-
lisa
- Posts: 8332
- Joined: Tue Nov 09, 2010 11:46 pm
- Location: Australia
#48
Post
by lisa » Wed May 14, 2014 6:20 pm
lisa wrote: if you mess up and it no longer works then just redownload the one I posted and try again

I also have melee version posted that has been changed to loot, it's on my ks strategies topic, you could take a look at that 1.
To give you an idea of what I am trying to say think of it this way.
My car doesn't work, can you fix it for me?
There could be a million things wrong with your car, I need more information to fix it for you.
It has a rattle.
Does it rattle all the time or just sometimes?
Does it sound like a loud rattle or a quiet rattle?
Does the rattle sound like it is coming from inside the car or outside the car?
most of the time.
quiet rattle
inside the car
Check your console for your girlfriends big ugly earrings that she probably left in there.
yep that was it..
Who is online
Users browsing this forum: No registered users and 1 guest