Witam serdecznie jak w temacie, Zabijam bossa teleport sie ?adnie tworzy lecz znika mi cia?o bossa.
skrypt:
Kiedy usune z potwora
Cia?o si? pokazuje i jest loot.. Prosze o pomoc
skrypt:
function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, "Verbania KING")
local creaturename = getCreatureName(cid)
--- miejsce gdzie tp zostanie utworzone
local pos1 = {x=31057, y=32181, z=8, stackpos=2}
--- gdzie teleport Cie teleportuje:
local pos2 = {x=31061, y=32219, 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 == 'Verbania KING' then
teleport = doCreateTeleport(tpID, pos2, pos1)
doSendMagicEffect(pos1, doEffect)
doCreatureSay(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInBossWard, (1000*time_to_pass))
end
end
function removeTeleportInBossWard()
--- miejsce gdzie tp zostanie utworzone
if getThingfromPos({x=31057, y=32181, z=8, stackpos=1}).itemid == 5023 then
--- miejsce gdzie tp zostanie utworzone
doRemoveItem(getThingfromPos({x=31057, y=32181, z=8, stackpos=1}).uid,1)
--- miejsce gdzie tp zostanie utworzone
doSendMagicEffect({x=31057, y=32181, z=8, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end
Kiedy usune z potwora
<script>
<event name="Verbania KING"/>
</script>
Cia?o si? pokazuje i jest loot.. Prosze o pomoc