• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Spell Drill arrow

kor

PHP ziom
Premium User
Joined
Jul 12, 2008
Messages
252
Solutions
13
Reaction score
410
Location
Bialystok, Poland
GitHub
rookgaard
YouTube
Rookgaard
Hello.

I would like to share another small feature which might inspire someone else to reuse/rebuild for it's own. I've found it in more advanced version in [France] [8.6] AcidsOT (https://otland.net/threads/france-8-6-acidsot.277487/page-3#post-2681462), so I wanted to recreate it. Here is the code: Comparing master...feature/drill-arrow · rookgaard/forgottenserver (https://github.com/rookgaard/forgottenserver/compare/master...feature/drill-arrow) and video:


player:getWeaponDamage() might be very bad, as it's directly copied from forgottenserver/combat.cpp at master · otland/forgottenserver (https://github.com/otland/forgottenserver/blob/master/src/combat.cpp#L121-L124) and for 99% needs some fixes.

Enjoy!
 
IT DOESN'T WORK CORRECTLY, WHAT A Pity.
Hello.

I would like to share another small feature which might inspire someone else to reuse/rebuild for it's own. I've found it in more advanced version in [France] [8.6] AcidsOT (https://otland.net/threads/france-8-6-acidsot.277487/page-3#post-2681462), so I wanted to recreate it. Here is the code: Comparing master...feature/drill-arrow · rookgaard/forgottenserver (https://github.com/rookgaard/forgottenserver/compare/master...feature/drill-arrow) and video:


player:getWeaponDamage() might be very bad, as it's directly copied from forgottenserver/combat.cpp at master · otland/forgottenserver (https://github.com/otland/forgottenserver/blob/master/src/combat.cpp#L121-L124) and for 99% needs some fixes.

Enjoy!
IT DOESN'T WORK CORRECTLY, WHAT A Pity.
 
From what I checked from the code, the drill function only works if the player have the same X or Y position as the target, if the player is on the diagonal then the drill won't work.

But this is a good start code for people who are trying to make a piercing attack feature.
 
Last edited:
Back
Top