Forum Tibia Strona Główna
FAQ Profil Szukaj Użytkownicy
Grupy

Prywatne Wiadomości

Rejestracja Zaloguj
Galerie

[8.0][Movements]Trap Room Quest
Zobacz poprzedni temat | Zobacz następny temat >

Napisz nowy temat Odpowiedz do tematu
Tibia > Skrypty

Autor Wiadomość
Klimko
Go



Dołączył: 08 Lip 2007
Posty: 9
Przeczytał: 0 tematów

Ostrzeżeń: 0/5
Skąd: Katowice

[8.0][Movements]Trap Room Quest    

1)FAQ
Cytat:
Q: Jak to działa ?
A: Zamyka cie w pokoju na jakis czas (tylko raz) ;D

Q: Ten skrypt może summonowac potworki ?
A: Tak, patrz punkt 4b.

Q: Jest to Movement skrypt ?
A: Tak xP

Q: Czemu zrobiłes go tak łatwego do ustawienia?
A: Żeby newbies mogli go używać.


2)Options

Cytat:
strogeValue = 8000 -- Storage Value
text = 'Wtf o.O !?' -- teks ktory sie pokaże po zamknieciu drzwi
waitTime = 60 -- czas do otworzenia drzwi
dir = North -- kierunek, gdzie gracz zostanie przesuniety po wejsciu na drzwi(North, South, West, East)
-- monsters options --
monsterpos = {x=187, y=445, z=7} -- pozycja 1 potwora
monsterpos2 = {x=189, y=445, z=7} -- pozycja 2 potwora
monsterpos3 = {x=188, y=446, z=7} -- pozycja 3 potwora
monsterpos4 = {x=191, y=446, z=7} -- pozycja 4 potwora
monster1name = 'Rat' -- nazwa 1 potwora
monster2name = 'Rat' -- nazwa 2 potwora
monster3name = 'Rat' -- nazwa 3 potwora
monster4name = 'Rat' -- nazwa4 potwora


3) Screenshot
Cytat:


4) Skrypt
a) nie summonujący potworów.
w trap_room.lua
Kod PHP:
-- Trap Room via Movements by Duda1992 --
function doorDecay(p)

-- do not touch --
pos = {x=p.pos.x, y=p.pos.y, z=p.pos.z, stackpos = 1}
item = getThingfromPos(pos)
doTransformItem(item.uid, p.itemid)
end
-- do not touch -- end --

function onStepIn(cid, item, pos)

-- options --
strogeValue = 8000
text = 'Wtf o.O !?'
waitTime = 60
dir = North
-- end options --

-- do not touch --
isDone = getPlayerStorageValue(cid,strogeValue)
-- do not touch -- end --

-- script --
if isPlayer(cid) == 1 then
if isDone == -1 then

doMoveCreature(cid, dir)
doTransformItem(item.uid, item.itemid-1)
setPlayerStorageValue(cid, strogeValue, 1)
doPlayerSay(cid,text,1)
p = {pos = pos, itemid = item.itemid}
addEvent(doorDecay, waitTime*1000, p)

end
end
end
-- end script --

w actions.xml
Kod PHP:
<movevent event="StepIn" actionid="8000" script="trap_room.lua" />


b) summonujący potwory w pokoju.
w trap_room.lua
Kod PHP:
-- Trap Room via Movements by Duda1992 --
function doorDecay(p)

-- do not touch --
pos = {x=p.pos.x, y=p.pos.y, z=p.pos.z, stackpos = 1}
item = getThingfromPos(pos)
doTransformItem(item.uid, p.itemid)
end
-- do not touch -- end --

function onStepIn(cid, item, pos)

-- options --
strogeValue = 8000
text = 'Wtf o.O !?'
waitTime = 60
dir = North
-- monsters options --
monsterpos = {x=187, y=445, z=7}
monsterpos2 = {x=189, y=445, z=7}
monsterpos3 = {x=188, y=446, z=7}
monsterpos4 = {x=191, y=446, z=7}
monster1name = 'Rat'
monster2name = 'Rat'
monster3name = 'Rat'
monster4name = 'Rat'
-- end monsters options --
-- end options --

-- do not touch --
isDone = getPlayerStorageValue(cid,strogeValue)
-- do not touch -- end --

-- script --
if isPlayer(cid) == 1 then
if isDone == -1 then

doMoveCreature(cid, dir)
doTransformItem(item.uid, item.itemid-1)
doSummonCreature(monster1name, monsterpos)
doSummonCreature(monster2name, monsterpos2)
doSummonCreature(monster3name, monsterpos3)
doSummonCreature(monster4name, monsterpos4)
setPlayerStorageValue(cid, strogeValue, 1)
doPlayerSay(cid,text,1)
p = {pos = pos, itemid = item.itemid}
addEvent(doorDecay, waitTime*1000, p)

end
end
end
-- end script --

w actions.xml
Kod PHP:
<movevent event="StepIn" actionid="8000" script="trap_room.lua" />


5) Have Fun ^_^

6)BUG
Cytat:
I nie znalazłem żadnego błedu Very Happy


Post został pochwalony 0 razy
Post Nie 1:40, 08 Lip 2007
 Zobacz profil autora
Napisz nowy temat Odpowiedz do tematu
Forum Jump:
Skocz do:  

Wszystkie czasy w strefie EET (Europa).
Obecny czas to Czw 9:51, 25 Kwi 2024
  Wyświetl posty z ostatnich:      


fora.pl - załóż własne forum dyskusyjne za darmo
Powered by phpBB: © 2001, 2002 phpBB Group
Template created by The Fathom
Based on template of Nick Mahon
Regulamin