LCKB
MP steal not working - 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: MP steal not working (/showthread.php?tid=4773)



- AliceW - 06-09-2021


Hello all.

I'm having an issue where MP steal is not taking effect at all. when I use it in game and attack anything nothing happens, not with skills or auto attacks

However HP steal works just fine and I don't think there are any issues with the source.

Would anyone be able to help me with what I can try to fix it or be able to have a look at it for me, please?

thanks in advance!.




- Scura - 06-09-2021


In Assist.cpp check if the index is added in the switch case under 



 

void CAssistList::Apply(CCharacter* ch, ASSISTVALUE* addition, ASSISTVALUE* rate, LONGLONG* state)



Check for:

switch (p->m_index)



You should find:

case 2357:
case 2842:
case 6597:
addition->hcHPSteelPotion = true;
bSkip = true;
break;

 




- AliceW - 06-09-2021



3 minutes ago, Scura said:




In Assist.cpp check if the index is added in the switch case under 



 




void CAssistList::Apply(CCharacter* ch, ASSISTVALUE* addition, ASSISTVALUE* rate, LONGLONG* state)




Check for:




switch (p->m_index)




You should find:




case 2357:
case 2842:
case 6597:
addition->hcHPSteelPotion = true;
bSkip = true;
break;


 




Yeah I have it like that. but still doesn't work in game




- Scura - 06-09-2021



4 minutes ago, AliceW said:




Yeah I have it like that. but still doesn't work in game




make sure to have the correct skill and t_magic index then 



Show a screen of your hpmp steal from itemall




- AliceW - 06-09-2021



32 minutes ago, Scura said:




make sure to have the correct skill and t_magic index then 



Show a screen of your hpmp steal from itemall




 

2

2




- Desarija - 06-09-2021


Does your skill 441 lvl 1 use magic 485?




- AliceW - 06-09-2021



4 minutes ago, Desarija said:




Does your skill 441 lvl 1 use magic 485?




yeah




- AliceW - 06-09-2021


I fixed it for anyone who has the same issue.

the placement of this part of the code was being ignored for some reason

so I just copied it and put it a bit lower in the switch statement and it worked.

 

case 2357:
case 2842:
case 6597:
addition->hcHPSteelPotion = true;
bSkip = true;
break;




- Scura - 06-09-2021



Just now, AliceW said:




I fixed it for anyone who has the same issue.

the placement of this part of the code was being ignored for some reason

so I just copied it and put it a bit lower in the switch statement and it worked.

 




case 2357:
case 2842:
case 6597:
addition->hcHPSteelPotion = true;
bSkip = true;
break;



pretty strange ? ...