Centrum Ots

Forum Poświęcone OTS

  • Nie jesteś zalogowany.
  • Polecamy: Komputery

Ogłoszenie

°Witaj Na Forum !!°
ZAPRASZAMY DO REJESTRACJI!

#1 2008-08-04 15:56:08

Darekk

http://www.opentibia.grupy-dyskusyjne.pl/images/ranks/99_00.png

Zarejestrowany: 2008-08-04
Posty: 5
Punktów :   

[8.1] Nowe łóżka.

Elo mam dla was skrypty z nowymi, łużkami skrypt nie jest mój

Po kilknieciu use na paczke kliknij na poduszke i zaimeni sie na nowe łóżko

W data/actions/scripts dodaj

czerwonewyro.lua a w nim

Kod:

-----------------------Made by Piratek------------------
function onUse(cid, item, frompos, item2, topos)
local lolpos = {x = topos.x+1, y = topos.y, z = topos.z, stackpos = 1}
local lol = getThingfromPos(lolpos)
local noobpos = {x = topos.x, y = topos.y+1, z = topos.z, stackpos = 1}
local noob = getThingfromPos(noobpos)
if item.itemid == 7904 then
if item2.itemid == 1754 then
doTransformItem(item2.uid,7815)
doTransformItem(noob.uid,7816)
doRemoveItem(item.uid,1)
elseif item2.itemid == 1760 then
doTransformItem(item2.uid,7817)
doTransformItem(lol.uid,7818)
doRemoveItem(item.uid,1)
end
end
end

zielonewyro.lua a w nim:

Kod:

-----------------------Made by Piratek------------------
function onUse(cid, item, frompos, item2, topos)
local lolpos = {x = topos.x+1, y = topos.y, z = topos.z, stackpos = 1}
local lol = getThingfromPos(lolpos)
local noobpos = {x = topos.x, y = topos.y+1, z = topos.z, stackpos = 1}
local noob = getThingfromPos(noobpos)
if item.itemid == 7905 then
if item2.itemid == 1754 then
doTransformItem(item2.uid,7811)
doTransformItem(noob.uid,7812)
doRemoveItem(item.uid,1)
elseif item2.itemid == 1760 then
doTransformItem(item2.uid,7813)
doTransformItem(lol.uid,7814)
doRemoveItem(item.uid,1)
end
end
end

zoltewyro.lua w nim

Kod:

-----------------------Made by Piratek------------------
function onUse(cid, item, frompos, item2, topos)
local lolpos = {x = topos.x+1, y = topos.y, z = topos.z, stackpos = 1}
local lol = getThingfromPos(lolpos)
local noobpos = {x = topos.x, y = topos.y+1, z = topos.z, stackpos = 1}
local noob = getThingfromPos(noobpos)
if item.itemid == 7906 then
if item2.itemid == 1754 then
doTransformItem(item2.uid,7819)
doTransformItem(noob.uid,7820)
doRemoveItem(item.uid,1)
elseif item2.itemid == 1760 then
doTransformItem(item2.uid,7821)
doTransformItem(lol.uid,7822)
doRemoveItem(item.uid,1)
end
end
end

removewyro.lua a w nim

Kod:

-----------------------Made by Piratek------------------
function onUse(cid, item, frompos, item2, topos)
local lolpos = {x = topos.x+1, y = topos.y, z = topos.z, stackpos = 1}
local lol = getThingfromPos(lolpos)
local noobpos = {x = topos.x, y = topos.y+1, z = topos.z, stackpos = 1}
local noob = getThingfromPos(noobpos)
if item.itemid == 7907 then
if item2.itemid == 7819 then
doTransformItem(item2.uid,1754)
doTransformItem(noob.uid,1755)
doRemoveItem(item.uid,1)
elseif item2.itemid == 7821 then
doTransformItem(item2.uid,1760)
doTransformItem(lol.uid,1761)
doRemoveItem(item.uid,1)

elseif item2.itemid == 7811 then
doTransformItem(item2.uid,1754)
doTransformItem(noob.uid,1755)
doRemoveItem(item.uid,1)
elseif item2.itemid == 7813 then
doTransformItem(item2.uid,1760)
doTransformItem(lol.uid,1761)
doRemoveItem(item.uid,1)

elseif item2.itemid == 7815 then
doTransformItem(item2.uid,1754)
doTransformItem(noob.uid,1755)
doRemoveItem(item.uid,1)
elseif item2.itemid == 7817 then
doTransformItem(item2.uid,1760)
doTransformItem(lol.uid,1761)
doRemoveItem(item.uid,1)
end
end
end

W data/actions actions.xml dodajemy:

Kod:

<action itemid="7904" script="czerwonewyro.lua" />
<action itemid="7905" script="zielonewyro.lua" />
<action itemid="7906" script="zoltewyro.lua" />
<action itemid="7907" script="removewyro.lua" />

Trzeba zrobić np npc lub dodać do npc żeby mógł to sprzedawać lub poprostu gmem wyczarować
id 7904 (czerwone łóżko), 7905(zielone łóżko), 7906(zołte łóżko), 7907(kasuje nakrycia i powraca stary
wyglad)

Offline

 

#2 2008-08-04 19:51:11

Viper

http://www.opentibia.grupy-dyskusyjne.pl/images/ranks/999_administrator.png

Skąd: Stalowa Wola
Zarejestrowany: 2008-07-18
Posty: 80
Punktów :   -3 
WWW

Re: [8.1] Nowe łóżka.

noo git ...
jeszcze tego nie widziałem bo nie szukałem a przypadkowo sie nie natknąłem ...
jak bede otsa robił to użyje ... 10/10 repucik podoba sie mi


Buu! Co sie gapisz ? Sygnatury nie widziałeś ?

Offline

 

Stopka forum

RSS
Powered by PunBB
© Copyright 2002–2008 PunBB
Polityka cookies - Wersja Lo-Fi

[ Generated in 0.095 seconds, 11 queries executed ]


Darmowe Forum | Ciekawe Fora | Darmowe Fora
www.bolecairsoft.pun.pl www.narwancy-team.pun.pl www.forum-websitex5.pun.pl www.zimlublin.pun.pl www.slodkiflirtrpg.pun.pl