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

tp po zabiciu potwora

Status
Not open for further replies.

matek53

New Member
Joined
Dec 30, 2008
Messages
3
Reaction score
0
po zabiciu potwora pojawia sie tp w miejscu np x=239 y=166 z=6 i bendzie on tereportowa w np x=239 y=168 z=7 i teleport bendzie przez 30 sec po zabicu potwora zniknie albo nie bendzie tereportował :)
 
a kurwa wersje tfs'a sobie wyczarować? zresztą podpowiem ci SZUKAJ KURWA! bo jest na forum i to kilka takich skryptów.
 
local config = {
message = "Go into the teleporter in 30 seconds, else it will disappear.",
timeToRemove = 30, -- seconds
teleportId = 1387,
bosses = {
["Demodras"] = {x=239, y=168, z=7},
}
}
local function removal(position)
position.stackpos = 1
if getThingfromPos(position).itemid == config.teleportId then
doRemoveItem(getThingfromPos(position).uid)
end
return TRUE
end
function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, "Demodras")
local position = getCreaturePosition(cid)
for name, pos in pairs(config.bosses) do
if name == getCreatureName(cid) then
teleport = doCreateTeleport(config.teleportId, pos, position)
doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
addEvent(removal, config.timeToRemove * 1000, position)
end
end
return TRUE
end


<event type="death" name="Demodras" script="Demodras.lua"/>
i nie dziala prubowałem pare razy nie udało mi sie wienc szukam ma forum
 
A dodales event do pliku .xml potwora ?:)
 
Status
Not open for further replies.
Back
Top