Level Seller

08/26/2010 12:03 buckeyes10#1
Is there any way to make an level seller in 5165?
I mean,a NPC we can use him when we 132 lvl.
And we can buy lvls,1 lvl - 50k CPs.
Pls help :D :handsdown: :handsdown:
08/26/2010 12:10 dowhatuwant#2
of course there is.
example:
Code:
case 1337:
{
if (Control == 0)
{
//what npc say
//control 1
}
if (Control == 1)
{
if (GC.MyChar.CPs >= 50000 && GC.MyChar.Level >= 137 && GC.MyChar.Level <= 254)//change to amount you want and the level you need to be
{
GC.MyChar.CPs -= 50000;
GC.MyChar.Level += 1;
//What npc say if you got enough money and you level up
}
else
{
//What npc say if you don't got enough money or is not between 137 and 254
}
}
break;
}
08/26/2010 12:19 buckeyes10#3
Thx u verry much Zuper :)
You really helped me :D
08/26/2010 15:53 Adziunia#4
lolz u could make it by urself its easy as shyt... and u would learn some by doing it alone and figuring out everything....
08/26/2010 18:07 buckeyes10#5
@Adziunia
Zuper really helped me out...
So why u posting something more here?
I know basics of coding,and its good for me.
If u posting here witchout anything helpfull,better no post.
Shame on u!
08/26/2010 19:02 dowhatuwant#6
I doubt u knew basic of coding, if u cant find the statement for a chars cps and levels.
is a simple uint and a byte.