- Dołączył
- Listopad 2, 2010
- Posty
- 52
- Liczba reakcji
- 1
Mam problem poniewa? mam ten skrypt:
Ale gdy zabije bossa to pojawia si? tp , ale nie znika !!Czego to mo?e by? wina!! PLX POM??CIE DAM KA?DEMU REPUTA!
Kod:
function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, "Golgordan")
local creaturename = getCreatureName(cid)
--- miejsce gdzie tp zostanie utworzone
local pos1 = {x=1403, y=1099, z=11, stackpos=2}
--- gdzie teleport Cie teleportuje:
local pos2 = {x=1422, y=1100, z=12, stackpos=1}
local time_to_pass = 15 -- czas po jakim zniknie tp w sekundach
local tpID = 1387
local doEffect = CONST_ME_ENERGYHIT
local message = "Well done! Teleport appeared in the middle of room. You got 15 secunds to get into or it will dissapear!."
if creaturename == 'Golgordan' then
teleport = doCreateTeleport(tpID, pos2, pos1)
doSendMagicEffect(pos1, doEffect)
doCreatureSay(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInBossWard, (15*time_to_pass))
end
end
function removeTeleportInBossWard()
--- miejsce gdzie tp zostanie utworzone
if getThingfromPos({x=1403, y=1099, z=11, stackpos=1}).itemid == 1387 then
--- miejsce gdzie tp zostanie utworzone
doRemoveItem(getThingfromPos({x=1403, y=1099, z=11, stackpos=1}).uid,1)
--- miejsce gdzie tp zostanie utworzone
doSendMagicEffect({x=1403, y=1099, z=11, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end