irvanshihap Posted December 26, 2016 Author Share Posted December 26, 2016 This tutorial simple and easy.Server sideLook in modCombat, PlayerAttackNpc for:```' Calculate exp to give attacker```The line under it should be:```exp = Npc(npcNum).exp```below add :``` ' Check if npc level is bigger then 0 If NPC(NPCNum).Level > 0 Then ' exp deduction If NPC(NPCNum).Level <= GetPlayerLevel(attacker) - 10 Then ' 10 levels lower, exp 0 Call PlayerMsg(attacker, "Musuhmu 10 level di bawahmu, kamu tidak akan mendapatkan exp.", BrightRed) ' IF you want you can delete this msg cuz its only informating player exp = 0 ElseIf NPC(NPCNum).Level <= GetPlayerLevel(attacker) - 5 Then ' half exp if enemy is 5 levels lower Call PlayerMsg(attacker, "Musuhmu 5 level di bawahmu, kamu mendapatkan setengah exp.", BrightRed) ' IF you want you can delete this msg cuz its only informating player exp = exp / 2 ElseIf NPC(NPCNum).Level >= GetPlayerLevel(attacker) + 10 ThenCall PlayerMsg(attacker, "Musuhmu 10 level di atasmu, kamu tidak akan mendapatkan exp.", BrightRed) ' IF you want you can delete this msg cuz its only informating player exp = 0 End If End If```This Tutorial credit Domino but i edited a bit Link to comment Share on other sites More sharing options...
sherwin Posted December 26, 2016 Share Posted December 26, 2016 The title is incorrect. The Exp is not based on level at allIt's like a Exp Modifier based on Player's level Link to comment Share on other sites More sharing options...
irvanshihap Posted December 26, 2016 Author Share Posted December 26, 2016 @'sherwin':> The title is incorrect. The Exp is not based on level at all> > It's like a Exp Modifier based on Player's levelsorry, so, how the title is right? based on player lvl? Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted December 26, 2016 Share Posted December 26, 2016 I would change the title to "Exp based on Player and Npc level difference" Link to comment Share on other sites More sharing options...
irvanshihap Posted December 26, 2016 Author Share Posted December 26, 2016 hoho ok, i'm edited, thanks for suggestion Link to comment Share on other sites More sharing options...
irvanshihap Posted December 26, 2016 Author Share Posted December 26, 2016 @'Mohenjo:> I would change the title to "Exp based on Player and Npc level difference"hoho ok, i'm edited, thanks for suggestion Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now