Level Up Window Bug

All Helbreath Client Source Discussion here.
Post Reply
marleythe9
Loyal fan
Posts: 391
Joined: Sat Mar 26, 2005 12:41 am

Post by marleythe9 »

well, basicly whenever your LU points are 0, and i click the + button on the level up dialog, the dialog becomes like unactive, and i canot close it..... dose anyone know how to fix this???, i wana get it fixed becouse, i also want a limit on the stats soo u cant go over 200. ill work on it i guess, try and get it working, the code dose look good, but ill go thew it harder and see if i can find that bug :(

**doh nvm, i guess i accedently changed somehting in code heh..

but any way i got it worked, if any wants it heres how you do it:
in the DlgBoxClick_LevelUpSettings function

on all the if buttons for str, vit, dex, int, mag, char should be something like this but ovesiouly diffrent ints

Code: Select all

	// Strength UP - Diuuude
	if ((msX >= sX + 195) && (msX <= sX + 205) && (msY >= sY + 127) && (msY <= sY + 133) && (m_iLU_Point > 0)&& (m_cLU_Str+m_iStr < DEF_STATS_LIMIT)) {
and for the other buttons just add the && (m_i? < DEF_STATS_LIMIT)
the integers for the stats are
m_iStr
m_iVit
m_iDex
m_iInt
m_iMag
m_iCharisma


and for the DEF_STATS_LIMIT, you can just put it in the GlobalDef.h

Code: Select all

#define DEF_STATS_LIMIT  	200
(lol i just relized they already had something like that int he if function.... but sadly they used <= not just <, becouse if it = 200, they dont need to change it...

**i Updated it... i pulled a newb thing lol.. i forgot client dont send message when you click the add.. hehee newbish hehe...
<img src='http://freewebs.com/trickro/70s.png' border='0' alt='user posted image' /><img src='http://freewebs.com/trickro/70s2.jpg' border='0' alt='user posted image' />
marleythe9
Loyal fan
Posts: 391
Joined: Sat Mar 26, 2005 12:41 am

Post by marleythe9 »

heh u can just add this in the if function on level up dialog :).. it will fix the over the stat limit thing

(m_cLU_Str+m_iStr < DEF_STATS_LIMIT)

earlyer i did it wrong... cuz i figured it refreshed the str when u press the butt but meh.... lol was a newb mistake lol ;)... soo just add the stats u added and how much you have when u leveled.. u dont want it to be = or it will alow u to add 201 stats.
<img src='http://freewebs.com/trickro/70s.png' border='0' alt='user posted image' /><img src='http://freewebs.com/trickro/70s2.jpg' border='0' alt='user posted image' />
Post Reply