Ares™
Utente Emerald
Chi può aiutarmi a correggere questo script? l'ho usato per dare una funziona alla pietra arcobaleno
say_title ( "Ricompensa" )
local ricompensa =select ("10.0000 HP","15% forte vs Mezziuomini","Attacco+300","Difesa+200","Resistenza Magia 10%","Resistenza Spada 10%","Resistenza Spadone 10%","Resistenza Pugnale 10%","Resistenza Freccia 10%")
if ricompensa == 1 then
affect.add_collect(apply.MAX_HP,10000,99999999999999)
pc.remove_item (50512)
elseif item == 2 then
affect.add_collect(apply.ATTBONUS_HUMAN,99999999999999)
pc.remove_item (50512)
elseif item == 3 then
affect.add_collect(apply.ATT_GRADE_BONUS,999999999999999)
pc.remove_item (50512)
elseif item == 4 then
affect.add_collect(apply.DEF_GRADE_BONUS,999999999999999)
pc.remove_item (50512)
elseif item == 5 then
affect.add_collect(apply.RESIST_MAGIC,10,999999999999999)
pc.remove_item (50512)
elseif item == 6 then
affect.add_collect(apply.RESIST_SWORD,10,999999999999999)
pc.remove_item (50512)
elseif item == 7 then
affect.add_collect(apply.RESIST_TWOHAND,10,9999999999999)
pc.remove_item (50512)
elseif item == 8 then
affect.add_collect(apply.RESIST_DAGGER,10,99999999999999)
pc.remove_item (50512)
elseif item == 9 then
affect.add_collect(apply.DODGE,10,99999999999999)
pc.remove_item (50512)
end
end
say_title ( "Ricompensa" )
local ricompensa =select ("10.0000 HP","15% forte vs Mezziuomini","Attacco+300","Difesa+200","Resistenza Magia 10%","Resistenza Spada 10%","Resistenza Spadone 10%","Resistenza Pugnale 10%","Resistenza Freccia 10%")
if ricompensa == 1 then
affect.add_collect(apply.MAX_HP,10000,99999999999999)
pc.remove_item (50512)
elseif item == 2 then
affect.add_collect(apply.ATTBONUS_HUMAN,99999999999999)
pc.remove_item (50512)
elseif item == 3 then
affect.add_collect(apply.ATT_GRADE_BONUS,999999999999999)
pc.remove_item (50512)
elseif item == 4 then
affect.add_collect(apply.DEF_GRADE_BONUS,999999999999999)
pc.remove_item (50512)
elseif item == 5 then
affect.add_collect(apply.RESIST_MAGIC,10,999999999999999)
pc.remove_item (50512)
elseif item == 6 then
affect.add_collect(apply.RESIST_SWORD,10,999999999999999)
pc.remove_item (50512)
elseif item == 7 then
affect.add_collect(apply.RESIST_TWOHAND,10,9999999999999)
pc.remove_item (50512)
elseif item == 8 then
affect.add_collect(apply.RESIST_DAGGER,10,99999999999999)
pc.remove_item (50512)
elseif item == 9 then
affect.add_collect(apply.DODGE,10,99999999999999)
pc.remove_item (50512)
end
end