aberos
New Member
- Joined
- Feb 26, 2014
- Messages
- 17
- Reaction score
- 0
Hello, I would like to know what you want is wrong with this code because it is not adding the attribute item
TFS 1.0
Code:
function onSay(cid, words, param)
local player = Player(cid)
local orig = player:getPosition()
orig:sendMagicEffect(CONST_ME_MAGIC_RED)
local ball = player:addItem(2181, 1)
doSetItemText(Item(ball), "Poke = Bulbasaur")
print(ball:getAttribute(ITEM_ATTRIBUTE_TEXT))
return false
end
TFS 1.0