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

10 monesters the give pc level quest


suliman

Question

hi guys

I was playing in Arabian server I saw a very nice idea I want any one to give me the quest

the quest doing like if I killed 10 monesters(any monester) then give pc exp I thoute the quest is like this

but it doesn't work please help me guys^^

 

quest exp begin
    state start begin
        when kill or party_kill with not npc.is_pc() begin
            local up = pc.get_exp()
            local lvl = math.floor(up / 10)
                pc.give_exp2(lvl)
        end
    end
end
 
 
Link to comment
Share on other sites

  • Answers 5
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

5 answers to this question

Recommended Posts

  • 0
  • Premium

1. Set all monsters' exp column value to 0 in the database.

2. 

quest levelup begin
	state start begin
		when kill with not npc.is_pc() begin
			local kills_to_levelup = 10;
			pc.give_exp2(math.ceil(pc.get_next_exp() / kills_to_levelup));
		end -- when
	end -- state
end -- quest

 

 

"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

  • 0

hi mr syreldar
iam also studying in Malaysia program and designing games
iam now doing a new mt2 server I will open it as soon as I can
if you could help me please contact me in whatsapp

my phone number is:+601128232420

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
  • Recently Browsing   0 members

    • No registered users viewing this page.


  • Activity

    1. 0

      erorrs after update granny to 2.9

    2. 0

      Navicat Premium 16.1.1 x64

    3. 5

      problem Dargon Soul Changre Attribute

    4. 5

      problem Dargon Soul Changre Attribute

    5. 41

      Global Chat

    6. 5

      problem Dargon Soul Changre Attribute

    7. 2

      Startup Loading Window Library

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.