Forum Polityka Strona Główna
RejestracjaSzukajFAQUżytkownicyGrupyGalerieZaloguj
Tapestry na scianach

 
Odpowiedz do tematu    Forum Polityka Strona Główna » Scrypty Zobacz poprzedni temat
Zobacz następny temat
Tapestry na scianach

Czy chcecie tapestry system?
Tak
100%
 100%  [ 2 ]
Nie
0%
 0%  [ 0 ]
Wszystkich Głosów : 2

Autor Wiadomość
Ojciec Rydzyk
Gość







Post Tapestry na scianach
To jest fajne bo ozdabia chatke wiec daje tutaj skrypta gm zrob to pls Smile

towrzymy plik: data\actions\scripts\tapestry.lua


function onUse(cid, item, frompos, item2, topos)
npos = {x=topos.x, y=topos.y, z=topos.z}

if frompos.x == 65535 then
doPlayerSendCancel(cid, "Daj to na ziemie i dopiero rozkladaj !!")
return 1
end
if item.itemid == 1869 then
npos.x = npos.x - 1
doCreateItem(1868, 1, npos)
elseif item.itemid == 1857 then
npos.x = npos.x - 1
doCreateItem(1856, 1, npos)
elseif item.itemid == 1860 then
npos.x = npos.x - 1
doCreateItem(1859, 1, npos)
elseif item.itemid == 1863 then
npos.x = npos.x - 1
doCreateItem(1862, 1, npos)
elseif item.itemid == 1866 then
npos.x = npos.x - 1
doCreateItem(1865, 1, npos)
elseif item.itemid == 1872 then
npos.x = npos.x - 1
doCreateItem(1871, 1, npos)
elseif item.itemid == 1880 then
npos.x = npos.x - 1
doCreateItem(1879, 1, npos)
else
return 0
end
doRemoveItem(item.uid,1)
return 1
end



drugi o nazwie tapestry1.lua


function onUse(cid, item, frompos, item2, topos)
npos = {x=topos.x, y=topos.y, z=topos.z}

if item.itemid == 1868 then
npos.y = npos.y - 1
doCreateItem(1867, 1, npos)

elseif item.itemid == 1856 then
npos.y = npos.y - 1
doCreateItem(1855, 1, npos)


elseif item.itemid == 1859 then
npos.y = npos.y - 1
doCreateItem(1858, 1, npos)

elseif item.itemid == 1862 then
npos.y = npos.y - 1
doCreateItem(1861, 1, npos)

elseif item.itemid == 1865 then
npos.y = npos.y - 1
doCreateItem(1864, 1, npos)

elseif item.itemid == 1871 then
npos.y = npos.y - 1
doCreateItem(1870, 1, npos)

elseif item.itemid == 1879 then
npos.y = npos.y - 1
doCreateItem(1878, 1, npos)
else
return 0
end
doRemoveItem(item.uid,1)
return 1
end


trzeci: tapestry2.lua


function onUse(cid, item, frompos, item2, topos)


if item.itemid == 1867 then

doPlayerAddItem(cid,1869,1)
elseif item.itemid == 1855 then

doPlayerAddItem(cid,1857,1)
elseif item.itemid == 1858 then

doPlayerAddItem(cid,1860,1)
elseif item.itemid == 1861 then

doPlayerAddItem(cid,1863,1)
elseif item.itemid == 1864 then

doPlayerAddItem(cid,1866,1)
elseif item.itemid == 1870 then

doPlayerAddItem(cid,1872,1)
elseif item.itemid == 1878 then

doPlayerAddItem(cid,1880,1)
else
return 0
end
doRemoveItem(item.uid,1)
return 1
end


teraz jeszcze tylko w actions.xml dodajemy linijki:


<action itemid="1869" script="tapestry.lua" />
<action itemid="1857" script="tapestry.lua" />
<action itemid="1860" script="tapestry.lua" />
<action itemid="1863" script="tapestry.lua" />
<action itemid="1866" script="tapestry.lua" />
<action itemid="1880" script="tapestry.lua" />
<action itemid="1872" script="tapestry.lua" />

<action itemid="1868" script="tapestry1.lua" />
<action itemid="1856" script="tapestry1.lua" />
<action itemid="1859" script="tapestry1.lua" />
<action itemid="1862" script="tapestry1.lua" />
<action itemid="1865" script="tapestry1.lua" />
<action itemid="1871" script="tapestry1.lua" />
<action itemid="1879" script="tapestry1.lua" />

<action itemid="1867" script="tapestry2.lua" />
<action itemid="1855" script="tapestry2.lua" />
<action itemid="1858" script="tapestry2.lua" />
<action itemid="1861" script="tapestry2.lua" />
<action itemid="1864" script="tapestry2.lua" />
<action itemid="1870" script="tapestry2.lua" />
<action itemid="1878" script="tapestry2.lua" />


I gotowe


Ostatnio zmieniony przez Ojciec Rydzyk dnia Śro 22:11, 12 Lip 2006, w całości zmieniany 1 raz
Śro 19:12, 12 Lip 2006
tomo
Poczatkujący
Poczatkujący



Dołączył: 12 Lip 2006
Posty: 2
Przeczytał: 0 tematów

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

Post
ciekawe, jak wypali to moze byc fajne


Post został pochwalony 0 razy
Śro 21:45, 12 Lip 2006 Zobacz profil autora
Ojciec Rydzyk
Gość







Post
Na swoim ots miałem ale niestety Gm powiedział, że niebedzie tego robił wiec zakładam ankiete... głosujemy
Śro 21:52, 12 Lip 2006
tomo
Poczatkujący
Poczatkujący



Dołączył: 12 Lip 2006
Posty: 2
Przeczytał: 0 tematów

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

Post
mam pytanie a taki serwer, mozna zalozyc darmowo czy to cos kosztuje?


Post został pochwalony 0 razy
Śro 22:04, 12 Lip 2006 Zobacz profil autora
Ojciec Rydzyk
Gość







Post
Za darmo ale niebierz się za to bo niewarto bardzo szybko ci sie znudzi, a pozatym nikt ci tutaj niewytłumaczy jak to zrobić gdyz poradniki są na www.otfans.fora.pl i [link widoczny dla zalogowanych]
Śro 22:13, 12 Lip 2006
Abpojoderup
Poczatkujący
Poczatkujący



Dołączył: 21 Kwi 2007
Posty: 20
Przeczytał: 0 tematów

Ostrzeżeń: 0/5


Post
[link widoczny dla zalogowanych]


Post został pochwalony 0 razy
Sob 1:12, 21 Kwi 2007 Zobacz profil autora
Wyświetl posty z ostatnich:    
Odpowiedz do tematu    Forum Polityka Strona Główna » Scrypty Wszystkie czasy w strefie EET (Europa)
Strona 1 z 1

 
Skocz do: 
Możesz pisać nowe tematy
Możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach


fora.pl - załóż własne forum dyskusyjne za darmo
Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.
Regulamin