Jump to content

Decrease Player's Level Quest


Go to solution Solved by M.Sorin,

Recommended Posts

Hello everyone. 

I'd like to know how to decrease player's level with a quest. 

I have tried something like "pc.give_exp2(-9999999999)" but it didn't work 

Can someone help me please? 

 

(I had another idea to use "command" function but it works only for GM. If it had worked with players too but only via quest that would've be awesome for my problem)

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

I crate this for you

	quest anything begin
    state start begin
        when 20092.chat."hello" begin -- if you need it login "when login with pc.is_gm ( ) begin"
            say(" hello every body ")
            say(" you want to level up:) ")
                local  snow = select("yes", "no")
                    if snow == 1 then
                        local a = pc.get_level()
                        local b = a - 1
                        say(" hello its mee ")
                        pc.set_level(b)
                    elseif snow == 2 then
                        say(" we are soooorry ")
            end
        end
    end
end
	

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



  • Similar Content

  • Activity

    1. 24

      Experimental Renderer

    2. 11

      Multi Language System

    3. 0

      [FREE DESIGN] Interface + Logo + Discord Banner and Avatar

    4. 4

      Feeding game source to LLM

    5. 0

      Quest 6/7 Problem

    6. 5

      Effect weapons

    7. 0

      [C++] Fix Core Downer Using Negative Number in GM Codes

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.