[SRC] WareHouse and Magic Fix

Codes already submitted by people of the forums.
Post Reply
cris002
just visiting
Posts: 5
Joined: Thu Sep 07, 2006 11:47 am

Post by cris002 »

I personally like all NPCs in shop...saves time. So if you were wondering how to do it heres how.
Find

Code: Select all

 void CGame::SetPlayingStatus
Then all of

Code: Select all

m_pClientList[iClientH]->m_bIsInsideWarehouse = FALSE;
and Replace with

Code: Select all

m_pClientList[iClientH]->m_bIsInsideWarehouse = TRUE;
Then all of

Code: Select all

m_pClientList[iClientH]->m_bIsInsideWizardTower = FALSE;
and Replace with

Code: Select all

m_pClientList[iClientH]->m_bIsInsideWizardTower = TRUE;
----------------HP----------------
Im not sure if this was a bug, but wen u conn loss after dieing u restart with 30hp. Heres a fix if you want to..


Find

Code: Select all

 m_pClientList[iClientH]->m_iHP = 30 
Replace with

Code: Select all

 m_pClientList[iClientH]->m_iHP = iGetMaxHP(iClientH); 
A Minor Bug if it was a Bug


----Maj Stats----

Also wit maj stat change, some servers dc if ur hp too high...fix is
Find

Code: Select all

BOOL CGame::_bCheckCharacterData(int iClientH)
then look for

Code: Select all

 
	if ((m_pClientList[iClientH]->m_iHP > iGetMaxHP(iClientH)) && (m_pClientList[iClientH]->m_iAdminUserLevel == 0)) {
  wsprintf(G_cTxt, "Packet Editing: (%s) Player: (%s) HP: current/maximum (%d/%d).", m_pClientList[iClientH]->m_cIPaddress, m_pClientList[iClientH]->m_cCharName, m_pClientList[iClientH]->m_iHP, iGetMaxHP(iClientH));
  PutHackLogFileList(G_cTxt);
  return FALSE;
	}
and Replace with

Code: Select all

 
	if ((m_pClientList[iClientH]->m_iHP > iGetMaxHP(iClientH)) && (m_pClientList[iClientH]->m_iAdminUserLevel == 0)) {
  m_pClientList[iClientH]->m_iHP = iGetMaxHP(iClientH);
  return TRUE;
	}
Repeat for Stam and Mana if Needed

Hope this Helps
Again Please dont Flame :) Only Noob
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

all these have already been fixed but thanks anyways lol, not trying to be an ass.
ADDKiD
<3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

Cross, when were they fixed. I don't remember, which HBX release? Cuz, I still find v2.25a and v2.24+ Has mass issues... Still... Majestic is fucked up on them all...

cris002: Good Job man! Keep up the work.
cris002
just visiting
Posts: 5
Joined: Thu Sep 07, 2006 11:47 am

Post by cris002 »

OO didnt know they were alrdy fixed lol. i tried a quick search and didnt turn up on anything, and the sources i got, didnt have them fixed so thought they wernt, anywayz, thnx....ill try to get a really helpful code done for yas...just cant get ne ideas
Post Reply