essa action é de banana tree com chance de naum pegar nada,de pegar 1 banana,de sair um macaco e de sair um gorila da banana tree
100%by eu
a action(cria um arquivo .lua na pasta scripts essa pasta tah na pasta action, então coloca o nome do aquivo .lua pa banana e adiciona isso nele):
function onUse(cid, item, frompos, item2, topos)if item2.itemid == 2725 thenrand = math.random(1,20)if rand == 15 thendoPlayerAddItem(cid,2676,1)elseif rand == 1 thendoPlayerSendTextMessage(cid,22,"não tem banana.")elseif rand == 3 thendoPlayerSendTextMessage(cid,22,"um macaco saiu da bananeira e está muito irritado por você roubar suas bananas.")doSummonCreature("Sibang",topos)elseif rand == 15 thendoPlayerSendTextMessage(cid,1,"você conseguiu tirar um cacho de banana inteiro")doPlayerAddItem(cid,2676,15)elseif rand == 20 thendoPlayerSendTextMessage(cid,1,"corra!! saiu um gorila da pequena bananeira")doSummonCreature("Kongra",topos) end else return 0 end return 1 end
e a tag(coloca isso no documento actions q tah na pasta actions):
<action itemid="2385" script="banana.lua" allowfaruse="0" blockwalls="1" />
aew tive vendo um erro na minha action pois tava saindo muito macaco e pouca banana aew jah consertei a action ali em cima