What's new

Tp po zabiciu bossa

Status
Not open for further replies.

Loveniurka

Active User
Joined
Jul 24, 2011
Messages
68
Reaction score
0
Witam mam problem z ots'em
A mianowicie :
Gdy zabije bossa to tp si? pojawia lecz ju? nie znika a mam ustawione ze po 30 sec ma znikn?? dlaczego si? tak dzieje ? plx odp
 

Mateeqq

User
Joined
Sep 8, 2011
Messages
48
Reaction score
0
Odp: Tp po zabiciu bossa

Prawdopodobnie masz ?le skonfigurowany skrypt. Albo jaki? b?ad w skrypcie daj ten skrypt poprawi? Ci go je?li b?dzie trzeba.
 

Uwaga Meteor

Active User
Joined
Aug 23, 2011
Messages
62
Reaction score
3
Odp: Tp po zabiciu bossa

moglbys napisac tu ten skrypt postara sie pomuc
 

Loveniurka

Active User
Joined
Jul 24, 2011
Messages
68
Reaction score
0
Odp: Tp po zabiciu bossa

OD STWORA !
Code:
function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, "Undead Gladiator")
local creaturename = getCreatureName(cid)
local pos1 = {x=899, y=1296, z=7, stackpos=2}
local pos2 = {x=940, y=1272, z=7, stackpos=1}
local time_to_pass = 30 -- 
local tpID = 5023
local doEffect = CONST_ME_ENERGYHIT
local message = "Udalo Wam sie!Macie 30 sekund na wejscie w teleport."
if creaturename == 'Undead Gladiator' then
teleport = doCreateTeleport(tpID, pos2, pos1)
doSendMagicEffect(pos1, doEffect)
addEvent(removeTeleportInBossWard, (1000*time_to_pass))
end
end
function removeTeleportInBossWard()
if getThingfromPos({x=899, y=1296, z=7, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=899, y=1296, z=7, stackpos=1}).uid,1)
doSendMagicEffect({x=899, y=1296, z=7, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end
 

Loveniurka

Active User
Joined
Jul 24, 2011
Messages
68
Reaction score
0
Odp: Tp po zabiciu bossa

no 1 m?dry :)
Dzieki dzia?a !
ej mam jeszcze 1 pytanie
Bo jak ubije tego stworka to nie pisze macie 30 sec aby wejsc w tp dlaczego ? :D
 

Sandstormowski

Advanced User
Joined
Jul 22, 2011
Messages
409
Reaction score
29
Age
22
Odp: Tp po zabiciu bossa

Code:
function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, "Undead Gladiator")
local creaturename = getCreatureName(cid)
local pos1 = {x=899, y=1296, z=7, stackpos=2}
local pos2 = {x=940, y=1272, z=7, stackpos=1}
local time_to_pass = 
local tpID = 5023
local doEffect = CONST_ME_ENERGYHIT
if creaturename == 'Undead Gladiator' then
teleport = doCreateTeleport(tpID, pos2, pos1)
doSendMagicEffect(pos1, doEffect)
addEvent(removeTeleportInBossWard, (1000*time_to_pass))
end
end
function removeTeleportInBossWard()
if getThingfromPos({x=899, y=1296, z=7, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=899, y=1296, z=7, stackpos=1}).uid,1)
doSendMagicEffect({x=899, y=1296, z=7, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end
 

Loveniurka

Active User
Joined
Jul 24, 2011
Messages
68
Reaction score
0
Odp: Tp po zabiciu bossa

aaha.
i gdzie tu wpisa? co ma pisa? jak si? ubije bossa?
 

Loveniurka

Active User
Joined
Jul 24, 2011
Messages
68
Reaction score
0
Odp: Tp po zabiciu bossa

1-mia?em zamiar ci da? reputa po odpowiedzi 2 pytania ale ?e skoro tak si? pchasz na to to powinienem nie da? ale dam xd
 

Uwaga Meteor

Active User
Joined
Aug 23, 2011
Messages
62
Reaction score
3
Odp: Tp po zabiciu bossa

Dzi?kuje ;) A jak dziala ci ju? ten Napis ? bo jak nie to jeszcze co? pomy?le ;]
 

Oskar

Forum friend
Joined
Jan 24, 2009
Messages
2,256
Reaction score
331
Odp: Tp po zabiciu bossa

PHP:
local createPos, toPos = {x=899, y=1296, z=7}, {x=940, y=1272, z=7}

function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, 'Undead Gladiator')
if getCreatureName(cid):lower() == 'undead gladiator' then
	doCreateTeleport(5023, toPos, createPos)
	doSendMagicEffect(createPos, CONST_ME_ENERGYHIT)
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Masz ca?e 30 sekund!')
	return addEvent(function()
							for i = 1, 254 do
								createPos.stackpos = i
								item = item or (getThingFromPos(createPos).itemid == 5023 and getThingFromPos(createPos)) or false
							end
							if item then
								doRemoveItem(item.uid, 1)
								return doSendMagicEffect(createPos, CONST_ME_POFF)
							end return false
							end,
							30 * 1000,
							createPos)
end
return true
end
Moja wersja.
 

Loveniurka

Active User
Joined
Jul 24, 2011
Messages
68
Reaction score
0
Odp: Tp po zabiciu bossa

Meteor -nie dzia?a ;/
Oskar- nie dzia?a ;/

Zapraszam na moje inne teamty!! Jestem pocz?tkuj?cy wi?c mam du?o temat?w :p
 

Loveniurka

Active User
Joined
Jul 24, 2011
Messages
68
Reaction score
0
Odp: Tp po zabiciu bossa

Dobra tylko 2 osoby umieja i nikt inny nie japier...
Zamknijcie ten je***y temat
 
Status
Not open for further replies.
Top