qp as an avatar

Posted by Gorock on Sun 18 Sep 2005 12:29 AM — 12 posts, 36,230 views.

#0
yeah i am trying to implement in getting qp after each kill that you get as anavatar and i have been serching yahoo and cool even ask jeeves but i have not been able to find out how to implement it so that avatars get qp instead of exp after each kill that way my qpbuy code will actually be used


thanks in advance
USA #1
Get look where the exp gain code is after a kill, and add another function call there to a new function, like gain_qp.
#2
well you have to keep in mind i am fairly new so if there is more to do then add gain_qp then i would like to know :)
#3
i dont even understand what you meant
#4
ok how would i find it i greped for it but did not pull anything up and scince i am new i dont really have a good idea of where to start so anyideas would be nice or point me to somewhere that has a code or something i can just put in
thanks though
USA #5
Make a function that gives the character QP. Then have it called from where you want it, such as after a kill. Or you could just increase the QP variable after a kill.
#6
how would i do that i am new to this
USA #7
If you're new, you should look over some sites.
http://www.cprogramming.com/
#8
well i have read a bit in there but i dont seem to know anything that i didn't then
USA #9
For example, if the variable is called "questp" in pcdata and want to increase it on ch:
ch->pcdata->questp++;
#10
so this would be put in fight.c and i would make it like so that if the character >= 50 gain_qp
#11
ok nevermind guys i got it