
EDIT: Ohhh man! what a headache it's 23:30 and I gotta go to work tomorrow I think I'll wait for some fix since I got not time to code... good luck!
can someone help me i just got 1 error only pls help--------------------Configuration: HGserver - Win32 Debug--------------------
Compiling...
Game.cpp
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(9838) : error C2039: 'm_cMsgCount' : is not a member of 'CClient'
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\client.h(36) : see declaration of 'CClient'
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(44349) : warning C4390: ';' : empty controlled statement found; is this the intent?
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(44353) : warning C4804: '>' : unsafe use of type 'bool' in operation
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(44355) : warning C4390: ';' : empty controlled statement found; is this the intent?
Error executing cl.exe.
Game.obj - 1 error(s), 3 warning(s)
Yeah true that...for some reason did not work... :unsure:diuuude wrote:PTA wont be upgradable anymore...locobans wrote: Ah...for people who want it to match it completly as original servers...Comment this part out...since angels does not have to be binded to your character to wear...on hbint/usa people can lend their angels to others and viceversa.
if ((m_pClientList[iClientH]->m_pItemList[iItemIndex]->m_sTouchEffectValue1 != m_pClientList[iClientH]->m_sCharIDnum1) ||
(m_pClientList[iClientH]->m_pItemList[iItemIndex]->m_sTouchEffectValue2 != m_pClientList[iClientH]->m_sCharIDnum2) ||
(m_pClientList[iClientH]->m_pItemList[iItemIndex]->m_sTouchEffectValue3 != m_pClientList[iClientH]->m_sCharIDnum3)) {
SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_ITEMUPGRADEFAIL, 2, NULL, NULL, NULL);
return;
}
you don't declare them in item3.cfg...akytgp wrote: i see 200 str but i have equip str pandent, any can help me plz.
and other question i ccant declare 4 pandent in item3.cfg, why?
<a href='http://imageshack.us' target='_blank'></a>
Check the function that upgrade the items, find the case used for angellic pendants and remove the check for unique IDs, it should work now !locobans wrote:Yeah true that...for some reason did not work... :unsure:diuuude wrote:PTA wont be upgradable anymore...locobans wrote: Ah...for people who want it to match it completly as original servers...Comment this part out...since angels does not have to be binded to your character to wear...on hbint/usa people can lend their angels to others and viceversa.
I added it...and here it how it was my DlgBoxClick_ItemUpgradevoid CGame::DrawDialogBox_ItemUpgrade(int msX, int msY)
You may adjust some things....
below "iValue = iValue*(iValue+6)/8 + 2;", add:
if ( (m_pItemList[m_stDialogBoxInfo[34].sV1]->m_cEquipPos >= 11)
&& (m_pItemList[m_stDialogBoxInfo[34].sV1]->m_cItemType == 1))
{ if( (memcmp(m_pItemList[m_stDialogBoxInfo[34].sV1]->m_cName, "AngelicPandent(STR)", 19) == 0)
|| (memcmp(m_pItemList[m_stDialogBoxInfo[34].sV1]->m_cName, "AngelicPandent(DEX)", 19) == 0)
|| (memcmp(m_pItemList[m_stDialogBoxInfo[34].sV1]->m_cName, "AngelicPandent(INT)", 19) == 0)
|| (memcmp(m_pItemList[m_stDialogBoxInfo[34].sV1]->m_cName, "AngelicPandent(MAG)", 19) == 0))
{ iValue = (m_pItemList[m_stDialogBoxInfo[34].sV1]->m_dwAttribute & 0xF0000000) >> 28;
switch (iValue) {
case 0: iValue = 10; break;
case 1: iValue = 11; break;
case 2: iValue = 13; break;
case 3: iValue = 16; break;
case 4: iValue = 20; break;
case 5: iValue = 25; break;
case 6: iValue = 31; break;
case 7: iValue = 38; break;
case 8: iValue = 46; break;
case 9: iValue = 55; break;
} } }
You said below...I added it after it and also before it and no succes...still showing the normal formula on client...void CGame::DlgBoxClick_ItemUpgrade(int msX, int msY) {
short sX, sY;
int i, iSoX, iSoM;
sX = m_stDialogBoxInfo[34].sX;
sY = m_stDialogBoxInfo[34].sY;
switch (m_stDialogBoxInfo[34].cMode) {
case 1: // Upgrade Majestic, items in the window
if ((m_stDialogBoxInfo[34].sV1 != -1) && (msX >= sX + DEF_LBTNPOSX) && (msX <= sX + DEF_LBTNPOSX + DEF_BTNSZX) && (msY >= sY + DEF_BTNPOSY) && (msY <= sY + DEF_BTNPOSY + DEF_BTNSZY)) {
int iValue = (m_pItemList[m_stDialogBoxInfo[34].sV1]->m_dwAttribute & 0xF0000000) >> 28;
if ((m_pItemList[m_stDialogBoxInfo[34].sV1]->m_cEquipPos >= 11) && (m_pItemList[m_stDialogBoxInfo[34].sV1]->m_cItemType == 1)) {
if ((memcmp(m_pItemList[m_stDialogBoxInfo[34].sV1]->m_cName, "AngelicPandent(STR)", 19) == 0)
|| (memcmp(m_pItemList[m_stDialogBoxInfo[34].sV1]->m_cName, "AngelicPandent(DEX)", 19) == 0)
|| (memcmp(m_pItemList[m_stDialogBoxInfo[34].sV1]->m_cName, "AngelicPandent(INT)", 19) == 0)
|| (memcmp(m_pItemList[m_stDialogBoxInfo[34].sV1]->m_cName, "AngelicPandent(MAG)", 19) == 0)) {
iValue = (m_pItemList[m_stDialogBoxInfo[34].sV1]->m_dwAttribute & 0xF0000000) >> 28;
switch (iValue) {
case 0: iValue = 10; break;
case 1: iValue = 11; break;
case 2: iValue = 13; break;
case 3: iValue = 16; break;
case 4: iValue = 20; break;
case 5: iValue = 25; break;
case 6: iValue = 31; break;
case 7: iValue = 38; break;
case 8: iValue = 46; break;
case 9: iValue = 55; break;
}
}
}
iValue = iValue*(iValue+6)/8 + 2;
if( m_iGizonItemUpgradeLeft < iValue ) break;
PlaySound('E', 14, 5);
PlaySound('E', 44, 0);
m_stDialogBoxInfo[34].cMode = 2;
m_stDialogBoxInfo[34].dwV1 = timeGetTime();
}
..............