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;
}
[src] Tutelary Angels System
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.
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
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;
}
<a href='http://www.technohell.net' target='_blank'><b><span style='color:red'>>>> Helbreath Ressources Website Here <<<</span></b></a><br>C++ Sources, Tools, Server Files, Help on Forum, C++ Snippets, Toplist... Updated often, come visit us !
Using my code up there doesn't mess with Lu_Pool & stats changes.The problem is it takes the +1 out of then LU_Pool then makes it -1 which disconnects you.
Some last minute info:
- To a completelly item number independant system you can change buying function to create the item by Name instead of number.
- There is a fix from Aryes, mainlly on equiping sounds, that should be added (look above)
- I have no real knowledge of Pendant/character binding. I know on USA you may drop you pendant, then somebody else can take it and use it, but I've not Idea weather if somebody else than original creator is allowed to upgrade it once more...
_\_ _<br> / , \__/ . \ Admin of Equilibrium Project<br> II\ \___ . O<br> III \_/ \ _ / <a href='http://www.equiprojet.com' target='_blank'>http://www.equiprojet.com</a><br> II I¯I
Well...Someone that used to play hbint/usa told me that it doesn't bind to a character, cause you can upgrade it and lend it to another player, he can use it and even upgrade it too.snoopy81 wrote:Using my code up there doesn't mess with Lu_Pool & stats changes.The problem is it takes the +1 out of then LU_Pool then makes it -1 which disconnects you.
Some last minute info:
- To a completelly item number independant system you can change buying function to create the item by Name instead of number.
- There is a fix from Aryes, mainlly on equiping sounds, that should be added (look above)
- I have no real knowledge of Pendant/character binding. I know on USA you may drop you pendant, then somebody else can take it and use it, but I've not Idea weather if somebody else than original creator is allowed to upgrade it once more...
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
--------------------Configuration: HGserver - Win32 Debug--------------------
Compiling...
Game.cpp
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(194) : error C2061: syntax error : identifier 'iTemp'
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(9750) : 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(24878) : error C2660: 'SetAngelFlag' : function does not take 4 parameters
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(25170) : error C2660: 'SetAngelFlag' : function does not take 4 parameters
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(25176) : error C2660: 'SetAngelFlag' : function does not take 4 parameters
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(25182) : error C2660: 'SetAngelFlag' : function does not take 4 parameters
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(25188) : error C2660: 'SetAngelFlag' : function does not take 4 parameters
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(42873) : error C2061: syntax error : identifier 'iTemp'
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(42874) : error C2556: 'void __thiscall CGame::SetAngelFlag(short,char,int)' : overloaded function differs only by return type from 'int __thiscall CGame::SetAngelFlag(short,
char,int)'
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(194) : see declaration of 'SetAngelFlag'
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(42874) : error C2371: 'SetAngelFlag' : redefinition; different basic types
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(194) : see declaration of 'SetAngelFlag'
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(42894) : error C2065: 'iTemp' : undeclared identifier
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(42896) : error C2143: syntax error : missing ')' before 'string'
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(42896) : error C2059: syntax error : ')'
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(42907) : error C2556: 'void __thiscall CGame::GetAngelHandler(int,char *,unsigned long)' : overloaded function differs only by return type from 'int __thiscall CGame::GetAng
elHandler(int,char *,unsigned long)'
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(195) : see declaration of 'GetAngelHandler'
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(42907) : error C2371: 'GetAngelHandler' : redefinition; different basic types
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(195) : see declaration of 'GetAngelHandler'
wmain.cpp
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(194) : error C2061: syntax error : identifier 'iTemp'
Crusade.cpp
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(194) : error C2061: syntax error : identifier 'iTemp'
Heldenian.cpp
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(194) : error C2061: syntax error : identifier 'iTemp'
Party.cpp
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(194) : error C2061: syntax error : identifier 'iTemp'
Admin.cpp
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(194) : error C2061: syntax error : identifier 'iTemp'
Guild.cpp
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(194) : error C2061: syntax error : identifier 'iTemp'
Map.cpp
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(194) : error C2061: syntax error : identifier 'iTemp'
Apocolypse.cpp
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(194) : error C2061: syntax error : identifier 'iTemp'
Error executing cl.exe.
Creating browse info file...
HGserver.exe - 23 error(s), 0 warning(s)
can someone help me .. i put all snoopy code then i get this error i follow all what he say but still get this ... HuH ~
Compiling...
Game.cpp
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(194) : error C2061: syntax error : identifier 'iTemp'
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(9750) : 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(24878) : error C2660: 'SetAngelFlag' : function does not take 4 parameters
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(25170) : error C2660: 'SetAngelFlag' : function does not take 4 parameters
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(25176) : error C2660: 'SetAngelFlag' : function does not take 4 parameters
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(25182) : error C2660: 'SetAngelFlag' : function does not take 4 parameters
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(25188) : error C2660: 'SetAngelFlag' : function does not take 4 parameters
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(42873) : error C2061: syntax error : identifier 'iTemp'
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(42874) : error C2556: 'void __thiscall CGame::SetAngelFlag(short,char,int)' : overloaded function differs only by return type from 'int __thiscall CGame::SetAngelFlag(short,
char,int)'
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(194) : see declaration of 'SetAngelFlag'
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(42874) : error C2371: 'SetAngelFlag' : redefinition; different basic types
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(194) : see declaration of 'SetAngelFlag'
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(42894) : error C2065: 'iTemp' : undeclared identifier
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(42896) : error C2143: syntax error : missing ')' before 'string'
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(42896) : error C2059: syntax error : ')'
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(42907) : error C2556: 'void __thiscall CGame::GetAngelHandler(int,char *,unsigned long)' : overloaded function differs only by return type from 'int __thiscall CGame::GetAng
elHandler(int,char *,unsigned long)'
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(195) : see declaration of 'GetAngelHandler'
D:\Project\Sources\[Source] HGServer 3.02 Source\HGServer - Source\Game.cpp(42907) : error C2371: 'GetAngelHandler' : redefinition; different basic types
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(195) : see declaration of 'GetAngelHandler'
wmain.cpp
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(194) : error C2061: syntax error : identifier 'iTemp'
Crusade.cpp
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(194) : error C2061: syntax error : identifier 'iTemp'
Heldenian.cpp
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(194) : error C2061: syntax error : identifier 'iTemp'
Party.cpp
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(194) : error C2061: syntax error : identifier 'iTemp'
Admin.cpp
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(194) : error C2061: syntax error : identifier 'iTemp'
Guild.cpp
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(194) : error C2061: syntax error : identifier 'iTemp'
Map.cpp
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(194) : error C2061: syntax error : identifier 'iTemp'
Apocolypse.cpp
d:\project\sources\[source] hgserver 3.02 source\hgserver - source\game.h(194) : error C2061: syntax error : identifier 'iTemp'
Error executing cl.exe.
Creating browse info file...
HGserver.exe - 23 error(s), 0 warning(s)
can someone help me .. i put all snoopy code then i get this error i follow all what he say but still get this ... HuH ~
-
- Loyal fan
- Posts: 423
- Joined: Thu Apr 07, 2005 7:53 pm
, iTemp)snoopy81 wrote: void CGame::SetAngelFlag(short sOwnerH, char cOwnerType, int iStatus, iTemp)
typo? should be void CGame::SetAngelFlag(short sOwnerH, char cOwnerType, int iStatus, int iTemp)
Tyvm for your code
<img src='http://www.bleachportal.net/interactive ... irjjkt.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/Slipknot%20Fan.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/UT2004%20Player.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/AC%20DC%20Fan.png' border='0' alt='user posted image' /><br>
-
- Loyal fan
- Posts: 423
- Joined: Thu Apr 07, 2005 7:53 pm
Im guessing you meantsnoopy81 wrote:{ int iStars = (iTemp/3)*(iTemp/5);
m_pClientList[ sOwnerH ]->m_iStatus = m_pClientList[ sOwnerH ]->m_iStatus | ( iStars "ShiftLeft" ; // THe forum refuses the real C++ code !
Code: Select all
if (iTemp >4)
{ int iStars = (iTemp/3)*(iTemp/5);
m_pClientList[ sOwnerH ]->m_iStatus = m_pClientList[ sOwnerH ]->m_iStatus && (iStars)
o.O but then again iTemp = wtf?
was supposed to be a short?
edit: fuck yours is'nt easier ima go diuuudes way instead of changin 50x formulas
<img src='http://www.bleachportal.net/interactive ... irjjkt.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/Slipknot%20Fan.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/UT2004%20Player.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/AC%20DC%20Fan.png' border='0' alt='user posted image' /><br>
Im guess he means:Slipknight wrote:Im guessing you meantsnoopy81 wrote:{ int iStars = (iTemp/3)*(iTemp/5);
m_pClientList[ sOwnerH ]->m_iStatus = m_pClientList[ sOwnerH ]->m_iStatus | ( iStars "ShiftLeft" ; // THe forum refuses the real C++ code !
Code: Select all
if (iTemp >4) { int iStars = (iTemp/3)*(iTemp/5); m_pClientList[ sOwnerH ]->m_iStatus = m_pClientList[ sOwnerH ]->m_iStatus && (iStars)
o.O but then again iTemp = wtf?
was supposed to be a short?
edit: fuck yours is'nt easier ima go diuuudes way instead of changin 50x formulas
m_pClientList[ sOwnerH ]->m_iStatus = m_pClientList[ sOwnerH ]->m_iStatus | ( iStars << ;
<img src='http://drazzt.iespana.es/Drazzt/logo2.jpg' border='0' alt='user posted image' />
When i coded Majesty Upgrade for PTAs, i used Item IDs, so it must be the original Item IDs if you want it to work without editing it in sources.
Another possible problem : Unique character's IDs does not match with Item Unique IDs... If you removed the binding code, this problem should occur. Remove the check for the Unique ID Nums.
Another possible problem : Unique character's IDs does not match with Item Unique IDs... If you removed the binding code, this problem should occur. Remove the check for the Unique ID Nums.
<a href='http://www.technohell.net' target='_blank'><b><span style='color:red'>>>> Helbreath Ressources Website Here <<<</span></b></a><br>C++ Sources, Tools, Server Files, Help on Forum, C++ Snippets, Toplist... Updated often, come visit us !
Actually I do use different ItemID numbers but I also changed them in the functions (server-side) and as for Unique character's IDs issue... I was trying to check that but I don't find that part of the code if it doesn't bother you ... feel free to point me there. Thankz!
EDIT: Nevermind I managed to make it work but now I need a little help with the "check for stats" which disconnects me from server
EDIT: Nevermind I managed to make it work but now I need a little help with the "check for stats" which disconnects me from server
Um...the item should be binded to your character.[51LV3RY] wrote: Actually I do use different ItemID numbers but I also changed them in the functions (server-side) and as for Unique character's IDs issue... I was trying to check that but I don't find that part of the code if it doesn't bother you ... feel free to point me there. Thankz!
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
add iAddStr, iAddInt... and evaluate it, like snoopy used.
<img src='http://img440.imageshack.us/img440/2627/15pt.jpg' border='0' alt='user posted image' /><br><br>HBPolska characters:<br><br>Hellios 150+ Aresden Hero Mage<br>TheBill 120 Aresden plrider<br>Kill_Me 100 Full-Hero plrider<br>Rockeater 110+ Aresden Plate Mage<br><br><a href='http://www.helbreath.org' target='_blank'>http://www.helbreath.org</a> come and play (250 ppl online)