• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Problem cialo znika odrazu po smierci

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
 
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


czy gdzies jest tu blad?
 
LUA:
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
 
przed zamknięcem każdej funkcji związanej z zabiciem musi byc "return TRUE" inaczej będza cuda i wianki się dziac :P
 
Back
Top