Jump to content

Quest writing .kill


Recommended Posts

Hello i got a problem with easy quest.
I just want to write quest to drop item after kill mob but .kill doesnt work at all.

Spoiler

quest fabularne begin

    state start begin

       when login or levelup with pc.get_level() == 1 begin

            set_state(misja000)

       end

    end

 

    state misja000 begin

        when enter begin

            say_reward("Budzisz sie z glebokiego snu..")

            say("")

            say_title(pc.get_name()..":")

            say("Gdzie ja jestem? Co ja tu robie?")

            wait()

            say_title("???")

            say("")

            say("Obudziles sie? Nareszcie, czekalem tak dlugo..")

            say("O nic nie pytaj i tak na ten moment nie zrozumiesz")

            say("Byles w spiaczce przez dluzszy czas")

            say("I wygladasz jakby Cie okradli")

            say("")

            say("Wiec moze najpierw zastanowmy sie")

            say("co z toba poczac..")

            wait()

            say_title("???")

            say("")

            say("Najpierw musisz zdobyc jakas bron")

            say("Byc moze kiedy byles nieprzytomny")

            say("to Psy skradly Ci jakies rzeczy?")

            wait()

            set_state(misja001)

        end

    end

 

    state misja001 begin

        when letter begin

            send_letter("Skradzione rzeczy")

        end

        when button or info begin

            say_title("???")

            say("")

            say("Przeszukaj Dzikie Psy")

        end

        when 101.kill begin

            local s = number(1, 100)

            if s <= 100 then

                say("Noigit")

                wait()

                pc.give_item2(19)

                set_state(misja002)

            end

        end

    end

 

   

 

    state misja002 begin

       

    end

end

Quest is going forward until 101.kill then nothing happens after killing mob id 101

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.