[src] Tutelary Angels System

Codes already submitted by people of the forums.
Post Reply
Maxis
Regular
Posts: 51
Joined: Tue Apr 04, 2006 4:47 pm

Post by Maxis »

nice is work 100% I upgarde AngelicPandent and I have AngelicPandet(STR)+48? lol
Dshaked
<3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

I think you added coded twice or more, I added it twice and then i had angelicpandent +21, but I repaired it.
Old Helbreath Nemesis Player<br><img src='http://img232.imageshack.us/img232/9784/dshakedqc5.jpg' border='0' alt='user posted image' /><br><img src='http://img232.imageshack.us/img232/6475 ... barqj0.jpg' border='0' alt='user posted image' /><br><a href='index.php?showtopic=7107&hl=' target='_blank'>MainServer Hexing Tutorial</a><br><a href='index.php?showtopic=7663&hl=x-mas' target='_blank'>My Files</a>
ADDKiD
&lt;3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

I find diuuude to be a very helpful man, but a confusing one to follow. Oh well, me and my noobish self are just fine with that. If I don't get it, I shouldn't even be trying. I can't even make a window in C++. Pathetic huh?

Loco your right it should be added upon there. I have a noobish question, but i'm going to be flamed for it. Why not just post a compiled version? Makes it easier. but who cares, not me. So this allows Angels to have a max level and to be upgraded, will it allow them to give more stats upon upgrading to the next level? Like, if they are level 1, and I upgraded them, will it give me instead of +10 stats +20? or so on and so on?
carlewi
noob
Posts: 15
Joined: Sat May 20, 2006 11:15 am

Post by carlewi »

someone can post the HG and Client with this source working 100%? pls :P
Jensen
Loyal fan
Posts: 300
Joined: Tue Aug 02, 2005 7:40 am
Location: Illinois, USA
Contact:

Post by Jensen »

carlewi wrote: someone can post the HG and Client with this source working 100%? pls :P
its in the 3.81 client source, as for server the 3.02 might have it, dunno.

if not you only need to add half
-><-
ADDKiD
&lt;3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

Alrighty, Time to post mi errors...

--------------------Configuration: HGserver - Win32 Debug--------------------
Compiling resources...
Compiling...
BuildItem.cpp
Client.cpp
DelayEvent.cpp
DynamicObject.cpp
Fish.cpp
Game.cpp
c:\documents and settings\xtreme\desktop\hbx v2.24b sources\2.24b sources\game.cpp(1107) : warning C4101: 'dwTime' : unreferenced local variable
c:\documents and settings\xtreme\desktop\hbx v2.24b sources\2.24b sources\game.cpp(2109) : warning C4305: '=' : truncation from 'const int' to 'char'
c:\documents and settings\xtreme\desktop\hbx v2.24b sources\2.24b sources\game.cpp(2109) : warning C4309: '=' : truncation of constant value
c:\documents and settings\xtreme\desktop\hbx v2.24b sources\2.24b sources\game.cpp(8844) : warning C4305: '=' : truncation from 'const int' to 'short'
c:\documents and settings\xtreme\desktop\hbx v2.24b sources\2.24b sources\game.cpp(8844) : warning C4309: '=' : truncation of constant value
c:\documents and settings\xtreme\desktop\hbx v2.24b sources\2.24b sources\game.cpp(52573) : error C2143: syntax error : missing ';' before 'case'
c:\documents and settings\xtreme\desktop\hbx v2.24b sources\2.24b sources\game.cpp(52573) : error C2143: syntax error : missing ';' before 'case'
c:\documents and settings\xtreme\desktop\hbx v2.24b sources\2.24b sources\game.cpp(52574) : error C2143: syntax error : missing ';' before 'switch'
c:\documents and settings\xtreme\desktop\hbx v2.24b sources\2.24b sources\game.cpp(52574) : error C2143: syntax error : missing ';' before '{'
c:\documents and settings\xtreme\desktop\hbx v2.24b sources\2.24b sources\game.cpp(52574) : error C2447: missing function header (old-style formal list?)
c:\documents and settings\xtreme\desktop\hbx v2.24b sources\2.24b sources\game.cpp(52654) : error C2143: syntax error : missing ';' before 'break'
c:\documents and settings\xtreme\desktop\hbx v2.24b sources\2.24b sources\game.cpp(52656) : error C2447: missing function header (old-style formal list?)
GuildsMan.cpp
Item.cpp
Magic.cpp
Map.cpp
Mineral.cpp
Misc.cpp
Msg.cpp
Npc.cpp
OccupyFlag.cpp
Portion.cpp
Quest.cpp
Skill.cpp
StrategicPoint.cpp
StrTok.cpp
Teleport.cpp
TeleportLoc.cpp
TempNpcItem.cpp
Tile.cpp
wmain.cpp
XSocket.cpp
DebugDialog.cpp
C:\Documents and Settings\Xtreme\Desktop\HBX v2.24b Sources\2.24b Sources\DebugDialog.cpp(85) : warning C4018: '<' : signed/unsigned mismatch
C:\Documents and Settings\Xtreme\Desktop\HBX v2.24b Sources\2.24b Sources\DebugDialog.cpp(88) : warning C4018: '<' : signed/unsigned mismatch
C:\Documents and Settings\Xtreme\Desktop\HBX v2.24b Sources\2.24b Sources\DebugDialog.cpp(97) : warning C4018: '<' : signed/unsigned mismatch
Error executing cl.exe.

HGserver.exe - 7 error(s), 8 warning(s)
BlueChristmas
Loyal fan
Posts: 216
Joined: Wed Apr 19, 2006 12:19 am

Post by BlueChristmas »

ADDKiD wrote: Alrighty, Time to post mi errors...

--------------------Configuration: HGserver - Win32 Debug--------------------
Compiling resources...
Compiling...
BuildItem.cpp
Client.cpp
DelayEvent.cpp
DynamicObject.cpp
Fish.cpp
Game.cpp
c:\documents and settings\xtreme\desktop\hbx v2.24b sources\2.24b sources\game.cpp(1107) : warning C4101: 'dwTime' : unreferenced local variable
c:\documents and settings\xtreme\desktop\hbx v2.24b sources\2.24b sources\game.cpp(2109) : warning C4305: '=' : truncation from 'const int' to 'char'
c:\documents and settings\xtreme\desktop\hbx v2.24b sources\2.24b sources\game.cpp(2109) : warning C4309: '=' : truncation of constant value
c:\documents and settings\xtreme\desktop\hbx v2.24b sources\2.24b sources\game.cpp(8844) : warning C4305: '=' : truncation from 'const int' to 'short'
c:\documents and settings\xtreme\desktop\hbx v2.24b sources\2.24b sources\game.cpp(8844) : warning C4309: '=' : truncation of constant value
c:\documents and settings\xtreme\desktop\hbx v2.24b sources\2.24b sources\game.cpp(52573) : error C2143: syntax error : missing ';' before 'case'
c:\documents and settings\xtreme\desktop\hbx v2.24b sources\2.24b sources\game.cpp(52573) : error C2143: syntax error : missing ';' before 'case'
c:\documents and settings\xtreme\desktop\hbx v2.24b sources\2.24b sources\game.cpp(52574) : error C2143: syntax error : missing ';' before 'switch'
c:\documents and settings\xtreme\desktop\hbx v2.24b sources\2.24b sources\game.cpp(52574) : error C2143: syntax error : missing ';' before '{'
c:\documents and settings\xtreme\desktop\hbx v2.24b sources\2.24b sources\game.cpp(52574) : error C2447: missing function header (old-style formal list?)
c:\documents and settings\xtreme\desktop\hbx v2.24b sources\2.24b sources\game.cpp(52654) : error C2143: syntax error : missing ';' before 'break'
c:\documents and settings\xtreme\desktop\hbx v2.24b sources\2.24b sources\game.cpp(52656) : error C2447: missing function header (old-style formal list?)
GuildsMan.cpp
Item.cpp
Magic.cpp
Map.cpp
Mineral.cpp
Misc.cpp
Msg.cpp
Npc.cpp
OccupyFlag.cpp
Portion.cpp
Quest.cpp
Skill.cpp
StrategicPoint.cpp
StrTok.cpp
Teleport.cpp
TeleportLoc.cpp
TempNpcItem.cpp
Tile.cpp
wmain.cpp
XSocket.cpp
DebugDialog.cpp
C:\Documents and Settings\Xtreme\Desktop\HBX v2.24b Sources\2.24b Sources\DebugDialog.cpp(85) : warning C4018: '<' : signed/unsigned mismatch
C:\Documents and Settings\Xtreme\Desktop\HBX v2.24b Sources\2.24b Sources\DebugDialog.cpp(88) : warning C4018: '<' : signed/unsigned mismatch
C:\Documents and Settings\Xtreme\Desktop\HBX v2.24b Sources\2.24b Sources\DebugDialog.cpp(97) : warning C4018: '<' : signed/unsigned mismatch
Error executing cl.exe.

HGserver.exe - 7 error(s), 8 warning(s)
look at the lines and add in the ';' and for the others you need to make bigger variables
<img src='http://img114.imageshack.us/img114/8618 ... 2dy3lx.jpg' border='0' alt='user posted image' />
ADDKiD
&lt;3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

AcidX said I need to do something else aswell... twtablet or something like that. I just don't get it o.o
carlewi
noob
Posts: 15
Joined: Sat May 20, 2006 11:15 am

Post by carlewi »

Dont know where to put

Code: Select all

_________________________________________________________________________
void CGame::ItemEquipHandler(char cItemID)
Adjust for Weight, and add near the end:
// Add Angelic Stats
if (   (m_pItemList[cItemID]->m_cItemType == 1)
 && (m_pItemList[cItemID]->m_cEquipPos >= 11))
{ int iAngelValue = 0;
 if(memcmp(m_pItemList[cItemID]->m_cName, "AngelicPandent(STR)", 19) == 0)
 { iAngelValue = (m_pItemList[cItemID]->m_dwAttribute & 0xF0000000) >> 28;
  m_iAngelicStr = 1 + iAngelValue;
 }else if(memcmp(m_pItemList[cItemID]->m_cName, "AngelicPandent(DEX)", 19) == 0)
 { iAngelValue = (m_pItemList[cItemID]->m_dwAttribute & 0xF0000000) >> 28;
  m_iAngelicDex = 1 + iAngelValue;
 }else if(memcmp(m_pItemList[cItemID]->m_cName, "AngelicPandent(INT)", 19) == 0)
 { iAngelValue = (m_pItemList[cItemID]->m_dwAttribute & 0xF0000000) >> 28;
  m_iAngelicInt = 1 + iAngelValue;
 }else if(memcmp(m_pItemList[cItemID]->m_cName, "AngelicPandent(MAG)", 19) == 0)
 { iAngelValue = (m_pItemList[cItemID]->m_dwAttribute & 0xF0000000) >> 28;
  m_iAngelicMag = 1 + iAngelValue;
}


_________________________________________________________________________



gives those errors..

Code: Select all

D:\Nuevo HB Defiance\Sources\Client(bueno)\Game.cpp(40972) : error C2601: 'CheckActiveAura' : local function definitions are illegal
D:\Nuevo HB Defiance\Sources\Client(bueno)\Game.cpp(41025) : error C2601: 'CheckActiveAura2' : local function definitions are illegal
D:\Nuevo HB Defiance\Sources\Client(bueno)\Game.cpp(41033) : error C2601: 'DrawDialogBox_ChangeStatsMajestic' : local function definitions are illegal
D:\Nuevo HB Defiance\Sources\Client(bueno)\Game.cpp(41160) : error C2601: 'DlgBoxClick_ChangeStatsMajestic' : local function definitions are illegal
D:\Nuevo HB Defiance\Sources\Client(bueno)\Game.cpp(41426) : error C2601: 'bHasHeroSet' : local function definitions are illegal
D:\Nuevo HB Defiance\Sources\Client(bueno)\Game.cpp(41456) : error C2601: 'ShowHeldenianVictory' : local function definitions are illegal
D:\Nuevo HB Defiance\Sources\Client(bueno)\Game.cpp(41529) : error C2601: 'DrawDialogBox_Resurect' : local function definitions are illegal
D:\Nuevo HB Defiance\Sources\Client(bueno)\Game.cpp(41553) : error C2601: 'DlgBoxClick_Resurect' : local function definitions are illegal
D:\Nuevo HB Defiance\Sources\Client(bueno)\Game.cpp(41574) : error C2601: 'ResponseHeldenianTeleportList' : local function definitions are illegal
D:\Nuevo HB Defiance\Sources\Client(bueno)\Game.cpp(41607) : error C2601: 'DrawDialogBox_CMDHallMenu' : local function definitions are illegal
D:\Nuevo HB Defiance\Sources\Client(bueno)\Game.cpp(41750) : error C2601: 'DlgBoxClick_CMDHallMenu' : local function definitions are illegal
D:\Nuevo HB Defiance\Sources\Client(bueno)\Game.cpp(41864) : error C2601: 'DKGlare' : local function definitions are illegal
D:\Nuevo HB Defiance\Sources\Client(bueno)\Game.cpp(41878) : error C2601: 'DrawDruncncity' : local function definitions are illegal
D:\Nuevo HB Defiance\Sources\Client(bueno)\Game.cpp(42140) : error C2601: 'Abaddon_corpse' : local function definitions are illegal
D:\Nuevo HB Defiance\Sources\Client(bueno)\Game.cpp(42177) : error C2601: 'DebugLog' : local function definitions are illegal
D:\Nuevo HB Defiance\Sources\Client(bueno)\Game.cpp(42190) : fatal error C1004: unexpected end of file found
Some one can post this fuction with this added?
___________________________________________________

My client dont initialice!!! i added all features of snoopy and Diuude, and 0 erros, but dont initialize!!

Spanish:
Mi cliente no se inicia, le doi para meterme y no ace nada, le meti todas las cosas de snoopy y diuude, y no va! ayuda pleaese
Please, HELP!!
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

heh r u idiot

Code: Select all

_________________________________________________________________________
void CGame::ItemEquipHandler(char cItemID)
Adjust for Weight, and add near the end:
// Add Angelic Stats
if (   (m_pItemList[cItemID]->m_cItemType == 1)
&& (m_pItemList[cItemID]->m_cEquipPos >= 11))
{ int iAngelValue = 0;
if(memcmp(m_pItemList[cItemID]->m_cName, "AngelicPandent(STR)", 19) == 0)
{ iAngelValue = (m_pItemList[cItemID]->m_dwAttribute & 0xF0000000) >> 28;
 m_iAngelicStr = 1 + iAngelValue;
}else if(memcmp(m_pItemList[cItemID]->m_cName, "AngelicPandent(DEX)", 19) == 0)
{ iAngelValue = (m_pItemList[cItemID]->m_dwAttribute & 0xF0000000) >> 28;
 m_iAngelicDex = 1 + iAngelValue;
}else if(memcmp(m_pItemList[cItemID]->m_cName, "AngelicPandent(INT)", 19) == 0)
{ iAngelValue = (m_pItemList[cItemID]->m_dwAttribute & 0xF0000000) >> 28;
 m_iAngelicInt = 1 + iAngelValue;
}else if(memcmp(m_pItemList[cItemID]->m_cName, "AngelicPandent(MAG)", 19) == 0)
{ iAngelValue = (m_pItemList[cItemID]->m_dwAttribute & 0xF0000000) >> 28;
 m_iAngelicMag = 1 + iAngelValue;
}
Read it ffss

there is a line ___________________ in source, there is some message.

He meant, FIND THE FUNCTION, THen ADD THIS

Code: Select all

if (   (m_pItemList[cItemID]->m_cItemType == 1)
&& (m_pItemList[cItemID]->m_cEquipPos >= 11))
{ int iAngelValue = 0;
if(memcmp(m_pItemList[cItemID]->m_cName, "AngelicPandent(STR)", 19) == 0)
{ iAngelValue = (m_pItemList[cItemID]->m_dwAttribute & 0xF0000000) >> 28;
 m_iAngelicStr = 1 + iAngelValue;
}else if(memcmp(m_pItemList[cItemID]->m_cName, "AngelicPandent(DEX)", 19) == 0)
{ iAngelValue = (m_pItemList[cItemID]->m_dwAttribute & 0xF0000000) >> 28;
 m_iAngelicDex = 1 + iAngelValue;
}else if(memcmp(m_pItemList[cItemID]->m_cName, "AngelicPandent(INT)", 19) == 0)
{ iAngelValue = (m_pItemList[cItemID]->m_dwAttribute & 0xF0000000) >> 28;
 m_iAngelicInt = 1 + iAngelValue;
}else if(memcmp(m_pItemList[cItemID]->m_cName, "AngelicPandent(MAG)", 19) == 0)
{ iAngelValue = (m_pItemList[cItemID]->m_dwAttribute & 0xF0000000) >> 28;
 m_iAngelicMag = 1 + iAngelValue;
} 
near to the end.
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
carlewi
noob
Posts: 15
Joined: Sat May 20, 2006 11:15 am

Post by carlewi »

--------->LOL<---------, i know this,,, but if i add this, it gives those errors, lol, im not idiot -.-
choymin
noob
Posts: 23
Joined: Tue Apr 06, 2004 2:34 am

Post by choymin »

erro

\Source\HGServer - Source\Game.cpp(10116) : error C2039: 'm_cMsgCount' : is not a member of 'CClient'

how can i fix this 'm_cMsgCount'
ADDKiD
&lt;3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

Ok, so basically, why don't you go download some server files such as Silvery's 2.24c files, and Silvery's client. They already have a bunch of shit fixed angels added and all. You'll run into a few bugs, but they work. -.- Angels are OLD news. I add them with 0 errors/warnings. I dunno what your problem is...
Charles
Loyal fan
Posts: 418
Joined: Wed Nov 26, 2003 8:20 pm

Post by Charles »

choymin wrote: erro

\Source\HGServer - Source\Game.cpp(10116) : error C2039: 'm_cMsgCount' : is not a member of 'CClient'

how can i fix this 'm_cMsgCount'
add

Code: Select all

BOOL m_cMsgCount;
to client.h
<i>"Always write good code. Feel bad to write bad code."</i>
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

Charles wrote:
choymin wrote: erro

\Source\HGServer - Source\Game.cpp(10116) : error C2039: 'm_cMsgCount' : is not a member of 'CClient'

how can i fix this 'm_cMsgCount'
add

Code: Select all

BOOL m_cMsgCount;
to client.h
If the person who added m_cMsgCount was using the proper notation, it'd be a char. A BOOL is used for TRUE/FALSE not counting although BOOL be default is a long.
<img src='http://www.helbreathx.net/sig/sig.jpeg' border='0' alt='user posted image' /><br><a href='http://mafia.cheats4us.org/index.php?x=231030' target='_blank'>#1 on Mafia :D</a><br><!--QuoteBegin-Slipknight+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Slipknight)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->100mb Internet, burstable too 10GB oc192<br>his speed can go up too 10gbs<br>...<br>Yes my car can have a top speed of 1000mph<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>^^ I wonder where the retard went to.
Post Reply