• I

### Exp based on Player and Npc level difference

This tutorial simple and easy.

Server side

Look in modCombat, PlayerAttackNpc for:

``````' Calculate exp to give attacker
``````

The line under it should be:

``````exp = Npc(npcNum).exp
``````

``````                       ' 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 Then

Call 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``````
• S

### Exp based on Player and Npc level difference

The title is incorrect. The Exp is not based on level at all

It’s like a Exp Modifier based on Player’s level

• I

### Exp based on Player and Npc level difference

@‘sherwin’:

The title is incorrect. The Exp is not based on level at all

It’s like a Exp Modifier based on Player’s level

sorry, so, how the title is right? based on player lvl?

• ### Exp based on Player and Npc level difference

I would change the title to “Exp based on Player and Npc level difference”

Baannounik shall control all!

Eclipse Engines

Other: Robin's Bundle

• I

### Exp based on Player and Npc level difference

hoho ok, i’m edited, thanks for suggestion

• I

### Exp based on Player and Npc level difference

@'Mohenjo:

I would change the title to “Exp based on Player and Npc level difference”

hoho ok, i’m edited, thanks for suggestion

Posts 6Views 657

Looks like your connection to Eclipse ORPG Developer Community was lost, please wait while we try to reconnect.