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

Lua TFS 1.3 Attack Speed

tried this one? link

I try, but in that is for vocations.xml i need it like attribute
and try this too TFS 1.X+ - [C++] item attack speed (attr key not recognized) (https://otland.net/threads/c-item-attack-speed-attr-key-not-recognized.262272/)
but i dont understand this part:

I placed attackspeed in here:

Lua:
ItemType::ItemType() :
group(ITEM_GROUP_NONE), type(ITEM_TYPE_NONE), id(0), clientId(0),
stackable(false), isAnimation(false), weight(0), levelDoor(0), decayTime(0),
wieldInfo(0), minReqLevel(0), minReqMagicLevel(0), charges(0), maxHitChance(-1),
decayTo(-1), attack(0), attackSpeed(0), defense(0), extraDefense(0), armor(0), rotateTo(0),
runeMagLevel(0), runeLevel(0), combatType(COMBAT_NONE), transformToOnUse(),
transformToFree(0), destroyTo(0), maxTextLen(0), writeOnceItemId(0),
transformEquipTo(0), transformDeEquipTo(0), maxItems(8), slotPosition(SLOTP_HAND),
speed(0), wareId(0), magicEffect(CONST_ME_NONE), bedPartnerDir(DIRECTION_NONE),
weaponType(WEAPON_NONE), ammoType(AMMO_NONE), shootType(CONST_ANI_NONE),
corpseType(RACE_NONE), fluidSource(FLUID_NONE), floorChange(0),
alwaysOnTopOrder(0), lightLevel(0), lightColor(0), shootRange(1), hitChance(0),
forceUse(false), hasHeight(false), walkStack(true), blockSolid(false),
blockPickupable(false), blockProjectile(false), blockPathFind(false),
allowPickupable(false), showDuration(false), showCharges(false),
showAttributes(false), replaceable(true), pickupable(false), rotatable(false),
useable(false), moveable(false), alwaysOnTop(false), canReadText(false),
canWriteText(false), isVertical(false), isHorizontal(false), isHangable(false),
allowDistRead(false), lookThrough(false), stopTime(false), showCount(true)

i dont know where put it
 
 
Yes, I already checked that post, and within that post was the link to another post that was more consistent with what I was looking for, but there is a part of the post that I don't understand, it's the code I put in a few comments before
 
after that
Lua:
 static int luaItemTypeGetAttack(lua_State* L);
add this
Code:
static int luaItemTypeGetAttackSpeed(lua_State* L);
try add this to luascripts.H
 
Back
Top