Jump to content

Question regarding "When enter"


Go to solution Solved by Syreldar,

Recommended Posts

So  a friend of mine said that the horse missions (horse_levelup.quest) are bugged in the official gf quest too.

    state training2 begin
        when letter begin
            q.set_counter(gameforge.horse_levelup._training_2_count, 5-pc.getqf("kill_count"))
        end
        when 494.kill begin
            pc.setqf("kill_count", pc.getqf("kill_count")+1)
            q.set_counter(gameforge.horse_levelup._training_2_count, 5-pc.getqf("kill_count"))
        end
        when enter begin
            pc.setqf("kill_count", 0)
        end
        when leave begin
            q.done()
        end
        when letter begin
            setskin(NOWINDOW)
            makequestbutton(gameforge.horse_levelup._30_makequestbutton)
            q.set_title(gameforge.horse_levelup._30_makequestbutton)
            q.start()
        end
        when button begin
            say_title(gameforge.horse_levelup._30_makequestbutton)
            say(gameforge.horse_levelup._40_say)
        end
        when info begin
            say_title(gameforge.horse_levelup._30_makequestbutton)
            say(gameforge.horse_levelup._50_say)
        end
        when 494.kill with pc.getqf("kill_count") >= 5 begin
            setstate(report)
        end
        when unmount begin
            setstate(failure)
        end
    end

The "when enter" is zeros the "kill_count" so when a people log out - log in (for example go to other channel to look for an unkilled mob) it's over.

In the official server this bug does not exists.  So "when enter" is bugged in the leaked 40k source? It acts like When login.

 

I know removing the when enter solves the problem, but then why is it there in the official quest? What should it do in normal?

Edited by K3zX
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Premium
  • Solution

 

enter triggers upon entering that state. The only thing it currently does is setting the count to 0 upon entering the state.

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

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.