Looks like I'm the only active user here
I don't know what topic to write in, so I'll write here. I have a problem with userfunction_craftitem.lua (from here:
viewtopic.php?t=2407)
When loading the bot, I get the following message:
Code: Select all
Installing userfunctions. 2022-11-30 10:07:45 - scripts\rom-bot\bot.lua:68: ...scripts/rom-bot/userfunctions/userfunction_craftitem.lua:6: attempt to perform arithmetic on field 'skillsTableBase' (a nil value)
In userfunction_craftitem.lua line 6 looks like this:
Code: Select all
local craftingCountPtr = addresses.skillsTableBase + 0x50
I don't know much about this, but I looked at the address.lua file that the bot is currently using and changed the value in userfunction_craftitem.lua line 6 to this:
Code: Select all
local craftingCountPtr = addresses.skillbook.base + 0x50
I no longer get errors when loading with userfunction_craftitem.lua, but if I use this function in the waypoint file nothing happens, the character just follows on
Code: Select all
<waypoint x="-3611" z="-8971" y="230">
craftItem(540648, 5)
</waypoint>
I tried to set values both by name and by ID. The character is near the crafting tools.
I don't understand what else I can do
