douglasscherner
Member
- Joined
- Aug 15, 2014
- Messages
- 143
- Reaction score
- 24
Hello guys. I want to edit my item name after they receive in item shop.
I have a globalevent calling shop.lua that bring the item to player.
How I do to edit this item name?
Dont work ;/
Other ex:
Why this way dont work?
I have a globalevent calling shop.lua that bring the item to player.
Code:
local new_item = doCreateItemEx(itemtogive_id, itemtogive_count)
received_item = doPlayerAddItemEx(cid, new_item)
if received_item == RETURNVALUE_NOERROR then
How I do to edit this item name?
Code:
item:setAttribute(ITEM_ATTRIBUTE_NAME, "item test name")
Other ex:
Lua:
local item = doCreateItemEx(2160, 1)
doItemSetAttribute(item, ITEM_ATTRIBUTE_NAME, 'test')
item:setDescription("aa")
doPlayerAddItemEx(player, item)
Why this way dont work?
Last edited: