ralke
(҂ ͠❛ ෴ ͡❛)ᕤ
Hi there! I wonder if someone could help me with a modification for utevo res " spell. I need that summons follows the master if they're a certain ammount of SQM away from it. For this I have searched and found this piece of code here:
otland.net
I'm not sure if this is enough to achieve what I need, and also, how to merge this into the utevo res" spell
github.com
I wonder too if this is the best way to teleport the summons, if there's another solution in c++ that is more optimized I can test it aswell.
Thanks in advance,
Regards!
Lua:
-- If you are > 9 sqm away from master, try teleport somewhere in his behind vicinity
if not masterPos:isInRange(
Position(summonPos.x-9,summonPos.y-9,summonPos.z), Position(summonPos.x+9,summonPos.y+9,summonPos.z)
) then
local masterDirection = master:getDirection()
for i = -2, 1, 1 do
-- Center
local centerBehindPos = Position(masterPos)
centerBehindPos:getNextPosition(masterDirection, i)
if teleportSummon(summon, centerBehindPos) then return true end
-- Adjacent to center
local adjacent1 = Position(centerBehindPos)
adjacent1:getNextPosition((masterDirection + 1) % 4, 1)
if teleportSummon(summon, adjacent1) then return true end
-- Opposite Adjacent to center
local adjacent2 = Position(centerBehindPos)
adjacent2:getNextPosition((masterDirection + 3) % 4, 1)
if teleportSummon(summon, adjacent2) then return true end
end
return false
end

[TFS 1.4] Spell: Empower Summons (Monster AI)
Created a spell that makes your summons more interesting to play with. From the AcidsOT advertisement thread: Changelog: 13 October 2021 New spell for Elder Druids: Empower Summons: utevo gran res Required level 70, costs 1800 mana. Your summons gain +800 max health. Your summons gain extra...
I'm not sure if this is enough to achieve what I need, and also, how to merge this into the utevo res" spell
TFS-1.5-Downgrades/summon_creature.lua at 8.60 · nekiro/TFS-1.5-Downgrades
Alternative forgottenserver versions for older protocols support - TFS-1.5-Downgrades/summon_creature.lua at 8.60 · nekiro/TFS-1.5-Downgrades
I wonder too if this is the best way to teleport the summons, if there's another solution in c++ that is more optimized I can test it aswell.
Thanks in advance,
Regards!