Hands not magic with gloves
Boots are making kick magic but gloves will not make hands magic. Anyone know how to fix this?
|
Change Client::Attack to pass what's in the gloves slot as the weapon when there is no primary or secondary weapon.
|
the code for boots making kick magic is in Mob::getweapondamage. Should i still put it in client::attack?
|
I tried adding this in at line 783 but wont compile. Ive tried multiple different things but I cant get it work right.
Code:
else if(InventorySlot(12)->(database.GetItem()->Magic)) Code:
2>..\..\zone\attack.cpp(783): error C2059: syntax error : '(' I see that dmg should be pointing to something but I am not sure what it should be pointing to. |
Correct me if I am wrong, but because Client::Attack is a bool that only says when you can attack... aka true or false.
|
I tried this at line 927 but i need some help with the code
Code:
else if(weapon_item == NULL && SLOT_HANDS() == ItemAttribMagic){ Edit: I also tried Code:
else if(weapon_item == NULL && SLOT_HANDS()->Magic){ |
Quote:
Here's an example of where it might work in Client::Attack. I didn't test it, and it might break other things. The new code is at the bottom, the rest is for context. Code:
/// Now figure out damage |
ok thanks for the reply ill test it out
|
works with magic gloves and not non magic gloves.
Thank you very much sir! Edit: I posted this fix on another website giving you the credit for fixing it lerxst2112 |
All times are GMT -4. The time now is 03:27 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.