thetibjohn1
New Member
- Joined
- Jun 27, 2020
- Messages
- 1
- Reaction score
- 0
Hi OTLanders, i have this script in TFS 0.x and i want to convert it to TFS 1.5 8.60, can anybody help me?
[XML]
</instant>
<instant name="utevo mort" words="utevo mort" lvl="300" mana="1000" maglv="90" prem="1" range="5" needtarget="1" exhaustion="22000" blockwalls="1" needlearn="0" script="pbot/utevo mort.lua">
<vocation id="10"/>
<vocation id="9"/>
</instant>
Lua:
function onTargetTile(cid, position)
position.stackpos = 255
doConvinceCreature(cid, doCreateMonster("headcaptor", position, false))
doSendMagicEffect(position, CONST_ME_MAGIC_BLUE)
return true
end
local arr = {
{1, 0, 1},
{0, 2, 0},
{1, 0, 1},
}
local removeTime = 1.0 --time to remove the clones
local function removeCreatures(cid, creature)
if isCreature(creature) == TRUE then
doRemoveCreature(creature)
end
end
function onTargetTile(cid, pos)
local creature = doSummonCreature("headcaptor", pos)
doCreatureAddMana(cid, -2000)
doCreatureSay(cid, "Utevo Mort", TALKTYPE_ORANGE_1)
doConvinceCreature(cid, creature)
addEvent(removeCreatures, removeTime * 1000, cid, creature)
return TRUE
end
local area, combat = createCombatArea(arr), createCombatObject()
setCombatArea(combat, area)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
[XML]
</instant>
<instant name="utevo mort" words="utevo mort" lvl="300" mana="1000" maglv="90" prem="1" range="5" needtarget="1" exhaustion="22000" blockwalls="1" needlearn="0" script="pbot/utevo mort.lua">
<vocation id="10"/>
<vocation id="9"/>
</instant>