[src] 3.02 Sources With Some Fixes

Codes already submitted by people of the forums.
1+12
Member
Posts: 173
Joined: Sat Feb 04, 2006 5:05 pm

Post by 1+12 »

Nah bro I got it workin, Its actually was the NPC file, because slammer said he removed the Mix Exp And Min Exp stuff and I still had that, So when I removed that from my NPC.cfg It worked...

EvilHit
Loyal fan
Posts: 356
Joined: Sun Jan 16, 2005 3:20 am

Post by EvilHit »

can some 1 put there config on here for me plz so i can use it
1+12
Member
Posts: 173
Joined: Sat Feb 04, 2006 5:05 pm

Post by 1+12 »

NPC Config?
EvilHit
Loyal fan
Posts: 356
Joined: Sun Jan 16, 2005 3:20 am

Post by EvilHit »

doesnt matter now
SlammeR
Loyal fan
Posts: 219
Joined: Fri Nov 04, 2005 1:52 am
Location: Brazil

Post by SlammeR »

EvilHit wrote: can some 1 put there config on here for me plz so i can use it
All the Modified Configs its on GameConfigs folder if im not wrong...
OWNED!<br><img src='http://img50.imageshack.us/img50/1386/p ... 3vsqn2.gif' border='0' alt='user posted image' /><br><br><img src="http://hbtop50.com/button.php?u=hbuonline" alt="Helbreath Top 50 - Keepin' it real." border="0" /><br><a href='http://www.hbuonline.net' target='_blank'>Helbreath United</a>
ADDKiD
&lt;3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

SlammeR I love your sig. O.O I just grabbed some old sources and with help of AcidX Added Angels, soon to be Crafting, and that sort.. Soon we start the process of coding it up to v3.72+
xmukox
Member
Posts: 175
Joined: Sun Sep 11, 2005 9:53 am

Post by xmukox »

OMFG where here is max lvl ? to change?oO

Code: Select all

 void CGame::StateChangeHandler(int iClientH, char * pData, DWORD dwMsgSize)
{
 char * cp, cStateChange1, cStateChange2, cStateChange3;
 char cStr, cVit, cDex, cInt, cMag, cChar;
 char cStateTxt[512];
 int iOldStr, iOldVit, iOldDex, iOldInt, iOldMag, iOldChar;
 int iTotalSetting = 0;
	
	if (m_pClientList[ iClientH ] == NULL) return;
	if (m_pClientList[ iClientH ]->m_bIsInitComplete == FALSE) return;
	if (m_pClientList[ iClientH ]->m_iGizonItemUpgradeLeft <= 0) return;

	cStr = cVit = cDex = cInt = cMag = cChar = 0;

	cp = (char *)(pData + DEF_INDEX2_MSGTYPE + 2);

	cStateChange1 = *cp;
	cp++;

	cStateChange2 = *cp;
	cp++;

	cStateChange3 = *cp;
	cp++;

	iOldStr	= m_pClientList[ iClientH ]->m_iStr;
	iOldVit	= m_pClientList[ iClientH ]->m_iVit;
	iOldDex = m_pClientList[ iClientH ]->m_iDex;
	iOldInt = m_pClientList[ iClientH ]->m_iInt;
	iOldMag = m_pClientList[ iClientH ]->m_iMag;
	iOldChar = m_pClientList[ iClientH ]->m_iCharisma;
  
	wsprintf(G_cTxt, "(*) Char(%s) Str(%d) Vit(%d) Dex(%d) Int(%d) Mag(%d) Chr(%d) ", m_pClientList[ iClientH ]->m_cCharName, m_pClientList[ iClientH ]->m_iStr, m_pClientList[ iClientH ]->m_iVit, m_pClientList[ iClientH ]->m_iDex, m_pClientList[ iClientH ]->m_iInt, m_pClientList[ iClientH ]->m_iMag, m_pClientList[ iClientH ]->m_iCharisma);
	PutLogList(G_cTxt);
	
	if(!bChangeState(cStateChange1,&cStr,&cVit,&cDex,&cInt,&cMag,&cChar))
	{
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_STATECHANGE_FAILED, NULL, NULL, NULL, NULL);
  return;
	}
	if(!bChangeState(cStateChange2,&cStr,&cVit,&cDex,&cInt,&cMag,&cChar))
	{
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_STATECHANGE_FAILED, NULL, NULL, NULL, NULL);
  return;
	}
	if(!bChangeState(cStateChange3,&cStr,&cVit,&cDex,&cInt,&cMag,&cChar))
	{
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_STATECHANGE_FAILED, NULL, NULL, NULL, NULL);
  return;
	}

	if(m_pClientList[ iClientH ]->m_iGuildRank == 0 )
	{
  if(m_pClientList[ iClientH ]->m_iCharisma - cChar < 20)
  {
  	SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_STATECHANGE_FAILED, NULL, NULL, NULL, NULL);
  	return;
  }
	}

	if(iOldStr +iOldVit +iOldDex +iOldInt +iOldMag +iOldChar != (179*3 + 70))
	{
  return;
	}


	if(cStr < 0 || cVit < 0 || cDex < 0 || cInt < 0 || cMag < 0 || cChar < 0
  || cStr + cVit + cDex + cInt + cMag + cChar != 3)
	{
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_STATECHANGE_FAILED, NULL, NULL, NULL, NULL);
  return;
	}

	if ((m_pClientList[ iClientH ]->m_iStr - cStr > DEF_CHARPOINTLIMIT) 
   || (m_pClientList[ iClientH ]->m_iStr - cStr < 10)) 
	{
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_STATECHANGE_FAILED, NULL, NULL, NULL, NULL);
  return;
	}

	if ((m_pClientList[ iClientH ]->m_iDex - cDex > DEF_CHARPOINTLIMIT) 
   || (m_pClientList[ iClientH ]->m_iDex - cDex < 10)) 
	{
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_STATECHANGE_FAILED, NULL, NULL, NULL, NULL);
  return;
	}

	if ((m_pClientList[ iClientH ]->m_iInt - cInt > DEF_CHARPOINTLIMIT) 
   || (m_pClientList[ iClientH ]->m_iInt - cInt < 10)) 
	{
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_STATECHANGE_FAILED, NULL, NULL, NULL, NULL);
  return;
	}

	if ((m_pClientList[ iClientH ]->m_iVit - cVit > DEF_CHARPOINTLIMIT) 
   || (m_pClientList[ iClientH ]->m_iVit - cVit < 10)) 
	{
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_STATECHANGE_FAILED, NULL, NULL, NULL, NULL);
  return;
	}

	if ((m_pClientList[ iClientH ]->m_iMag - cMag > DEF_CHARPOINTLIMIT) 
   || (m_pClientList[ iClientH ]->m_iMag - cMag < 10)) 
	{
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_STATECHANGE_FAILED, NULL, NULL, NULL, NULL);
  return;
	}

	if ((m_pClientList[ iClientH ]->m_iCharisma - cChar > DEF_CHARPOINTLIMIT)
   || (m_pClientList[ iClientH ]->m_iCharisma - cChar < 10)) 
	{
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_STATECHANGE_FAILED, NULL, NULL, NULL, NULL);
  return;
	}

	if (m_pClientList[ iClientH ]->m_iLU_Pool < 3) m_pClientList[ iClientH ]->m_iLU_Pool = 3;

	m_pClientList[ iClientH ]->m_iGizonItemUpgradeLeft--;

	m_pClientList[ iClientH ]->m_iStr  -= cStr;
	m_pClientList[ iClientH ]->m_iVit  -= cVit;
	m_pClientList[ iClientH ]->m_iDex  -= cDex;
	m_pClientList[ iClientH ]->m_iInt  -= cInt;

	if(cInt > 0)
  bCheckMagicInt(iClientH);
	m_pClientList[ iClientH ]->m_iMag  -= cMag;
	m_pClientList[ iClientH ]->m_iCharisma -= cChar;

	ZeroMemory(cStateTxt,sizeof(cStateTxt));

	wsprintf(cStateTxt, "STR(%d->%d)VIT(%d->%d)DEX(%d->%d)INT(%d->%d)MAG(%d->%d)CHARISMA(%d->%d)",
  iOldStr, m_pClientList[ iClientH ]->m_iStr,
  iOldVit, m_pClientList[ iClientH ]->m_iVit,
  iOldDex, m_pClientList[ iClientH ]->m_iDex,
  iOldInt, m_pClientList[ iClientH ]->m_iInt,
  iOldMag, m_pClientList[ iClientH ]->m_iMag,
  iOldChar,m_pClientList[ iClientH ]->m_iCharisma    
  );

	SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_STATECHANGE_SUCCESS, NULL, NULL, NULL, NULL);

	if (m_pClientList[iClientH]->m_iHP > iGetMaxHP(iClientH))
               m_pClientList[iClientH]->m_iHP = iGetMaxHP(iClientH);
	if (m_pClientList[iClientH]->m_iMP > iGetMaxMP(iClientH)) 
               m_pClientList[iClientH]->m_iMP = iGetMaxMP(iClientH);
	if (m_pClientList[iClientH]->m_iSP > iGetMaxSP(iClientH)) 
               m_pClientList[iClientH]->m_iSP = iGetMaxSP(iClientH);
}
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

max lvl to player or majestics? which one you asking for
xmukox
Member
Posts: 175
Joined: Sun Sep 11, 2005 9:53 am

Post by xmukox »

omg he say '' max lvl to stat change is 180 but if you need change find here ;d
xmukox
Member
Posts: 175
Joined: Sun Sep 11, 2005 9:53 am

Post by xmukox »

SlammeR can you add angelic back to that hg?:F
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

xmukox wrote: SlammeR can you add angelic back to that hg?:F
think he took them out for a reason :ph34r:
SlammeR
Loyal fan
Posts: 219
Joined: Fri Nov 04, 2005 1:52 am
Location: Brazil

Post by SlammeR »

xmukox wrote: omg he say '' max lvl to stat change is 180 but if you need change find here ;d

Code: Select all

if(iOldStr +iOldVit +iOldDex +iOldInt +iOldMag +iOldChar != (179*3 + 70))
try now...
OWNED!<br><img src='http://img50.imageshack.us/img50/1386/p ... 3vsqn2.gif' border='0' alt='user posted image' /><br><br><img src="http://hbtop50.com/button.php?u=hbuonline" alt="Helbreath Top 50 - Keepin' it real." border="0" /><br><a href='http://www.hbuonline.net' target='_blank'>Helbreath United</a>
xmukox
Member
Posts: 175
Joined: Sun Sep 11, 2005 9:53 am

Post by xmukox »

(179*3 + 70)) its that lvl ?:F so for what i need change to 310lvl?

Ps: if i try use command np: beginapocalypse... and heldenian its not work ;o 50% that hg not work ;o
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

xmukox wrote: (179*3 + 70)) its that lvl ?:F so for what i need change to 310lvl?

Ps: if i try use command np: beginapocalypse... and heldenian its not work ;o 50% that hg not work ;o
thats because held and apoc arent fully functional in that hg lol you need to finish the codes, if im not mistaken.
EvilHit
Loyal fan
Posts: 356
Joined: Sun Jan 16, 2005 3:20 am

Post by EvilHit »

Posted on Jul 23 2006, 09:55 AM
  QUOTE (xmukox @ Jul 22 2006, 04:10 PM)
(179*3 + 70)) its that lvl ?:F so for what i need change to 310lvl?

Ps: if i try use command np: beginapocalypse... and heldenian its not work ;o 50% that hg not work ;o 


thats because held and apoc arent fully functional in that hg lol you need to finish the codes, if im not mistaken. 
Posted on Jul 23 2006, 09:55 AM
yes crossfade u r correct u need to code it ur self
Post Reply