Adorius Black
Advanced OT User
- Joined
- Mar 31, 2020
- Messages
- 301
- Solutions
- 3
- Reaction score
- 180
Boots of Life [TFS 1.4]
Vocation: Shaman, Raised Shaman
Create Pair of Soft Boots in front of you for 1 minute. Anybody can take them from ground. After 1 minute Pair of Soft Boots will disappear.
Preview:
Install:
Vocation: Shaman, Raised Shaman
Create Pair of Soft Boots in front of you for 1 minute. Anybody can take them from ground. After 1 minute Pair of Soft Boots will disappear.
Preview:
Install:
Put code below to data/spells/spells.xml
XML:
<instant group="healing" spellid="159" name="Boots of Life" words="exura soft" lvl="24" mana="100" prem="0" aggressive="0" casterTargetOrDirection="1" blockwalls="1" exhaustion="120000" groupcooldown="2000" needlearn="0" script="custom/boots_of_life.lua">
<vocation name="Shaman" />
<vocation name="Raised Shaman" />
</instant>
Put code below to data/spells/scripts/custom/boots_of_life.lua
Lua:
function onCastSpell(player, var)
local pPos = getPlayerPosition(player)
local vPos = var:getPosition()
doSendDistanceShoot(pPos, vPos, CONST_ANI_FIRE)
local soft = Game.createItem(6132, 1, vPos, true) -- 6132 = ID of Pair of Soft Boots
addEvent(function() soft:remove() end, 60000) -- 60000 = 60 seconds
return false
end
If you know how to make this code more easy, stable, correct or you are just bored and you have created nice modification of this code please post it here. OTLand users will be grateful.
Last edited: