gianflogao
Member
- Joined
- Jun 6, 2014
- Messages
- 134
- Solutions
- 2
- Reaction score
- 13
Lua:
if item.itemid == 3901 then -- Wooden chair
doTransformItem(item.uid,1652)
elseif item.itemid == 3902 then -- Sofa chair
doTransformItem(item.uid,1658)
elseif item.itemid == 3903 then -- Red cushioned chair
doTransformItem(item.uid,1666)
elseif item.itemid == 3904 then -- Green cushioned chair
doTransformItem(item.uid,1670)
return 0
end
return 1
end
How do you insert this function into this condition above?
Lua:
if getTilePzInfo(frompos) == 0 then
doPlayerSendCancel(cid,"Voce pode desembalar mobiliario apenas em uma area no-pvp.")
else