[DiscordArchive] intid?
[DiscordArchive] intid?
Archived author: Foe • Posted: 2023-01-05T21:45:12.116000+00:00
Original source
Show me the OnHello function you have
Archived author: Honey • Posted: 2023-01-05T21:45:27.006000+00:00
Original source
The issue is with OnSelect, but i can still do that
Archived author: Honey • Posted: 2023-01-05T21:46:20.949000+00:00
Original source
```
2023-01-05 21:27:54 ERROR lua_scripts/Acore_ExchangeNpc/ExchangeNpc.lua:255: attempt to perform arithmetic on field '?' (a nil value)
Stack Traceback
===============
(1) metamethod C function '__mul'
(2) Lua upvalue 'eI_BuildExchangeString' at file 'lua_scripts/Acore_ExchangeNpc/ExchangeNpc.lua:255'
Local variables:
id = number: 1
amount = number: 1
(*temporary) = string: "Take "
(*temporary) = nil
(*temporary) = nil
(*temporary) = string: "on"
(*temporary) = string: "on"
(*temporary) = string: "attempt to perform arithmetic on field '?' (a nil value)"
(3) Lua function 'eI' at file 'lua_scripts/Acore_ExchangeNpc/ExchangeNpc.lua:283' (best guess)
Local variables:
event = number: 2
player = Player: 0x14bec10d4ec0
object = Creature: 0x14c38bc83000
sender = number: 0
intid = number: 0
code = nil
menu_id = nil
GiveAmount = nil
Amount = nil
ExchangeId = nil
ExchangeId = number: 1
(*temporary) = C function: 0x14c38bc88b50
(*temporary) = Player: 0x14bec10d4ec0
(*temporary) = number: 0
```
Full disclosure
Archived author: Honey • Posted: 2023-01-05T21:46:49.474000+00:00
Original source
<https://github.com/55Honey/Acore_ExchangeNpc/blob/3447e0dcb593ce6988dc91618486ad1529db4b15/ExchangeNpc.lua#L283>
Archived author: Foe • Posted: 2023-01-05T21:47:40.344000+00:00
Original source
player:GossipMenuAddItem(OPTION_ICON_CHAT, eI_BuildExchangeString( n, 1) , Config.ItemNpcEntry, n-1)
Archived author: Foe • Posted: 2023-01-05T21:47:43.229000+00:00
Original source
n-1
Archived author: Honey • Posted: 2023-01-05T21:47:47.444000+00:00
Original source
<https://github.com/55Honey/Acore_ExchangeNpc/blob/3447e0dcb593ce6988dc91618486ad1529db4b15/ExchangeNpc.lua#L82> all items are commented, so the array is {}
Archived author: Foe • Posted: 2023-01-05T21:47:52.631000+00:00
Original source
first option would be 0
Archived author: Kitzunu • Posted: 2023-01-05T21:48:20.144000+00:00
Original source
https://github.com/55Honey/Acore_Exchang...c.lua#L264
Archived author: Kitzunu • Posted: 2023-01-05T21:48:28.067000+00:00
Original source
I guess that is what Foe found