• 0 Vote(s) - 0 Average
• 1
• 2
• 3
• 4
• 5
Exp based on Player and Npc level difference

This tutorial simple and easy.

Server side

Look in modCombat, PlayerAttackNpc for:

Code:
`' Calculate exp to give attacker`

The line under it should be:

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

Code:
```                       ' 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

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

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

(12-26-2016, 03:06 PM)sherwin Wrote: 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?

I would change the title to "Exp based on Player and Npc level difference"
Baannounik shall control all!

Eclipse Engines

Misc.

(12-26-2016, 04:01 PM)Mohenjo Daro Wrote: I would change the title to "Exp based on Player and Npc level difference"

hoho ok, i'm edited, thanks for suggestion

 Possibly Related Threads... Thread Author Replies Views Last Post [EO] Weapon Proficiencies/Skill Level DJMaxus 67 9,496 10-26-2015, 01:26 AM Last Post: or3o [Sky/EO2-4] LocalTime Based Movement SkywardRiver 11 1,862 06-04-2015, 05:28 AM Last Post: Officer Johnson [EO] Online Player Editor Matt 15 2,601 05-26-2015, 09:49 PM Last Post: Daneta [EO 3.0] Tile based simulated lighting system 1.0 (Deathbeam) zerohero 20 4,965 05-16-2015, 07:00 PM Last Post: Tic Tac 2 [EO]Show Player HP (Target) Golf 8 1,484 01-13-2015, 10:49 AM Last Post: IFX

Forum Jump:

 Users browsing this thread: 1 Guest(s)