Strona Główna Belxena 8.4 RPG

Forum poświęcone powstawaniu Belxena OTS


#1 2009-05-02 09:21:05

Wiesiu

Administrator

Zarejestrowany: 2009-04-03
Posty: 59
Punktów :   

Nowe łóżka

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

W data/actions actions.xm dodaj


Cytat:
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" />

W

data/actions/scripts dodaj

czerwonewyro.lua a w nim


Cytat:
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:


Cytat:
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


Cytat:
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


Cytat:
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

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)


http://images.net.pl/file/u6iur6fo6sojbxta16uv.jpg

Offline

 

Stopka forum

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


Darmowe Forum | Ciekawe Fora | Darmowe Fora
www.c-o-d.pun.pl www.blastmu.pun.pl www.chemiaumcs.pun.pl www.bottleofwine.pun.pl www.avatar-legenda-anga-gra.pun.pl