Inventory Check if Full

All resolved question will be found here. It is recommended that you browse / search through this section first and see if your question has been answered before

Moderators: Moderators, Documentation Writers

Message
Author
DanialFX
Noob
Noob
Posts: 10
Joined: 26 Dec 2019, 07:45
Noob?: Yes

Inventory Check if Full

#1 Post by DanialFX »

How to check if Inventory is full 100/100 instead of using weight to go back town?

User avatar
fadreus
The Kore Devil
The Kore Devil
Posts: 708
Joined: 17 Nov 2017, 23:32
Noob?: No
Location: Genting Highland, Malaysia
Contact:

Re: Inventory Check if Full

#2 Post by fadreus »

Welp, my idea is to check if there is any item with index 100.
If there is, then trigger and run macro.

Too lazy to think..

iRO Supporter.
Read before you ask is the wisest thing human can do.
Unless you're a cat.
Image

DanialFX
Noob
Noob
Posts: 10
Joined: 26 Dec 2019, 07:45
Noob?: Yes

Re: Inventory Check if Full

#3 Post by DanialFX »

Yes. Im currently using that kind of idea right now. But I try to maximize my bot profit as best as i could.

c4c1n6kr3m1
The Way Of Human
The Way Of Human
Posts: 150
Joined: 24 Mar 2012, 04:13
Noob?: Yes

Re: Inventory Check if Full

#4 Post by c4c1n6kr3m1 »

eval $::char->inventory->size

DanialFX
Noob
Noob
Posts: 10
Joined: 26 Dec 2019, 07:45
Noob?: Yes

Re: Inventory Check if Full

#5 Post by DanialFX »

c4c1n6kr3m1 wrote:eval $::char->inventory->size
It works now.

Where do i get this code? I need more this kind of code.

User avatar
fadreus
The Kore Devil
The Kore Devil
Posts: 708
Joined: 17 Nov 2017, 23:32
Noob?: No
Location: Genting Highland, Malaysia
Contact:

Re: Inventory Check if Full

#6 Post by fadreus »

DanialFX wrote:
c4c1n6kr3m1 wrote:eval $::char->inventory->size
It works now.

Where do i get this code? I need more this kind of code.
You can find more info from here
http://forums.openkore.com/viewtopic.php?f=33&t=16741

iRO Supporter.
Read before you ask is the wisest thing human can do.
Unless you're a cat.
Image

Locked