[src] Tutelary Angels System

Codes already submitted by people of the forums.
Post Reply
[51LV3RY]
Regular
Posts: 48
Joined: Mon Aug 16, 2004 5:51 pm

Post by [51LV3RY] »

Yeah but I don't seem to find that portion of code which checks for stats :(

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!
akytgp
just visiting
Posts: 7
Joined: Fri May 05, 2006 10:10 pm

Post by akytgp »

diuuude you can upload your source. i cant do to work that code.
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

no i cannot upload my sources cuz i'm currently working on new features that won't be released to public :

- Friends List
- Tailoring (New Skill)
- New special items (Like Shetar's... Mana Increase, Health Increase, Auto Magic Casting...)
<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 !
akytgp
just visiting
Posts: 7
Joined: Fri May 05, 2006 10:10 pm

Post by akytgp »

mmmm ok. 1 question i declare 4 pendant in "item3.cfg" but i cant host my server but i have 1 error with this cfg and when i use your source i not see any effect on mis stat i see the pendant but not have any effect can help me?
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.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)
can someone help me i just got 1 error only pls help :(
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

m_cMsgCount is not declared in CClient Class... take a look at your client.h file
<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 !
akytgp
just visiting
Posts: 7
Joined: Fri May 05, 2006 10:10 pm

Post by akytgp »

Any can upload source with PTA working plz. i cant do work it.
Dshaked
&lt;3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

Downlaod 3.02 hg, in it working angels, and add things to 3.51 client, and you are ready.
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>
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

diuuude wrote:
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...
Yeah true that...for some reason did not work... :unsure:
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 »

diuuude wrote: m_cMsgCount is not declared in CClient Class... take a look at your client.h file
Thanks it working now .. B) :rolleyes: :)
akytgp
just visiting
Posts: 7
Joined: Fri May 05, 2006 10:10 pm

Post by akytgp »

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'>Image</a>

BlueChristmas
Loyal fan
Posts: 216
Joined: Wed Apr 19, 2006 12:19 am

Post by BlueChristmas »

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'>Image</a>
you don't declare them in item3.cfg...
<img src='http://img114.imageshack.us/img114/8618 ... 2dy3lx.jpg' border='0' alt='user posted image' />
akytgp
just visiting
Posts: 7
Joined: Fri May 05, 2006 10:10 pm

Post by akytgp »

and whre declare?
and im not have incremented my str why?
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

locobans wrote:
diuuude wrote:
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.
PTA wont be upgradable anymore...
Yeah true that...for some reason did not work... :unsure:
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 !
<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 !
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Snoopy...I quoted this off you...
void 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;
  } } }
I added it...and here it how it was my DlgBoxClick_ItemUpgrade
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();
  }
..............
You said below...I added it after it and also before it and no succes...still showing the normal formula on client...
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>
Post Reply