• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[8.7] The Forgotten Server v0.2.10 (Mystic Spirit), single item attack speed.

Cornwallis

Member
Joined
Jan 3, 2010
Messages
480
Reaction score
16
I was searching and seen that the function is in 0.3, but I looked through the LUA functions for this distro, and i couldn't find anything with attack speed. I'm trying to make an action script that when i use the item 5885 on any weapon ( bows, crossbows, stars, swords, clubs, axes, wands ) it changes the attack speed of the weapon from the vocation default, 2000, to 1500. Also, on the weapon it would say: 19:35 You see a crystal wand. It weighs 9.0 oz. It's speed was upgraded by 50%.
 
Code:
doItemSetAttribute(item.uid, "attackSpeed",getItemAttackSpeed(item.uid) / 100 * 50)
doSetItemSpecialDescription(item.uid, "This Item Has +50% Attack Speed")
HAHA EASY :p
 
Last edited:
Code:
doItemSetAttribute(item.uid, "attackSpeed",getItemAttackSpeed(item.uid) / 100 * 150)
doSetItemSpecialDescription(item.uid, "This Item Has +50% Attack Speed")
HAHA EASY :p
read the thread title and fall ashamed ^^

requires a lot of source edits + database edits, because 0.2 doesn't support an item Attribute System in any way.
 
Back
Top