[src] Tutelary Angels System

Codes already submitted by people of the forums.
Post Reply
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

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;
  }
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>
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

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;
  }
PTA wont be upgradable anymore...
<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 !
snoopy81
Loyal fan
Posts: 338
Joined: Mon Jul 12, 2004 7:13 pm

Post by snoopy81 »

The problem is it takes the +1 out of then LU_Pool then makes it -1 which disconnects you.
Using my code up there doesn't mess with Lu_Pool & stats changes.

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
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

snoopy81 wrote:
The problem is it takes the +1 out of then LU_Pool then makes it -1 which disconnects you.
Using my code up there doesn't mess with Lu_Pool & stats changes.

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...
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.
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>
Ace
Regular
Posts: 68
Joined: Sat Apr 03, 2004 5:14 am

Post by Ace »

--------------------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 ~
Slipknight
Loyal fan
Posts: 423
Joined: Thu Apr 07, 2005 7:53 pm

Post by Slipknight »

snoopy81 wrote: void CGame::SetAngelFlag(short sOwnerH, char cOwnerType, int iStatus, iTemp)
, iTemp)

typo? should be void CGame::SetAngelFlag(short sOwnerH, char cOwnerType, int iStatus, int iTemp)

Tyvm for your code 8)
<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>
Slipknight
Loyal fan
Posts: 423
Joined: Thu Apr 07, 2005 7:53 pm

Post by Slipknight »

snoopy81 wrote:{ int iStars = (iTemp/3)*(iTemp/5);
 m_pClientList[ sOwnerH ]->m_iStatus = m_pClientList[ sOwnerH ]->m_iStatus | (    iStars   "ShiftLeft" 8);  // THe forum refuses the real C++ code !
Im guessing you meant

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>
Drazz
Regular
Posts: 52
Joined: Mon Dec 08, 2003 4:10 pm
Contact:

Post by Drazz »

Slipknight wrote:
snoopy81 wrote:{ int iStars = (iTemp/3)*(iTemp/5);
  m_pClientList[ sOwnerH ]->m_iStatus = m_pClientList[ sOwnerH ]->m_iStatus | (    iStars  "ShiftLeft" 8);  // THe forum refuses the real C++ code !
Im guessing you meant

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
Im guess he means:

m_pClientList[ sOwnerH ]->m_iStatus = m_pClientList[ sOwnerH ]->m_iStatus | ( iStars << 8);
<img src='http://drazzt.iespana.es/Drazzt/logo2.jpg' border='0' alt='user posted image' />
akytgp
just visiting
Posts: 7
Joined: Fri May 05, 2006 10:10 pm

Post by akytgp »

i have 2 problems
1: cant put 4 Angelic in item3.cgf, only 1 can put
2: when i equip 1 pendant this not have any effect on my char
Any can help me plz?
[51LV3RY]
Regular
Posts: 48
Joined: Mon Aug 16, 2004 5:51 pm

Post by [51LV3RY] »

What's up!? I'm having some kind of problem at the time I want to upgrade pandents. I got all working ok so far ... I did everything as explained by diuuude. Does anybody else have this problem? I can see angels and all that thingy but it doesn't let me upgrade them. Thankz in advance!
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

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.
<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 !
[51LV3RY]
Regular
Posts: 48
Joined: Mon Aug 16, 2004 5:51 pm

Post by [51LV3RY] »

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
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

[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!
Um...the item should be binded to your character.
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>
[51LV3RY]
Regular
Posts: 48
Joined: Mon Aug 16, 2004 5:51 pm

Post by [51LV3RY] »

Thanks for helping but is there any portion of code to avoid being disconnected from server... or do i have to delete the part that checks for stats and stuff?
Drajwer
&lt;3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

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)
Post Reply