[Request] Magic Attack till Kill

10/27/2019 10:55 TestUrSkillz#1
Hey there.

I'm looking for the possibility to let magicians attack like melee characters.
For example the blade attacks a monster with doubleclick. The character continues attacking till the user clicks to the ground, moves or the monster is dead. But while using magic attacks as psykeeper (auto hit) i need to doubleclick for every hit.

I already search through the source but couldn't find anything...
Maybe you can help me..

Greetz
10/27/2019 11:43 Knusper02#2
I got that working. You need to look in WndManager.cpp and WndWorld.cpp and search for: "IK3_WAND" and "m_bAutoAttack". If you need more help write me
10/27/2019 12:04 TestUrSkillz#3
I already checked the whole WndWorld.cpp for IK3_WAND and AutoAttack but couldn't find anything helpful. I tried to change the code to activate AutoAttack for Wand but didn't work...
10/27/2019 12:12 GORILLAgod#4
looking for this too.
10/27/2019 12:25 TestUrSkillz#5
Problem solved thanks for your help !
WndManager.cpp:
Search for
((CWndWorld *)g_WndMng.m_pWndWorld)->m_bAutoAttack = TRUE;
Before that you can find:
if( pItemProp && pItemProp->dwItemKind3 == IK3_WAND )
delete that.
WndWorld.cpp:
Search for:
CWndWorld::OnLButtonUp(UINT nFlags, CPoint point)
in this function you can find:
else if( pItemProp->dwItemKind3 == IK3_BOW )
g_pPlayer->CMD_SetRangeAttack( idTarget, nPower );
Add before:
if( pItemProp->dwItemKind3 == IK3_WAND )
g_pPlayer->CMD_SetMagicAttack( idTarget, nPower );