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

Help with arrow,I need help

jareczekjsp

Member
Joined
Jan 30, 2023
Messages
218
Reaction score
16
GitHub
Jarek123
Hello Guys I have problem Because When I use Potion My arrow Stop shooting have Exhaust I wouldlike When I use potions All the time my arrow attack ,how I can to do?

Items.xml

<item id="2352" article="a" name="Crystal arrow" plural="crystal arrow">
<attribute key="weight" value="90" />
<attribute key="slotType" value="ammo" />
<attribute key="attack" value="200" />
<attribute key="hitChance" value="100" />
<attribute key="weaponType" value="ammunition" />
<attribute key="ammoType" value="arrow" />

weapons.xml

</distance>
<distance id="2352" range="7" enabled="1" hitchance="100" exhaustion="0" level="8" script="arrow.lua">
<vocation id="3"/>
<vocation id="7" showInDescription="0"/>
</distance>

Script.

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 34)

local condition = createConditionObject(CONDITION_ENERGY)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
addDamageCondition(condition, 5, 1000, -100)
setCombatCondition(combat, condition)

function onGetFormulaValues(cid, level, skill, attack, factor)
if getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 then
return -(level * 1) - 100, -(level * 3) - 200
end
end
setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")

function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end

Can somebody help me?please
 
Hello Guys I have problem Because When I use Potion My arrow Stop shooting have Exhaust I wouldlike When I use potions All the time my arrow attack ,how I can to do?

Items.xml

<item id="2352" article="a" name="Crystal arrow" plural="crystal arrow">
<attribute key="weight" value="90" />
<attribute key="slotType" value="ammo" />
<attribute key="attack" value="200" />
<attribute key="hitChance" value="100" />
<attribute key="weaponType" value="ammunition" />
<attribute key="ammoType" value="arrow" />

weapons.xml

</distance>
<distance id="2352" range="7" enabled="1" hitchance="100" exhaustion="0" level="8" script="arrow.lua">
<vocation id="3"/>
<vocation id="7" showInDescription="0"/>
</distance>

Script.

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 34)

local condition = createConditionObject(CONDITION_ENERGY)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
addDamageCondition(condition, 5, 1000, -100)
setCombatCondition(combat, condition)

function onGetFormulaValues(cid, level, skill, attack, factor)
if getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 then
return -(level * 1) - 100, -(level * 3) - 200
end
end
setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")

function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end

Can somebody help me?please
idk what server u use, but: go in config.lua and search for classicattack, change to true, test
 
this is very shit and bugged otx2.6, Wasting time to fixed this server :/

don't do that, have respect for those who spend their time doing things for us for free.

thats not a bug, thats how tibia works nowdays

anyway, move to tfs 1.5 or 1.4 depending on the version you use, even we have a downgrade by nekiro. But u need to change things to work like u want
 
Last edited:
Hello Guys I have problem Because When I use Potion My arrow Stop shooting have Exhaust I wouldlike When I use potions All the time my arrow attack ,how I can to do?

Items.xml

<item id="2352" article="a" name="Crystal arrow" plural="crystal arrow">
<attribute key="weight" value="90" />
<attribute key="slotType" value="ammo" />
<attribute key="attack" value="200" />
<attribute key="hitChance" value="100" />
<attribute key="weaponType" value="ammunition" />
<attribute key="ammoType" value="arrow" />

weapons.xml

</distance>
<distance id="2352" range="7" enabled="1" hitchance="100" exhaustion="0" level="8" script="arrow.lua">
<vocation id="3"/>
<vocation id="7" showInDescription="0"/>
</distance>

Script.

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 34)

local condition = createConditionObject(CONDITION_ENERGY)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
addDamageCondition(condition, 5, 1000, -100)
setCombatCondition(combat, condition)

function onGetFormulaValues(cid, level, skill, attack, factor)
if getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 then
return -(level * 1) - 100, -(level * 3) - 200
end
end
setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")

function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end

Can somebody help me?please
Add swing="true" weapons.xml
 
</distance>
<distance id="2352" range="7" enabled="1" hitchance="100" exhaustion="0" level="8" swing="true" script="arrow.lua">
<vocation id="3"/>
<vocation id="7" showInDescription="0"/>
</distance>
Thanks guys
Like that ?
Post automatically merged:

I find only in config.lua
Tibiaclassicslots = false
 
Last edited:
Back
Top