Hp steal don't work
#1

Hey guys, anyone can help me to fix an Hp steal? The animation work normally, but don't steal hp of monster. Thanks for attention.

#2

assist.cpp gameserver folder

#3

Thx for answer, Rondo! But, in what line i can fix the bug?

#4

Does your code look like this around line 1271 in Assist.cpp?



 


        case 2357:



        case 2842:



        case 6597:



            addition->hcHPSteelPotion = true;



            bSkip = true;



            break;   


#5


35 minutes ago, MrKarma said:




Does your code look like this around line 1271 in Assist.cpp?



 




        case 2357:



        case 2842:



        case 6597:



            addition->hcHPSteelPotion = true;



            bSkip = true;



            break;   




Yeah! Exactly the same! 

#6

Maybe have a look at this thread, could be a similar problem

2

 

#7

somtimes its possible that the hp steal code is in the wrong position or a break; keyword is used where it shouldn't be this usually will throw off other statements below it.



 

assist.cpp mine looks like this
case 2358:
addition->hcCashPetExpUp_2358 = true;
bSkip = true;
break; // Æê °æÇèÀÇ ¹¦¾à
case 2359:
addition->hcCashPetExpUp_2359 = true;
bSkip = true;
break; // Ç÷¡Æ¼´½ Æê °æÇèÀÇ ¹¦¾à
case 2356:
case 2841:
case 6596:
addition->hcMPSteelPotion = true;
bSkip = true;
break; // ÀÏ¹Ý °ø°Ý½Ã 30%ÀÇ Max MP Áß 10% °¨¼Ò µÇ°í ³ªÀÇ MP Áõ°¡
case 2357:
case 2842:
case 6597:
addition->hcHPSteelPotion = true;
bSkip = true;
break;

if for example you see break statement somewhere different it can effect the cases working for that condition. Where you see a break statement  the group of item id's would apply whatever was leading up to a break. Otherwise it will continue down the item id list until a break is found. grouping items together can be used like this .

 

#8

i posted the fix for that a month ago, just need to search into the forum ?

#9


On 6/24/2021 at 7:23 AM, Scura said:




i posted the fix for that a month ago, just need to search into the forum ?




U have the link? Maybe the problem is my t_magic...



Forum Jump:


Users browsing this thread: 1 Guest(s)