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

po zabiciu potwora pojawia sie tp

Status
Not open for further replies.

tibiek

Banned User
Joined
Jun 3, 2009
Messages
320
Reaction score
0
Location
Poland
potrzebuje skrypta ze gdy zabije potwora hellspawna to pojawia sie tp na 3 minuty :)
 
nie moge znalezc tego w silniku real mapki wcale moze ktos znajdzie to niech tu wklei
 
w silniku "real mapki". omg - n/c


wejdź actions/scrpits ~~/inq ;)
i edytnij sobie name i pos'y do których ma być tp.
 
no mowie ci ze w tej sciezce actions/cripts/inq nie ma takie sciezki i wogle tego pliku wesno daj jaz to widzisz
 
W creature scripts dodajesz :

Code:
<event type="death" name="<nazwa potwora>" script="<nazwa potwora>.lua"/>

W creaturescripts/scripts dodajesz plik:
<nazwa potwora>.lua a w środku wklejasz:

PHP:
function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, "<nazwa potwora>")
local creaturename = getCreatureName(cid)
--- miejsce gdzie tp zostanie utworzone
local pos1 = {x=338, y=1837, z=5, stackpos=2}
--- gdzie teleport Cie teleportuje:
local pos2 = {x=398, y=1928, z=5, 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 == '<nazwa potwora>' 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=338, y=1837, z=5, stackpos=1}).itemid == 5023 then
--- miejsce gdzie tp zostanie utworzone
doRemoveItem(getThingfromPos({x=338, y=1837, z=5, stackpos=1}).uid,1)
--- miejsce gdzie tp zostanie utworzone
doSendMagicEffect({x=338, y=1837, z=5, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end

Wchodzisz w plik twojego potworka (data/monsters/<nazwa potwora>.xml
i między lootem a odgłosami wklejasz:

<script>
<event name="<nazwa potwora>"/>
</script>



Wyjdź, proszę cie.

Fail! ;D
 
Status
Not open for further replies.
Back
Top