Oi gente ja vo avisano q essa action n e minha ok? n fui eu fiz, so modifikei mas la vai:
nessa action, quandu vc der use na vara i clik na agua, vc podera ganha GFB, FF rune, FS, etc...
1°, crie um arkivo fish lava.lua i coloke nele:
function onUse(cid, item, frompos, item2, topos)-- itemid means that is a creature
if item2.itemid == 598 then
skill_level = getPlayerSkill(cid,6)
random_number = math.random(1,(100+skill_level/10))
doSendMagicEffect(topos,6)
rand = math.random(1000)
if rand >= 51 and rand <= 100 then
doPlayerAddItem(cid,2392,1)
doSendMagicEffect(topos,15)
elseif rand >= 101 and rand <= 150 then
doPlayerAddItem(cid,2432,1)
doSendMagicEffect(topos,15)
elseif rand >= 151 and rand <= 250 then
doPlayerAddItem(cid,2304,2)
doSendMagicEffect(topos,15)
elseif rand >= 251 and rand <= 350 then
doPlayerAddItem(cid,2305,2)
doSendMagicEffect(topos,15)
elseif rand >= 351 and rand <= 450 then
doPlayerAddItem(cid,2301,3)
doSendMagicEffect(topos,15)
elseif rand >= 451 and rand <= 550 then
doPlayerAddItem(cid,2308,1)
doSendMagicEffect(topos,15)
end
doPlayerAddSkillTry(cid,6,1)
elseif item2.itemid == 1509 then
skill_level = getPlayerSkill(cid,6)
random_number = math.random(1,(100+skill_level/10))
doSendMagicEffect(topos,6)
rand = math.random(1000)
if rand >= 51 and rand <= 100 then
doPlayerAddItem(cid,2392,1)
doSendMagicEffect(topos,15)
elseif rand >= 101 and rand <= 150 then
doPlayerAddItem(cid,2432,1)
doSendMagicEffect(topos,15)
elseif rand >= 151 and rand <= 250 then
doPlayerAddItem(cid,2304,2)
doSendMagicEffect(topos,15)
elseif rand >= 251 and rand <= 350 then
doPlayerAddItem(cid,2305,2)
doSendMagicEffect(topos,15)
elseif rand >= 351 and rand <= 450 then
doPlayerAddItem(cid,2301,3)
doSendMagicEffect(topos,15)
elseif rand >= 451 and rand <= 550 then
doPlayerAddItem(cid,2308,1)
doSendMagicEffect(topos,15)
end
doPlayerAddSkillTry(cid,6,1)
elseif item2.itemid == 599 then
skill_level = getPlayerSkill(cid,6)
random_number = math.random(1,(100+skill_level/10))
doSendMagicEffect(topos,6)
rand = math.random(1000)
if rand >= 51 and rand <= 100 then
doPlayerAddItem(cid,2392,1)
doSendMagicEffect(topos,15)
elseif rand >= 101 and rand <= 150 then
doPlayerAddItem(cid,2432,1)
doSendMagicEffect(topos,15)
elseif rand >= 151 and rand <= 250 then
doPlayerAddItem(cid,2304,2)
doSendMagicEffect(topos,15)
elseif rand >= 251 and rand <= 350 then
doPlayerAddItem(cid,2305,2)
doSendMagicEffect(topos,15)
elseif rand >= 351 and rand <= 450 then
doPlayerAddItem(cid,2301,3)
doSendMagicEffect(topos,15)
elseif rand >= 451 and rand <= 550 then
doPlayerAddItem(cid,2308,1)
doSendMagicEffect(topos,15)
end
doPlayerAddSkillTry(cid,6,1)
elseif item2.itemid == 600 then
skill_level = getPlayerSkill(cid,6)
random_number = math.random(1,(100+skill_level/10))
doSendMagicEffect(topos,6)
rand = math.random(1000)
if rand >= 51 and rand <= 100 then
doPlayerAddItem(cid,2392,1)
doSendMagicEffect(topos,15)
elseif rand >= 101 and rand <= 150 then
doPlayerAddItem(cid,2432,1)
doSendMagicEffect(topos,15)
elseif rand >= 151 and rand <= 250 then
doPlayerAddItem(cid,2304,2)
doSendMagicEffect(topos,15)
elseif rand >= 251 and rand <= 350 then
doPlayerAddItem(cid,2305,2)
doSendMagicEffect(topos,15)
elseif rand >= 351 and rand <= 450 then
doPlayerAddItem(cid,2301,3)
doSendMagicEffect(topos,15)
elseif rand >= 451 and rand <= 550 then
doPlayerAddItem(cid,2308,1)
doSendMagicEffect(topos,15)
end
doPlayerAddSkillTry(cid,6,1)
elseif item2.itemid == 601 then
skill_level = getPlayerSkill(cid,6)
random_number = math.random(1,(100+skill_level/10))
doSendMagicEffect(topos,6)
rand = math.random(1000)
if rand >= 51 and rand <= 100 then
doPlayerAddItem(cid,2392,1)
doSendMagicEffect(topos,15)
elseif rand >= 101 and rand <= 150 then
doPlayerAddItem(cid,2432,1)
doSendMagicEffect(topos,15)
elseif rand >= 151 and rand <= 250 then
doPlayerAddItem(cid,2304,2)
doSendMagicEffect(topos,15)
elseif rand >= 251 and rand <= 350 then
doPlayerAddItem(cid,2305,2)
doSendMagicEffect(topos,15)
elseif rand >= 351 and rand <= 450 then
doPlayerAddItem(cid,2301,3)
doSendMagicEffect(topos,15)
elseif rand >= 451 and rand <= 550 then
doPlayerAddItem(cid,2308,1)
doSendMagicEffect(topos,15)
end
doPlayerAddSkillTry(cid,6,1)
else
return 0
end
return 1
end
2°, no actions.xml coloca isso:
--CODE FISH NA LAVA MODIFICADO By MARCUSROMANELLI<action itemid="2580" script="fish lava.lua" allowfaruse="1" />
e uma action de 7.4 simples + legal! [ se quiserem adptem para 7,5]
espero q tenham gostado
Duvidas? poste aki