+ uma scrypt do [retirado pra galera curti by Noeldoido
Feito por:Noeldoido
Funçao: Eh um documento que quando voce da use , voce tera sorte ou azar exemplo eu puis random em 15 coisas que podem acontecer com voce...voce pode perder ou ganhar 10k de mana voce poder summonar 1 demon ou ganhar uma MPA , vamos ver se voce tem sorte um naum ?
Motivo:Num sei , so pra diversaum msm
Crie um arquivo lua: sorte.lua
Level necessario:100
Escreva:
-- Documento , Voce tem sorte ou nao by Noeldoido --function onUse(cid, item, fompos, item2, topos)
fe = 400
random = math.random(1,15)
if getPlayerAccess(cid) >= 0 then
if random == 1 then
doSummonCreature("Fire Elemental", topos)
end
if random == 2 then
doPlayerAddMana(cid,10000)
end
if random == 3 then
doPlayerAddHealth(cid,10000)
end
if random == 4 then
doPlayerSay(cid,"I AM A NOOB",2)
end
if random == 5 then
doPlayerRemoveItem(cid,2772,1)
end
if random == 6 then
doCreateItem(3304,1,topos)
setPlayerStorageValue(cid,1234,1)
end
if random == 7 then
doPlayerRemoveMoney(cid,10000)
end
if random == 8 then
doSummonCreature("Demon",topos)
end
if random == 9 then
doSummonCreature("Orshabaal",topos)
end
if random == 10 then
doSendMagicEffect(topos,12)
doPlayerSendTextMessage(cid,1,"Nothing happen")
end
if random == 11 then
doPlayerSetVocation(cid,0)
end
if random == 12 then
doPlayerFeed(cid,fe)
end
if random == 13 then
doSendAnimatedText(frompos,hehe,180)
end
if random == 14 then
doPlayerAddMana(cid,-10000)
end
if random == 15 then
doPlayerAddHealth(cid,-10000)
end
setPlayerStorageValue(cid,1234,1)
else
if getPlayerLevel(cid) >= 100 then
doPlayerSendCancel(cid,"Voce nao tem level para usar este item")
end
return 0
end
end
Em actions .xml:
<action itemid="2772" script="sorte.lua" />
Explicando: Voce podera mudar o level que precisara para usar o item , o que ira acontecer , mas a unica coisa que naum mude.
Flw aeww curtem a action e qualquer coisa postem ae!
~Moxica~