Armor Break Bug

All Helbreath Server Source Discussion here.
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

marleythe9 wrote:

Code: Select all

ReleaseItemHandler(iTargetH, iTemp, TRUE);
thats what releases the armor right???...

soo i replace that with this??

Code: Select all

ReleaseItemHandler(sTargetH, iArmorType, TRUE);
  SendNotifyMsg(NULL, sTargetH, DEF_NOTIFY_ITEMRELEASED, m_pClientList[sTargetH]->m_pItemList[iArmorType]->m_cEquipPos, iArmorType, NULL, NULL);
Try it out. You all ask too many questions. Try doing something, see if it works, then ask for help if it doesn't. If that works then that's one post you didn't have to make, and that much time you didn't have to waste waiting for a reply and the time of others to read that post thereby saving everyone some time.
<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.
Slipknight
Loyal fan
Posts: 423
Joined: Thu Apr 07, 2005 7:53 pm

Post by Slipknight »

You gotta make it check each equip POS and do a number of things for each equip POS for myne and release it also.

If you start getting close I tell you.

and for what you said marleythe9

Code: Select all

ReleaseItemHandler(sTargetH, iArmorType, TRUE);
 SendNotifyMsg(NULL, sTargetH, DEF_NOTIFY_ITEMRELEASED, m_pClientList[sTargetH]->m_pItemList[iArmorType]->m_cEquipPos, iArmorType, NULL, NULL);

Thats close too how you want too strip it but you want about 5 of these for each equip POS and each time it much specify which equip POS.
<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>
blackfury
noob
Posts: 29
Joined: Wed Oct 27, 2004 9:13 pm

Post by blackfury »

that sendnotifymsg () shouldn't be needed, because ReleaseItemHandler already has that in it, you'll be notifieng for a second time ... 0.o
marleythe9
Loyal fan
Posts: 391
Joined: Sat Mar 26, 2005 12:41 am

Post by marleythe9 »

kk ill try it ;).. tommorrow :) i posted befor trying it becouse i was on a computer that couldnt compile the C++ :(... i was just checking see if all was right :)
<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' />
Slipknight
Loyal fan
Posts: 423
Joined: Thu Apr 07, 2005 7:53 pm

Post by Slipknight »

blackfury wrote: that sendnotifymsg () shouldn't be needed, because ReleaseItemHandler already has that in it, you'll be notifieng for a second time ... 0.o
Actually you will need the notify.
<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>
marleythe9
Loyal fan
Posts: 391
Joined: Sat Mar 26, 2005 12:41 am

Post by marleythe9 »

soo realy im replaceing all the

Code: Select all

  	SendNotifyMsg(NULL, iTargetH, DEF_NOTIFY_ITEMLIFESPANEND, m_pClientList[iTargetH]->m_pItemList[iTemp]->m_cEquipPos, iTemp, NULL, NULL);
  	//    .
  	ReleaseItemHandler(iTargetH, iTemp, TRUE);  // <-      
with your code... that right?... :) im trying it right now :)... but just makeing sure.. cuz takes longer to test then it dose to post ;)

err didnt work.. i trye dto compile it

says
sTargetH' : undeclared identifier
'iArmorType' : undeclared identifier

(am i supos use locals code?)
<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' />
Slipknight
Loyal fan
Posts: 423
Joined: Thu Apr 07, 2005 7:53 pm

Post by Slipknight »

marleythe9 wrote: soo realy im replaceing all the

Code: Select all

  	SendNotifyMsg(NULL, iTargetH, DEF_NOTIFY_ITEMLIFESPANEND, m_pClientList[iTargetH]->m_pItemList[iTemp]->m_cEquipPos, iTemp, NULL, NULL);
  	//    .
  	ReleaseItemHandler(iTargetH, iTemp, TRUE);  // <-      
with your code... that right?... :) im trying it right now :)... but just makeing sure.. cuz takes longer to test then it dose to post ;)
You had the define right the first time :/
<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>
marleythe9
Loyal fan
Posts: 391
Joined: Sat Mar 26, 2005 12:41 am

Post by marleythe9 »

:9 says sTrageth and iarmor is undifined...

do i add on to the ArmorLifeDecrement and put int sTarget and int iarmor?
<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' />
Slipknight
Loyal fan
Posts: 423
Joined: Thu Apr 07, 2005 7:53 pm

Post by Slipknight »

marleythe9 wrote: :9 says sTrageth and iarmor is undifined...

do i add on to the ArmorLifeDecrement and put int sTarget and int iarmor?
you will need too use sTargetH and if I recall iArmorEndurance (not sure if thats the right int but its close) more than a few times in this void.

PM me what you got so far and I can help abit.
<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>
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

The iTargetH is the client id of the person being attacked while the iTemp is the item# in question about releasing it. If those vars do not exist, then pick the ones that represent them inside the function.
<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.
marleythe9
Loyal fan
Posts: 391
Joined: Sat Mar 26, 2005 12:41 am

Post by marleythe9 »

AHHHHHHHHH! need back up... man down..

(i cant get damn thing work :()

it wont let me add the STargetH and IArmortypH

jeez...... i tryed it every posable way it could go....

:(.... keeps saying

(ArmorLifeDecrement' : function does not take 4 parameters)
<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' />
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

marleythe9 wrote: AHHHHHHHHH! need back up... man down..

(i cant get damn thing work :()

it wont let me add the STargetH and IArmortypH

jeez...... i tryed it every posable way it could go....

:(.... keeps saying

(ArmorLifeDecrement' : function does not take 4 parameters)
void ArmorLifeDecrement(int iAttackerH, int iTargetH, char cOwnerType, int iValue)

iAttackerH being attacker, sTargetH being attackee(victim), cOwnerType being NPC or PLAYER, and iValue being how much it is being lowered by.

How are you calling the function? And in your source, find this line or one similar (try searching for : "CGame::ArmorLifeDecrement")

void CGame::ArmorLifeDecrement(int iAttackerH, int iTargetH, char cOwnerType, int iValue)

^^ is that what yours says?
<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.
Slipknight
Loyal fan
Posts: 423
Joined: Thu Apr 07, 2005 7:53 pm

Post by Slipknight »

bone-you wrote: The iTargetH is the client id of the person being attacked while the iTemp is the item# in question about releasing it. If those vars do not exist, then pick the ones that represent them inside the function.
just looked at my code and he nailed it -_-
<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>
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

Slipknight wrote:
bone-you wrote: The iTargetH is the client id of the person being attacked while the iTemp is the item# in question about releasing it. If those vars do not exist, then pick the ones that represent them inside the function.
just looked at my code and he nailed it -_-
Has nothing to do with your code. I explain the obvious because many people are oblivious to it. *cough* We all know someone like that, don't we?
<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.
Slipknight
Loyal fan
Posts: 423
Joined: Thu Apr 07, 2005 7:53 pm

Post by Slipknight »

Slipknight wrote:
bone-you wrote: The iTargetH is the client id of the person being attacked while the iTemp is the item# in question about releasing it. If those vars do not exist, then pick the ones that represent them inside the function.
just looked at my code and he nailed it -_-
most ppl dont memorize the Ints, voids, and bools I just said that off my head.
<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>
Post Reply