waqmaz
Member
- Joined
- Jun 17, 2015
- Messages
- 203
- Reaction score
- 11
Hello. Can someone explain, why it doesn't work?
I've added uid to those items in RME Map Editor.
The function prints only 4767 when I click on the first item. When I click second item,it does nothing.
TFS 0.3.6.
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 10351 and item.uid == 4767 then
print(item.uid)
elseif item.itemid == 10351 and item.uid == 4768 then
print(item.uid)
end
return true
end
I've added uid to those items in RME Map Editor.
The function prints only 4767 when I click on the first item. When I click second item,it does nothing.
TFS 0.3.6.