Jump to content
×
×
  • Create New...
  • 0

quest bonus problem


darkfun3

Question

i have a strange problem with my quest that give permanent bonuses. When someone let's say finishes a quest that gives 2k hp and 10 demi human when he relogs the hp will be gone. do you know why this happens i use 2089m. And also some players hp bugs and get;s decreased.

 

Thanks in advance

Link to comment
Share on other sites

  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

3 answers to this question

Recommended Posts

  • 0
quest player_kill1 begin   
    state start begin   
        when login with pc.level >= 100 begin   
            set_state(player_kill1)   
        end   
    end   

    state player_kill1 begin   
        when letter begin   
            send_letter("Mission 1")   
        end   

        when button or info begin   
            say("Áðïóôïëç Mission 1,")  
            say_reward("500  áôïìá = 10% Éìéáíèñùðï , 1.000 HP")  
            say_reward("1200  áôïìá = 10% Éìéáíèñùðï , 2.000 HP") 
            pc.setqf("level", 1)  
        end  
          when kill with npc.is_pc() begin  
            if get_time() < pc.getqf("kill_time") then   
                chat("Die 1 Minute ist derzeit noch nicht vergangen")  
                chat("Du erhielst keinen Punkt")  
                return  
            end      
            chat("Du hast einen Punkt erhalten Gratuliere du hast derzeit ")  
            chat("Einen weiteren Punkt erhaelst du in erst 1 Minuten")  
            chat("Derzeit besitz du "..pc.getqf("kill_punkte").." Punkt(e)")  
            pc.setqf("kill_punkte", pc.getqf("kill_punkte")+1)  
            pc.setqf("kill_time", get_time() + 15*1)     
            if pc.getqf("kill_punkte") == 500 then  
                affect.add_collect(apply.ATTBONUS_HUMAN,10,60*60*24*365*60)  
                affect.add_collect(apply.MAX_HP,1000,60*60*24*365*60)  
                say("Du hast soeben 500 Leute getoetet")  
                say("Dafuer kriegst du 10% Halbmenschen")  
                say("Und 2000 TP")  
            elseif pc.getqf("kill_punkte") == 1200 then   
                affect.add_collect(apply.ATTBONUS_HUMAN,10,60*60*24*365*60)  
                affect.add_collect(apply.MAX_HP,2000,60*60*24*365*60)  
                say("Du hast soeben 1200 Leute getoetet")  
                say("Dafuer kriegst du 20% Halbmenschen")  
                say("Und 3000 TP")  
                set_state(player_kill_end)  
            end  
        end  
    end 
    state player_kill_end begin 
    end 
end  
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.