I need UnknownMan npc for client 5095

01/29/2010 20:12 amrooozeid#1
Hey guys

my Npc (UnknownMan) :
1st time u use DB u be lvl 78 and this is good!
2nd time u use DB u be lvl 136 and this is realy bad .
I don't know what to do ,so I'm asking u for another one
and if you can make it like that :

1- 78
2- 105
3- 118
4- 127
5- 131

it will be good

I hope you can help me :) Thanks
01/29/2010 22:39 pro4never#2
There have been a number of unknown man versions released for 5095 but instead of having it give a specific number of levels, why not have do a nice exp/level calculation similar to the proper expball codes that were released (obviously higher but similar idea)

Anyways just an idea.


ooh, or you could use a bunch of nasty if statements basically saying

if level < 100
give them like 10 levels for a db

else if level < 120
give them like 5 levels for a db

else if level < 130
give them like 1 lvl for a db


Either way would work but using a string of if statements like that would be kinda silly in the long run.
01/30/2010 08:54 amrooozeid#3
Thanks but can I Get the NPC like SQL file with that things u said :

if level < 100
give them like 10 levels for a db

else if level < 120
give them like 5 levels for a db

else if level < 130
give them like 1 lvl for a db


This will be good


Thanks again :)
01/30/2010 10:05 Nullable#4
Quote:
Originally Posted by pro4never View Post
ooh, or you could use a bunch of nasty if statements basically saying

if level < 100
give them like 10 levels for a db

else if level < 120
give them like 5 levels for a db

else if level < 130
give them like 1 lvl for a db
Code:
Exp = ((Level > 100) && (Level < 120) ? 10 : ((Level > 120) && (Level < 130) ? 5 : (Level > 130) ? 1 : 0));
This does the same job in just 1 line, but the best bet is read the wanted exp value from another file, it should not be hardcoded just in case the rates have to be changed, and to avoid all of those boolean operations
01/30/2010 11:11 amrooozeid#5
Thanks