Obsdark
Member
- Joined
- Sep 25, 2011
- Messages
- 213
- Reaction score
- 9
¡¡¡Hey Oh!!!
I'm Making one script who works each time you kill some type of undeads, when the body apparead on the floor this script must (but don't do it) count some seconds, after that the body dissapeard and two of that kind of undead are summon in that place, this happends not necesarely after kill one undead, but when the undead body stays on the ground, that trigger the sistem.
i'm not sure if what i'm making it wrong, it keeps sending me the same error message over and over again "error in line 26" which is:
Can you help me a little bit?, i really apreciate it
this is the code who must do that:
¡Tnx a lot for everything!
¡Bless, Cheers and Happines!
(Y)(Y)
-Obsdark-
I'm Making one script who works each time you kill some type of undeads, when the body apparead on the floor this script must (but don't do it) count some seconds, after that the body dissapeard and two of that kind of undead are summon in that place, this happends not necesarely after kill one undead, but when the undead body stays on the ground, that trigger the sistem.
i'm not sure if what i'm making it wrong, it keeps sending me the same error message over and over again "error in line 26" which is:
LUA:
local r = t(moveitem.id)
Can you help me a little bit?, i really apreciate it
this is the code who must do that:
LUA:
local t = {
[2853] = "Ghoul",
[2854] = "Ghoul",
[9654] = "Vampire Bride",
[9658] = "Vampire Bride",
[9659] = "Vampire Bride",
[2956] = "Vampire",
[2957] = "Vampire",
[2949] = "mummy",
[2950] = "mummy",
[2951] = "mummy",
[3025] = "lich",
[3026] = "lich",
[2998] = "Banshee",
[2999] = "Banshee",
[3000] = "Banshee",
[9876] = "Zombie",
[9877] = "Zombie",
[8956] = "Grim Reaper",
[8957] = "Grim Reaper",
[6355] = "Blightwalker"
}
local m = {
tm = 10
}
local r = t(moveitem.id)
local function RemoveCorpse()
if moveitem.itemid == t then
doRemoveItem(t, 1)
doSummonCreature(t.monster, pos)
doSummonCreature(t.monster, pos)
doSendMagicEffect(topos,12)
end
end
function onAddItem(cid, moveitem, tileitem, position)
if getTilePzInfo(t) == 0 then
addEvent(RemoveCorpse, m.tm, t)
end
return 1
end
¡Tnx a lot for everything!
¡Bless, Cheers and Happines!
(Y)(Y)
-Obsdark-