creditos: Gecko
se vc quer ser jardineiro
+ axa vergonhoso viver uma vida assim (sem ofensas xD)
pode viver no tibia e kem sabe fazer akele concurso de plantas no seu quintal
ai vai o code
garden.xml
function onUse(cid, item, frompos, item2, topos)fishingskill = getPlayerSkill(cid,6)
formula = fishingskill /200+0.85* math.random()
if formula > 0.70 then
doSendMagicEffect(topos,1)
doPlayerAddSkillTry(cid,6,1)
if item.itemid == 5157 then
doPlayerAddItem(cid, 2675, 1)
elseif item.itemid == 4181 then
doPlayerAddItem(cid, 2789, 1)
elseif item.itemid == 2748 then
doPlayerAddItem(cid, 2744, 1)
elseif item.itemid == 2750 then
doPlayerAddItem(cid, 2746, 1)
elseif item.itemid == 2748 then
doPlayerAddItem(cid, 2754, 1)
elseif item.itemid == 4153 then
doPlayerAddItem(cid, 2753, 1)
elseif item.itemid == 3985 then
doPlayerAddItem(cid, 2747, 1)
elseif item.itemid == 2764 then
doPlayerAddItem(cid, 2754, 1)
elseif item.itemid == 2766 then
doPlayerAddItem(cid, 2745, 1)
elseif item.itemid == 2781 then
doPlayerAddItem(cid, 2690, 1)
elseif item.itemid == 4017 then
doPlayerAddItem(cid, 2681, 1)
else
return 0
end
return 1
else
doSendMagicEffect(topos,2)
return 0
end
end
e em actions.xml
-- Gardening<action itemid="5157" script="garden.lua" /> -- Mango
<action itemid="4181" script="garden.lua" /> -- Mushroom tree
<action itemid="2763" script="garden.lua" /> -- Rose Bush
<action itemid="2750" script="garden.lua" /> -- Yellow Royal
<action itemid="2748" script="garden.lua" /> -- Love Flower
<action itemid="4153" script="garden.lua" /> -- Small Sunflower
<action itemid="3985" script="garden.lua" /> -- Plant
<action itemid="2764" script="garden.lua" /> -- Rose Bush
<action itemid="2766" script="garden.lua" /> -- Rose Bush
<action itemid="2781" script="garden.lua" /> -- Agave
<action itemid="4017" script="garden.lua" /> -- Fruit
olha o exemplo
comentem
flws