Jump to content

10 monesters the give pc level quest


Recommended Posts

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

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 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

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.