MP steal not working
#1

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

#2

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;

 

#3


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

#4


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

#5


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

#6

Does your skill 441 lvl 1 use magic 485?

#7


4 minutes ago, Desarija said:




Does your skill 441 lvl 1 use magic 485?




yeah

#8

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;

#9


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



Forum Jump:


Users browsing this thread: 1 Guest(s)