LCKB
Hp steal don't work - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193)
+---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157)
+----- Forum: Ep4 Support (https://lckb.dev/forum/forumdisplay.php?fid=128)
+----- Thread: Hp steal don't work (/showthread.php?tid=4783)



- marbele - 06-20-2021


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.




- rondo157 - 06-20-2021


assist.cpp gameserver folder




- marbele - 06-20-2021


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




- MrKarma - 06-21-2021


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



 


        case 2357:



        case 2842:



        case 6597:



            addition->hcHPSteelPotion = true;



            bSkip = true;



            break;   





- marbele - 06-21-2021



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! 




- Desarija - 06-21-2021


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

2

 




- dethunter12 - 06-21-2021


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 .

 




- Scura - 06-24-2021


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




- cristiangramosa - 06-30-2021



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...