Po zabiciu...

deviantert

User
Zarejestrowany
Dołączył
Grudzień 15, 2009
Posty
29
Liczba reakcji
0
Witam mam tu taki skrypcik,gdy si? zabije np rata to si? pokazuj? w danym miejscu tp,ale ten tp nie teleportuje ; \ prosz? o pomoc
Kod:
function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, "rat")
local creaturename = getCreatureName(cid)
--- miejsce gdzie tp zostanie utworzone
local pos1 = {x=1131, y=1026, z=15, stackpos=2}
--- gdzie teleport Cie teleportuje:
local pos2 = {x=1208, y=1091, z=5, stackpos=1}
local time_to_pass = 180 -- 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 3 minuts to get into or it will dissapear!."
if creaturename == 'rat' 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=1131, y=1026, z=15, stackpos=1}).itemid == 5023 then
--- miejsce gdzie tp zostanie utworzone
doRemoveItem(getThingfromPos({x=1131, y=1026, z=15, stackpos=1}).uid,1)
--- miejsce gdzie tp zostanie utworzone
doSendMagicEffect({x=1131, y=1026, z=15, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end
 
Odp: Po zabiciu...

mozesz mi poda? ten skrypt i gdzie go wklei??? Lub sk?d go masz??
 
Back
Do góry