hyz
Member
- Joined
- Oct 30, 2008
- Messages
- 39
- Reaction score
- 16
I have a problem with my magic wall, after I change the item that is created, it doesn't disappear...
I'm using TFS 1.3
I would also like to upgrade it, but I don't have enough knowledge, maybe someone can help me with that too.
I wanted that when the magic wall was created, it is also created on the floor above the tile ground ID (460) after the end of the 20 seconds, it will create Ground ID (459) for 1 second and then destroy.
The idea is to enable the player to give exani hur "up and exani hur "down on the magic wall, and then whoever has it on top of the magic wall falls to the floor below (so bugs don't happen) this was a possible solution that I thought about more I don't know what to do, if anyone can help with this I would be grateful.
-
It would be possible to create a destroy field-like rune, to destroy the magic wall (2698) stopping the count and making the players that are on top of it fall to the floor below
I'm using TFS 1.3
Lua:
--[[SevuEntertainment(c)]]--
local recAnimateText = false
local startSeconds = 20
local combat = Combat()
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, 27)
combat:setParameter(COMBAT_PARAM_CREATEITEM, 2698)
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)a
if combat:execute(creature, variant) then
mwCountDownStart(Variant.getPosition(variant), startSeconds)
return true
end
return false
end
I would also like to upgrade it, but I don't have enough knowledge, maybe someone can help me with that too.
I wanted that when the magic wall was created, it is also created on the floor above the tile ground ID (460) after the end of the 20 seconds, it will create Ground ID (459) for 1 second and then destroy.
The idea is to enable the player to give exani hur "up and exani hur "down on the magic wall, and then whoever has it on top of the magic wall falls to the floor below (so bugs don't happen) this was a possible solution that I thought about more I don't know what to do, if anyone can help with this I would be grateful.
-
It would be possible to create a destroy field-like rune, to destroy the magic wall (2698) stopping the count and making the players that are on top of it fall to the floor below
Last edited: