• logo_cipsoft
    Nowe serwery zostały otwarte 19 Lut 2025:
    Noctalia (Open PvP) Ignitera (Open PvP) us_logo Xybra (Open PvP)

Problem z tp

Shay003

Active User
Dołączył
Czerwiec 13, 2009
Posty
95
Liczba reakcji
7
Chcia?em zrobi? tp, ?? znikaj? tzw. jak sie zabije potwora, lecz nie wiem co znaczy jedna linijka

function removeTeleportInHellgorakWard()
if getThingfromPos({x=1154, y=1808, z=10, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=1154, y=1808, z=10, stackpos=1}).uid,1)
doSendMagicEffect({x=1154, y=1808, z=10, stackpos=1}, CONST_ME_POFF)
return TRUE

jakie tam pos ustawi???

jak co? z tego tematu
http://tibia.net.pl/pomoc-z-ot/330080-creaturescripts-inq-tp.html
 
Odp: Problem z tp

Ta linijka oznacza to ?e skasuje 1 item z podanego position ;p tzn skasuje tylko wtedy jesli to bedzie item typu tp, armor albo inne takie ;p podlogi nie skasuje xD.
 
Odp: Problem z tp

dobra drugi problem ;/
Kod:
function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, "inquisitionPortals")
local creaturename = getCreatureName(cid)
--- positions where the teleports will be created:
local ushuriel_in_pos = {x=1235, y=1153, z=8, stackpos=2}
local annihilon_in_pos = {x=1294, y=1150, z=8, stackpos=2}
local hellgorak_in_pos = {x=1350, y=1150, z=8, stackpos=2}
local madareth_in_pos = {x=1406, y=1150, z=8, stackpos=2}
local zugurosh_in_pos = {x=1461, y=1150, z=8, stackpos=2}
local brothers_in_pos = {x=1517, y=1150, z=8, stackpos=1}
--- positions where the teleports will be teleported you:
local ushuriel_to_pos = {x=1284, y=1152, z=8, stackpos=1}
local annihilon_to_pos = {x=1340, y=1152, z=8, stackpos=1}
local hellgorak_to_pos = {x=1396, y=1152, z=8, stackpos=1}
local madareth_to_pos = {x=1451, y=1152, z=8, stackpos=1}
local zugurosh_to_pos = {x=1507, y=1152, z=8, stackpos=1}
local brothers_to_pos = {x=1567, y=1152, z=8, stackpos=1}
local time_to_pass = 180 -- in seconds
local tpID = 5023
local doEffect = CONST_ME_ENERGYHIT
local message = "You now have 3 minutes to exit this room through the teleporter. It will bring you to the next room only during his time or the teleporter will disappear."
if creaturename == 'Ushuriel' then
teleport = doCreateTeleport(tpID, ushuriel_to_pos, ushuriel_in_pos)
doSendMagicEffect(ushuriel_in_pos, doEffect)
doCreatureSay(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInUshurielWard, (1000*time_to_pass))
elseif creaturename == 'Annihilon' then
teleport = doCreateTeleport(tpID, annihilon_to_pos, annihilon_in_pos)
doSendMagicEffect(annihilon_in_pos, doEffect)
doCreatureSay(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInAnnihilonWard, (1000*time_to_pass))
elseif creaturename == 'Madareth' then
teleport = doCreateTeleport(tpID, madareth_to_pos, madareth_in_pos)
doSendMagicEffect(madareth_in_pos, doEffect)
doCreatureSay(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInMadarethWard, (1000*time_to_pass))
elseif creaturename == 'Hellgorak' then
teleport = doCreateTeleport(tpID, hellgorak_to_pos, hellgorak_in_pos)
doSendMagicEffect(hellgorak_in_pos, doEffect)
doCreatureSay(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInHellgorakWard, (1000*time_to_pass))
elseif creaturename == 'Zugurosh' then
teleport = doCreateTeleport(tpID, zugurosh_to_pos, zugurosh_in_pos)
doSendMagicEffect(zugurosh_in_pos, doEffect)
doCreatureSay(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInZuguroshWard, (1000*time_to_pass))
elseif creaturename == 'Latrivan' then
teleport = doCreateTeleport(tpID, brothers_to_pos, brothers_in_pos)
doSendMagicEffect(brothers_in_pos, doEffect)
doCreatureSay(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInBrothersWard, (1000*time_to_pass))
end
return TRUE
end
function removeTeleportInUshurielWard()
if getThingfromPos({x=1235, y=1153, z=8, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=1235, y=1153, z=8, stackpos=1}).uid,1)
doSendMagicEffect({x=1235, y=1153, z=8, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end
function removeTeleportInAnnihilonWard()
if getThingfromPos({x=1294, y=1150, z=8, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=1294, y=1150, z=8, stackpos=1}).uid,1)
doSendMagicEffect({x=1294, y=1150, z=8, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end
function removeTeleportInHellgorakWard()
if getThingfromPos({x=1350, y=1150, z=8, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=1350, y=1150, z=8, stackpos=1}).uid,1)
doSendMagicEffect({x=1350, y=1150, z=8, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end
function removeTeleportInMadarethWard()
if getThingfromPos({x=1406, y=1150, z=8, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=1406, y=1150, z=8, stackpos=1}).uid,1)
doSendMagicEffect({x=1406, y=1150, z=8, stackpos=2}, CONST_ME_POFF)
return TRUE
end
end
function removeTeleportInZuguroshWard()
if getThingfromPos({x=1461, y=1150, z=8, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=1461, y=1150, z=8, stackpos=1}).uid,1)
doSendMagicEffect({x=1461, y=1150, z=8, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end
function removeTeleportInBrothersWard()
if getThingfromPos({x=1517, y=1150, z=8, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=1517, y=1150, z=8, stackpos=1}).uid,1)
doSendMagicEffect({x=1517, y=1150, z=8, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end

mam taki skrypt w creatureskript dodalem linijk?, ale jak padn? potwora to sie tp nie pojawia ;/ help ;/
 
Do góry