ziggy46802
Active Member
- Joined
- Aug 19, 2012
- Messages
- 418
- Reaction score
- 27
LUA:
local grass = {4528, 4529, 4530, 4531, 4532, 4533, 4534, 4535, 4536, 4537, 4538, 4539, 4540, 4541}
function firstplant(cid, item)
doItemSetAttribute(doCreateItem(6219, cid)), "aid", 15000)
return true
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 13827 and getTileInfo(cid) == isInArray({grass}, 1) then
addEvent(firstplant, 1000,1000, cid)
return true
end
return true
end