suliman 0 Posted June 24, 2017 Share Posted June 24, 2017 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 More sharing options...
suliman 0 Posted June 24, 2017 Author Share Posted June 24, 2017 For example guys if the player in level 29 he want to reach level30 1level=100%exp so iwant this 100% / 10 monsters thats mean every one monster =10%exp so how to do it and thanks Link to comment Share on other sites More sharing options...
Den 46 Posted June 24, 2017 Share Posted June 24, 2017 Maybe try to get next exp instead of current exp? local up = pc.get_next_exp() Link to comment Share on other sites More sharing options...
suliman 0 Posted June 24, 2017 Author Share Posted June 24, 2017 no it doesn't work Link to comment Share on other sites More sharing options...
Premium Syreldar 1875 Posted June 25, 2017 Premium Share Posted June 25, 2017 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 More sharing options...
suliman 0 Posted June 25, 2017 Author Share Posted June 25, 2017 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now