[src] Upgrade Window

Codes submitted by developers and people of outpost. Come here to get codes for your client sources.
Post Reply
SlammeR
Loyal fan
Posts: 219
Joined: Fri Nov 04, 2005 1:52 am
Location: Brazil

Post by SlammeR »

easy to add...

Function:

Code: Select all

void CGame::EnableDialogBox(int iBoxID, int cType, int sV1, int sV2, char * pString)
Change The case 34 to:

Code: Select all

	case 34:
  if (m_bIsDialogEnabled[34] == FALSE)
                {	m_stDialogBoxInfo[34].cMode = cType;
  	m_stDialogBoxInfo[34].sV1  = -1;
  	m_stDialogBoxInfo[34].dwV1 = NULL;
  }else if (m_bIsDialogEnabled[34] == FALSE)
  {	int iSoX, iSoM;
  	iSoX = iSoM = 0;
  	for (i = 0; i < DEF_MAXITEMS; i++)
  	if (m_pItemList[i] != NULL)
  	{	if ((m_pItemList[i]->m_sSprite == 6) && (m_pItemList[i]->m_sSpriteFrame == 128)) iSoX++;
    if ((m_pItemList[i]->m_sSprite == 6) && (m_pItemList[i]->m_sSpriteFrame == 129)) iSoM++;
  	}
  	if ((iSoX > 0) || (iSoM > 0))
  	{	m_stDialogBoxInfo[34].cMode = 6; // Stone upgrade
    m_stDialogBoxInfo[34].sV2 = iSoX;
    m_stDialogBoxInfo[34].sV3 = iSoM;
    m_stDialogBoxInfo[34].sV1  = -1;
    m_stDialogBoxInfo[34].dwV1 = NULL;
  	}else if (m_iGizonItemUpgradeLeft > 0)
  	{	m_stDialogBoxInfo[34].cMode = 1;
    m_stDialogBoxInfo[34].sV2 = -1;
    m_stDialogBoxInfo[34].sV3 = -1;
    m_stDialogBoxInfo[34].sV1  = -1;
    m_stDialogBoxInfo[34].dwV1 = NULL;
  	}else
  	{	AddEventList(DRAW_DIALOGBOX_ITEMUPGRADE30, 10); // "Stone of Xelima or Merien is not present."
    return;
  }	}
  break;
It is allready coded on client... you just need to add one thing...

Code: Select all

  if (m_bIsDialogEnabled[34] == FALSE)
                {	m_stDialogBoxInfo[34].cMode = cType;
  	m_stDialogBoxInfo[34].sV1  = -1;
  	m_stDialogBoxInfo[34].dwV1 = NULL;
You're Done...
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>
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

good job
xmukox
Member
Posts: 175
Joined: Sun Sep 11, 2005 9:53 am

Post by xmukox »

nice :F
Hepha
Regular
Posts: 31
Joined: Wed Dec 14, 2005 10:57 pm

Post by Hepha »

Thx slamm ;)
<img src='http://img174.imageshack.us/img174/9513 ... ionrv6.png' border='0' alt='user posted image' />
Namesis
Regular
Posts: 88
Joined: Fri Mar 03, 2006 12:53 pm

Post by Namesis »

hmm i dont understand, what this code do?
€M4NU€L
Outpost bitch
Posts: 517
Joined: Sat Nov 19, 2005 9:07 pm
Location: I watch gay porn
Contact:

Post by €M4NU€L »

Namesis wrote: hmm i dont understand, what this code do?
I think is for the Stone of Xelima and Merien to not fail '' <span style='color:red'>I THINK</span> ''
<span style='color:blue'>Helbreath Thermal</span> <span style='color:green'>BETA</span> <span style='color:red'>Soon</span>:<br><br>www.youporngay.com<br><br><img src='http://img264.imageshack.us/img264/1041 ... piopk7.jpg' border='0' alt='user posted image' /><br><img src='http://img257.imageshack.us/img257/3762 ... eakxj1.jpg' border='0' alt='user posted image' /><br><img src='http://arthur.crepin.free.fr/images/use ... mpsons.png' border='0' alt='user posted image' /><br><img src='http://img329.imageshack.us/img329/5797/pesgamerrr3.gif' border='0' alt='user posted image' /><br><br><u><b>BLACK GAY LIST:</b></u><br><br><span style='color:red'>€M4NU€L</span>:<br>I look like a girl and he's always complaining someone.
SlammeR
Loyal fan
Posts: 219
Joined: Fri Nov 04, 2005 1:52 am
Location: Brazil

Post by SlammeR »

Namesis wrote: hmm i dont understand, what this code do?
Turn On This Window...
<a href='http://imageshack.us' target='_blank'>Image</a>

its missing on snoopy client...
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>
Blizaga
Regular
Posts: 68
Joined: Sat Jul 08, 2006 7:39 pm

Post by Blizaga »

<span style='color:green'>True, thanks slammer</span>
<a href='http://imageshack.us' target='_blank'><img src='http://img224.imageshack.us/img224/2738/screenqu8.jpg' border='0' alt='user posted image' /></a><br>drajwer draw<br><a href='index.php?showtopic=7299' target='_blank'>index.php?showtopic=7299</a>
Post Reply