- Joined
- Mar 16, 2017
- Messages
- 1,418
- Solutions
- 155
- Reaction score
- 1,975
- Location
- London
- GitHub
- MillhioreBT
- Twitch
- millhiorebt
they look for the following file: data/spells/scripts/support/magic_wall_rune.lua and replace the code for this!
Lua:
-- by: 𝓜𝓲𝓵𝓵𝓱𝓲𝓸𝓻𝓮 𝓑𝓣
local recAnimateText = false
local startSeconds = 20
local combat = Combat()
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
combat:setParameter(COMBAT_PARAM_CREATEITEM, ITEM_MAGICWALL)
mwCountDownStart = function(position, seconds)
local spectators = Game.getSpectators(position, false, true, 7, 7, 7, 7)
if #spectators > 0 then
if not recAnimateText then
Creature.say(spectators[1], seconds, TALKTYPE_MONSTER_SAY, false, nil, position)
else
Player.sendTextMessage(spectators[1], MESSAGE_EXPERIENCE_OTHERS, nil, position, seconds, TEXTCOLOR_MAYABLUE)
end
end
if seconds > 0 then
addEvent(mwCountDownStart, 1000, position, seconds -1)
end
end
function onCastSpell(creature, variant, isHotkey)
if combat:execute(creature, variant) then
mwCountDownStart(Variant.getPosition(variant), startSeconds)
return true
end
return false
end
Last edited: