I'm sick now trying to understand why this isn't working :S!
Error:
It works in this way...
LUA:
local actionBase = 100
local aid = actionBase + getPlayerStorageValue(cid, calledCreature)
doItemSetAttribute(item.uid, "aid", aid)
Error:
LUA:
[21/02/2010 20:47:21] [Error - Action Interface]
[21/02/2010 20:47:21] data/actions/scripts/ploplo.lua:onUse
[21/02/2010 20:47:21] Description:
[21/02/2010 20:47:21] data/actions/scripts/ploplo.lua:63: attempt to perform arithmetic on a string value
[21/02/2010 20:47:21] stack traceback:
[21/02/2010 20:47:21] data/actions/scripts/ploplo.lua:63: in function <data/actions/scripts/ploplo.lua:22>
It works in this way...
LUA:
--(actionBase + getPlayerStor... = 251) So...
--If i use the code like this:
doItemSetAttribute(item.uid, "aid", 251)
--IT WORKS