Higher Exp Rate From Npc?

01/04/2011 16:51 erikboy95#1
Hello people :)
just wondering, anyone know how i can make a npc that gives/sells 5 times or 10 times moore exp than normal?

AND YES!!!!!!!! I HAVE BEEN SEARCHING!

Thanks :)
01/04/2011 17:42 Pro4Never2#2
ERIK , a little thing about your signature, if you have problems with The Knight, why you don't Block Him and your report abuse, and it's done!
01/04/2011 18:16 erikboy95#3
Quote:
Originally Posted by Pro4Never2 View Post
ERIK , a little thing about your signature, if you have problems with The Knight, why you don't Block Him and your report abuse, and it's done!
haha, i did... he still talks to me xD...lets take it in msn instead xD hehe
01/04/2011 18:55 DePredaTe#4
I'm not that good with C#, matter of fact I barely know any. But where I would start is by looking at the code for double exp potion and then simply making and NPC, that does that for money or whatever.
01/05/2011 00:01 samehvan#5
what do u mean by 10 times exp ?? if u mean 10 times Exp Ball that wont be so hard to do

but if u mean u want it to sell something like Potions which multiple the exp rate then u will need to create a new variable for it , let's say
HighExpRate=false;
and when using this item
Character.HighExpRate=true;

then at Give exp function
if(Character.HighExpRate) Exp*=10;

Note:
my last lines guesses that u know where those calcing/giving Exp funcs
if not and u need help to get that system to work , then i need to know which source/Client u use
01/05/2011 04:38 Syst3m_W1z4rd#6
Code:
public bool HigherExpRate_bool = false;
public DateTime HigherExpRate;

//When you buy
if (!Character.HigherExpRate_bool)
{
    Character.HigherExpRate = DateTime.Now;
    Character.HigherExpRate_bool = true;
}

//ToEnd
if (DateTime.Now > Character.HigherExpRate.AddMinutes(60) && Character.HigherExpRate_bool)
{
    Character.HigherExpRate_bool = false;
}

//Exp
if (Character.HigherExpRate_bool)
    Character.Experience += Exp * 10;
01/05/2011 04:51 Lateralus#7
Quote:
Originally Posted by Syst3m_W1z4rd View Post
Code:
public bool HigherExpRate_bool = false;
public DateTime HigherExpRate;

//When you buy
if (!Character.HigherExpRate_bool)
{
    Character.HigherExpRate = DateTime.Now;
    Character.HigherExpRate_bool = true;
}

//ToEnd
if (DateTime.Now > Character.HigherExpRate.AddMinutes(60) && Character.HigherExpRate_bool)
{
    Character.HigherExpRate_bool = false;
}

//Exp
if (Character.HigherExpRate_bool)
    Character.Experience += Exp * 10;
What if he's using C++ or java? :D
01/05/2011 05:12 Syst3m_W1z4rd#8
Quote:
Originally Posted by Lateralus View Post
What if he's using C++ or java? :D
Erik is using C#. Java is not much different. I doubt he can C++.
01/05/2011 15:09 erikboy95#9
okok, i use C#
i want a NPC that sell bigger exp rate...
lets say normal is 50!
and i want a NPC that sell exp 500 For 10kk(that just an example)
01/05/2011 17:42 DePredaTe#10
Lol. They are trying to help you, not give you the solution so you come back looking to get another answer. It's best to learn for yourself, rather than being taught by others. See, being taught by others isnt so bad. But in life, as you grow older you need to start learning for yourself. Because I don't want another dumbass in the world, and if you live in the United States, I don't want another tree hugging bisexual like oBAMa to get elected for president. Which is a no go.
01/05/2011 18:03 Basser#11
Quote:
Originally Posted by Syst3m_W1z4rd View Post
Code:
public bool HigherExpRate_bool = false;
public DateTime HigherExpRate;

//When you buy
if (!Character.HigherExpRate_bool)
{
    Character.HigherExpRate = DateTime.Now;
    Character.HigherExpRate_bool = true;
}

//ToEnd
if (DateTime.Now > Character.HigherExpRate.AddMinutes(60) && Character.HigherExpRate_bool)
{
    Character.HigherExpRate_bool = false;
}

//Exp
if (Character.HigherExpRate_bool)
    Character.Experience += Exp * 10;
I hate the way you named those fields, lol.