[src] Tutelary Angels System

Codes already submitted by people of the forums.
Post Reply
snoopy81
Loyal fan
Posts: 338
Joined: Mon Jul 12, 2004 7:13 pm

Post by snoopy81 »

here it's before, so useless...
Let's use DebugLog("tag X"); function to trace you tests.
Maybe the item definition is wrong ?
_\_ _<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 »

diuuude wrote:
locobans wrote:
diuuude wrote: 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 !
You know that's what I did lolz but first time did not work...then did it again, think did something else don't remember but got it to work the 2nd time...

Now that I think off...I did had it working just when it failed I thought it was cause couldn't and was cause the 70% only to succes.

And snoopy81 I have my items def ok so I'll have a lil fight with it till I get it fixed it don't worry.

Thanks :)
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] »

Any idea of how to make that when I release Pandents (ie. AngelicPandent(STR) it also checks for items (ie. Devastator Req. 210 STR) and realeases it too, since the STR went back to 200.
[51LV3RY]
Regular
Posts: 48
Joined: Mon Aug 16, 2004 5:51 pm

Post by [51LV3RY] »

I'm having problems with Gail. It seems to me there is a problem at the time of creating the items (ie. AngelicPandents, Scroll, Flag) 'cause I'm allowed to click on the items and I get the message for example " Player received tutelary angel" but I never receive the item (it's not being created). If any idea feel free to post it :D
Dshaked
&lt;3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

Im never tested received angel of gail.
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>
[51LV3RY]
Regular
Posts: 48
Joined: Mon Aug 16, 2004 5:51 pm

Post by [51LV3RY] »

I got it all working except for those 2 things... Waiting for sum1 to give me an idea... meanwhile I'm working on Crafting ZzZZ
Dshaked
&lt;3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

cEquipPos undeclared identifier, can someone tell how i repair this plz :)?

Ups i repaired it myself x >
BOOL _cEquipPosOnHand();
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>
Dshaked
&lt;3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

I added the code, and now client is fucked up. :S omg
// Add Angelic Stats
if (  (m_pItemList->m_cItemType == 1)
  && (m_bIsItemEquipped == TRUE)
  && (m_pItemList->m_cEquipPos >= 11))
{ if(memcmp(m_pItemList->m_cName, "AngelicPandent(STR)", 19) == 0)
  { iAngelValue = (m_pItemList->m_dwAttribute & 0xF0000000) >> 28;
  m_iAngelicStr = 1 + iAngelValue;
  }else if(memcmp(m_pItemList->m_cName, "AngelicPandent(DEX)", 19) == 0)
  { iAngelValue = (m_pItemList->m_dwAttribute & 0xF0000000) >> 28;
  m_iAngelicDex = 1 + iAngelValue;
  }else if(memcmp(m_pItemList->m_cName, "AngelicPandent(INT)", 19) == 0)
  { iAngelValue = (m_pItemList->m_dwAttribute & 0xF0000000) >> 28;
  m_iAngelicInt = 1 + iAngelValue;
  }else if(memcmp(m_pItemList->m_cName, "AngelicPandent(MAG)", 19) == 0)
  { iAngelValue = (m_pItemList[i]->m_dwAttribute & 0xF0000000) >> 28;
  m_iAngelicMag = 1 + iAngelValue;
} } }

Where i add this code? it fucked my client one time.

I Deleted this thing, and i can log in game, and lol look:
<a href='http://img208.imageshack.us/my.php?imag ... inesho.jpg' target='_blank'>http://img208.imageshack.us/my.php?imag ... sho.jpg</a>

And then i cant equip any armors, i can unequip only another angel.
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>
Drajwer
&lt;3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

plz stop annoying us
<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)
BlueChristmas
Loyal fan
Posts: 216
Joined: Wed Apr 19, 2006 12:19 am

Post by BlueChristmas »

Drajwer wrote: plz stop annoying us
i was going to say the same thing
<img src='http://img114.imageshack.us/img114/8618 ... 2dy3lx.jpg' border='0' alt='user posted image' />
€M4NU€L
Outpost bitch
Posts: 517
Joined: Sat Nov 19, 2005 9:07 pm
Location: I watch gay porn
Contact:

Post by €M4NU€L »

Dshaked wrote: I added the code, and now client is fucked up. :S omg
// Add Angelic Stats
if (   (m_pItemList->m_cItemType == 1)
  && (m_bIsItemEquipped == TRUE)
  && (m_pItemList->m_cEquipPos >= 11))
{ if(memcmp(m_pItemList->m_cName, "AngelicPandent(STR)", 19) == 0)
  { iAngelValue = (m_pItemList->m_dwAttribute & 0xF0000000) >> 28;
   m_iAngelicStr = 1 + iAngelValue;
  }else if(memcmp(m_pItemList->m_cName, "AngelicPandent(DEX)", 19) == 0)
  { iAngelValue = (m_pItemList->m_dwAttribute & 0xF0000000) >> 28;
   m_iAngelicDex = 1 + iAngelValue;
  }else if(memcmp(m_pItemList->m_cName, "AngelicPandent(INT)", 19) == 0)
  { iAngelValue = (m_pItemList->m_dwAttribute & 0xF0000000) >> 28;
   m_iAngelicInt = 1 + iAngelValue;
  }else if(memcmp(m_pItemList->m_cName, "AngelicPandent(MAG)", 19) == 0)
  { iAngelValue = (m_pItemList[i]->m_dwAttribute & 0xF0000000) >> 28;
   m_iAngelicMag = 1 + iAngelValue;
} } }

Where i add this code? it fucked my client one time.

I Deleted this thing, and i can log in game, and lol look:
<a href='http://img208.imageshack.us/my.php?imag ... inesho.jpg' target='_blank'>http://img208.imageshack.us/my.php?imag ... sho.jpg</a>

And then i cant equip any armors, i can unequip only another angel.

Silvery fixed them...
<span style='color:blue'>Helbreath Thermal</span> <span style='color:green'>BETA</span> <span style='color:red'>Soon</span>:<br><br>www.youporngay.com<br><br><img src='http://img264.imageshack.us/img264/1041 ... piopk7.jpg' border='0' alt='user posted image' /><br><img src='http://img257.imageshack.us/img257/3762 ... eakxj1.jpg' border='0' alt='user posted image' /><br><img src='http://arthur.crepin.free.fr/images/use ... mpsons.png' border='0' alt='user posted image' /><br><img src='http://img329.imageshack.us/img329/5797/pesgamerrr3.gif' border='0' alt='user posted image' /><br><br><u><b>BLACK GAY LIST:</b></u><br><br><span style='color:red'>€M4NU€L</span>:<br>I look like a girl and he's always complaining someone.
sokol
Loyal fan
Posts: 228
Joined: Mon May 02, 2005 7:28 pm
Location: P(r)oland

Post by sokol »

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>
upgrade it and when u get it +1 its +1str max can be +10 so if u upgrade it to +10 u get +10 str ;)
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

The angel thingy should also be added in function DrawDialogBox_ItemUpgrade that was my mistake snoopy.
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>
marleythe9
Loyal fan
Posts: 391
Joined: Sat Mar 26, 2005 12:41 am

Post by marleythe9 »

snooopy you added one to many ends
(Client CODE)
  // Add Angelic Stats
if ((m_pItemList->m_cItemType == 1)&& (m_bIsItemEquipped == TRUE)&& (m_pItemList->m_cEquipPos >= 11))
{
if(memcmp(m_pItemList->m_cName, "AngelicPandent(STR)", 19) == 0)
  {
iAngelValue = (m_pItemList->m_dwAttribute & 0xF0000000) >> 28;
  m_iAngelicStr = 1 + iAngelValue;
  }
else if(memcmp(m_pItemList->m_cName, "AngelicPandent(DEX)", 19) == 0)
  {
iAngelValue = (m_pItemList->m_dwAttribute & 0xF0000000) >> 28;
  m_iAngelicDex = 1 + iAngelValue;
  }
else if(memcmp(m_pItemList->m_cName, "AngelicPandent(INT)", 19) == 0)
  {
iAngelValue = (m_pItemList->m_dwAttribute & 0xF0000000) >> 28;
  m_iAngelicInt = 1 + iAngelValue;
  }
else if(memcmp(m_pItemList->m_cName, "AngelicPandent(MAG)", 19) == 0)
  {
iAngelValue = (m_pItemList[i]->m_dwAttribute & 0xF0000000) >> 28;
  m_iAngelicMag = 1 + iAngelValue;
}
}
//}

i guess was accedent copy ;)
that got rid of about 60 errors tho lol
kk and for the other errors ;) u missed a } close on this
// 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;
}
}//new close

and u confused me here too, snoopy. could give an example or something?
And finally the bigger Game.cpp part:
Search for all m_iStr, m_iInt, m_iDex, m_iMag
Some of them a used to send to the client, or logserver, don't touch those.
Many of them have in game effect. I all those cases add corresponding Angelic value:
ie, in:
void CGame::CheckClientResponseTime()
(Activables items delays & resur spell)
BOOL CGame::bEquipItemHandler(..)
(item weight, wearing conditions, speed....)
void CGame::PlayerMagicHandler(..)
( casting proba, Spell strengh)
void CGame::RequestStudyMagicHandler(..)
(Buying spells)
BOOL CGame::bCheckMagicInt(..)
(removing spells)
int CGame::_iCalcMaxLoad(..)
void CGame::CalculateSSN_SkillIndex(..)
void CGame::CalculateSSN_ItemIndex(..)
void CGame::Effect_Damage_Spot(..)
void CGame::Effect_Damage_Spot_DamageMove(..)
BOOL CGame::bCheckResistingMagicSuccess(..)
void CGame::CalcTotalItemEffect(..)
(Maybe is special item conditions set)
int CGame::iGetMaxHP(.. / MP /SP
int CGame::iCalculateAttackEffect(..)
(Obvious !)
BOOL CGame::_bCheckCharacterData(..)
And maybe some more places depending on your server...

(ON THE HG)
snoopy missed int before iTemp, and make sure u decleare ;)
SetAngelFlag(short sOwnerH, char cOwnerType, int iStatus,int iTemp)

and in that function the "," on this line
m_pClientList[ sOwnerH ]->m_iStatus = m_pClientList[ sOwnerH ]->m_iStatus | (iStars, "ShiftLeft", 8);  // THe forum refuses the real C++ code !

but i guess he did leave u tip ;)


and if any one knows how to do the "m_cMsgCount" in CClient class, becouse i dont :(... becouse he uses [] for all the skills... i guess..
<img src='http://freewebs.com/trickro/70s.png' border='0' alt='user posted image' /><img src='http://freewebs.com/trickro/70s2.jpg' border='0' alt='user posted image' />
Dshaked
&lt;3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

This angel system works 100%, dont speak bullshit plz.
Code is 100% right.
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>
Post Reply