Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

Quest pvp for EXP


Kirazu

Question

3 answers to this question

Recommended Posts

  • 0
quest give_lv begin
	state start begin
		when ID.use begin
			if false == pc.can_warp() then	say("Erro Code 1")	return	end
			if pc.is_busy0() == true then say("Erro Code 2") return	end
			if pc.level >= 99 then say("Erro Code 3") return	end

			say_title("Give Lv")
			say("")
			local menu = select("Yes", "No")
			if menu == 1 then
				pc.remove_item("ID", 1)
				pc.set_level0(99) 
			else
				return
			end
		end
	end
end

I use it like this, you can adapt and pre-define levels etc etc. (Necessary to have function pc.set_level0, if not, just add the normal pc.give_exp)

Link to post
  • 0
15 minutes ago, Klaus said:

quest give_lv begin state start begin when ID.use begin if false == pc.can_warp() then say("Erro Code 1") return end if pc.is_busy0() == true then say("Erro Code 2") return end if pc.level >= 99 then say("Erro Code 3") return end say_title("Give Lv") say("") local menu = select("Yes", "No") if menu == 1 then pc.remove_item("ID", 1) pc.set_level0(99) else return end end end end

quest give_lv begin
	state start begin
		when ID.use begin
			if false == pc.can_warp() then	say("Erro Code 1")	return	end
			if pc.is_busy0() == true then say("Erro Code 2") return	end
			if pc.level >= 99 then say("Erro Code 3") return	end

			say_title("Give Lv")
			say("")
			local menu = select("Yes", "No")
			if menu == 1 then
				pc.remove_item("ID", 1)
				pc.set_level0(99) 
			else
				return
			end
		end
	end
end

I use it like this, you can adapt and pre-define levels etc etc. (Necessary to have function pc.set_level0, if not, just add the normal pc.give_exp)

I want kill people and earn exp

Link to post
  • 0
12 minutes ago, Kirazu said:

Quero matar pessoas e ganhar exp

quest exemple begin
	state start begin
		when kill with npc.is_pc() begin
			pc.give_exp(9999)
		end -- w
	end -- s
end -- q 

Simple, uh ... Just modify / add to the checks you want!

Link to post

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


×
×
  • 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.