• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Question - Expression Eval. Question

Mikey02

Seasoned veteran member
Joined
Aug 7, 2019
RedCents
3,982¢
Does anyone know why this expression is giving a nil? If I hard code bank1, bank2 etc, the loop seems to work just fine.

1762144984409.png

1762144645688.png
 
i think you need to verify its a container in that slot before you actual do the compare

and i think aslo invslot tlo is old thing, so try this instead.

mq.TLO.Me.Inventory("bank1").Container()


and remember .Container() returns an int of how many slots is in a container, so make sure to check its not nil or 0
 
Please post code, not screenshots of code

mq.TLO.InvSlot('bank%d', bank_slot) does not format a string. You would need to use string.format or something else
 
Question - Expression Eval. Question

Users who are viewing this thread

Back
Top
Cart