PHP Code:
-- Rentierjunges
when 53002.use begin
if pet.is_summon() then
pet.unsummon()
chat("Dein Haustier verabschiedet sich nun von dir!")
affect.remove_collect(apply.ATT_GRADE_BONUS, 20)
affect.remove_collect(apply.DEF_GRADE_BONUS, 20)
affect.remove_collect(apply.MAX_HP, 2000)
else
local old_level = horse.get_level()
local old_name = horse.get_name()
horse.set_level(24)
horse.set_name(haustiere.get_pet_name())
pet.summon()
horse.set_level(old_level)
horse.set_name(old_name)
affect.add_collect(apply.ATT_GRADE_BONUS, 20, 60*60*8)
affect.add_collect(apply.DEF_GRADE_BONUS, 20, 60*60*8)
affect.add_collect(apply.MAX_HP, 2000, 60*60*8)
end
end