megachock
Member
- Joined
- Mar 12, 2009
- Messages
- 115
- Reaction score
- 7
Hello, i need some help ...
Im trying to make a script wich when you kill a monster it remove a wall then the wall appears after x seconds.
I made this but dont works..
Also, can someome tell what function show a box with text
Thanks
PD: Im using tfs 0.3.6pl1 8.54
Im trying to make a script wich when you kill a monster it remove a wall then the wall appears after x seconds.
I made this but dont works..
Also, can someome tell what function show a box with text
Thanks
PD: Im using tfs 0.3.6pl1 8.54
Code:
local wallPos =
{
{x=1212, y=1592, z=3, stackpos = 1},
{x=1211, y=1592, z=3, stackpos = 1},
{x=1210, y=1592, z=3, stackpos = 1},
{x=1219, y=1592, z=3, stackpos = 1},
}
local seg = 12
local mName = {"Water Poliwrath"}
local wallID = {1544}
local function appear (pos)
doCreateItem (1544,1,wallPos[i])
end
function onKill(cid, target)
local monster = getCreatureName(target)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, monster)
if isInArray(monster, mName) then
for i = 1, 3 do
if monster == mName then
doRemoveItem(getThingfromPos(wallPos[i]).uid, wallID[i])
doSendMagicEffect(wallPos[i], 26)
addEvent (appear, seg * 1000, wallPos[i])
end
end
end
end
Last edited: