Code:
quest ringe begin
state start begin
when 71135.use with pc.getqf("ringuse") == 1 begin
cmdchat("buff1")
affect.add_collect(apply.ATT_BONUS_TO_MONSTER,30,60*60*24*365*60)
affect.add_collect(apply.POINT_EXP_DOUBLE_BONUS,30,60*60*24*365*60)
affect.add_collect(apply.ITEM_DROP_BONUS,20,60*60*24*365*60)
pc.setqf("ringuse",1)
end
when 71135.use with pc.getqf("ringuse") == 0 begin
chat("Der Ring wirkt nun nicht mehr!")
affect.remove_collect(apply.ATT_BONUS_TO_MONSTER,30,60*60*24*365*60)
affect.remove_collect(apply.POINT_EXP_DOUBLE_BONUS,30,60*60*24*365*60)
affect.remove_collect(apply.ITEM_DROP_BONUS,20,60*60*24*365*60)
pc.setqf("ringuse",0)
end
when 71143.use with pc.getqf("ringuse") == 1 begin
cmdchat("buff3")
affect.add_collect(apply.ATT_BONUS_TO_MONSTER,30,60*60*24*365*60)
affect.add_collect(apply.ITEM_DROP_BONUS,30,60*60*24*365*60)
affect.add_collect(apply.GOLD_DOUBLE_BONUS,30,60*60*24*365*60)
pc.setqf("ringuse",1)
end
when 71143.use with pc.getqf("ringuse") == 0 begin
chat("Der Ring wirkt nun nicht mehr!")
affect.remove_collect(apply.ATT_BONUS_TO_MONSTER,30,60*60*24*365*60)
affect.remove_collect(apply.ITEM_DROP_BONUS,30,60*60*24*365*60)
affect.remove_collect(apply.GOLD_DOUBLE_BONUS,30,60*60*24*365*60)
pc.setqf("ringuse",0)
end
when 71145.use with pc.getqf("ringuse") == 1 begin
cmdchat("buff4")
affect.add_collect(apply.ATT_BONUS_TO_MONSTER,50,60*60*24*365*60)
affect.add_collect(apply.ITEM_DROP_BONUS,20,60*60*24*365*60)
affect.add_collect(apply.GOLD_DOUBLE_BONUS,20,60*60*24*365*60)
pc.setqf("ringuse",1)
end
when 71145.use with pc.getqf("ringuse") == 0 begin
chat("Der Ring wirkt nun nicht mehr!")
affect.remove_collect(apply.ATT_BONUS_TO_MONSTER,50,60*60*24*365*60)
affect.remove_collect(apply.ITEM_DROP_BONUS,20,60*60*24*365*60)
affect.remove_collect(apply.GOLD_DOUBLE_BONUS,20,60*60*24*365*60)
pc.setqf("ringuse",0)
end
when 71148.use with pc.getqf("ringuse") == 1 begin
cmdchat("buff5")
affect.add_collect(apply.ATT_BONUS_TO_MONSTER,30,60*60*24*365*60)
affect.add_collect(apply.POINT_EXP_DOUBLE_BONUS,50,60*60*24*365*60)
affect.add_collect(apply.ITEM_DROP_BONUS,20,60*60*24*365*60)
pc.setqf("ringuse",1)
end
when 71148.use with pc.getqf("ringuse") == 0 begin
chat("Der Ring wirkt nun nicht mehr!")
affect.remove_collect(apply.ATT_BONUS_TO_MONSTER,30,60*60*24*365*60)
affect.remove_collect(apply.POINT_EXP_DOUBLE_BONUS,50,60*60*24*365*60)
affect.remove_collect(apply.ITEM_DROP_BONUS,20,60*60*24*365*60)
pc.setqf("ringuse",0)
end
when 71149.use with pc.getqf("ringuse") == 1 begin
cmdchat("buff6")
affect.add_collect(apply.ATT_BONUS_TO_MONSTER,50,60*60*24*365*60)
affect.add_collect(apply.ITEM_DROP_BONUS,30,60*60*24*365*60)
affect.add_collect(apply.GOLD_DOUBLE_BONUS,30,60*60*24*365*60)
pc.setqf("ringuse",1)
end
when 71149.use with pc.getqf("ringuse") == 0 begin
chat("Der Ring wirkt nun nicht mehr!")
affect.remove_collect(apply.ATT_BONUS_TO_MONSTER,50,60*60*24*365*60)
affect.remove_collect(apply.ITEM_DROP_BONUS,30,60*60*24*365*60)
affect.remove_collect(apply.GOLD_DOUBLE_BONUS,30,60*60*24*365*60)
pc.setqf("ringuse",0)
end
end
end