Karmazynowy
New Member
- Joined
- Jul 11, 2011
- Messages
- 11
- Reaction score
- 0
Witam mam taki problem cialo postaci znika odrazu po smierci nie wywala zadnych błedów w konsoli
Dziala normalnie z tymi podstawowymi skryptami w creaturescripts.xml
function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, "orshabaall")
local creaturename = getCreatureName(cid)
--- miejsce gdzie tp zostanie utworzone
local pos1 = {x=32725, y=31755, z=12, stackpos=2}
--- gdzie teleport Cie teleportuje:
local pos2 = {x=32724, y=31771, z=8, stackpos=1}
local time_to_pass = 180 -- czas po jakim zniknie tp w sekundach
local tpID = 5023
local doEffect = CONST_ME_ENERGYHIT
local message = "Well done! Teleport appeared in the middle of room. You got 3 minuts to get into or it will dissapear!."
if creaturename == 'Orshabaall' then
teleport = doCreateTeleport(tpID, pos2, pos1)
doSendMagicEffect(pos1, doEffect)
doCreatureSay(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInBossWard, (1000*time_to_pass))
return TRUE
end
end
function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, "orshabaall")
local creaturename = getCreatureName(cid)
--- miejsce gdzie tp zostanie utworzone
local pos1 = {x=32725, y=31755, z=12, stackpos=2}
--- gdzie teleport Cie teleportuje:
local pos2 = {x=32724, y=31771, z=8, stackpos=1}
local time_to_pass = 180 -- czas po jakim zniknie tp w sekundach
local tpID = 5023
local doEffect = CONST_ME_ENERGYHIT
local message = "Well done! Teleport appeared in the middle of room. You got 3 minuts to get into or it will dissapear!."
if creaturename == 'Orshabaall' then
teleport = doCreateTeleport(tpID, pos2, pos1)
doSendMagicEffect(pos1, doEffect)
doCreatureSay(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInBossWard, (1000*time_to_pass))
end
return true
end