Zapraszam na Forum Oparte o Tibi
Witam mam dla was pewien skrypt,ale
uprzedzam nie jest mój więc nie oceniać mnie surowo
Jeżeli skrypt był już na tibia11 to przepraszam autora
ale nie znalazłem
Do data/actions/scripts tworzymy:
tapestry , tapestry1 , tapestry2 , pirate tapestry , pirate tapestry1 i pirate tapestry2.
I do tapestry wklejamy to:
Spoiler:
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
Do tapestry1 to:
Spoiler:
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
Do tapestry2 to:
Spoiler:
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 == 1879 then
doPlayerAddItem(cid,1880,1)
else
return 0
end
doRemoveItem(item.uid,1)
return 1
end
I do pirate tapestry to:
Spoiler:
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 == 5616 then
npos.x = npos.x - 1
doCreateItem(5615, 1, npos)
else
return 0
end
doRemoveItem(item.uid,1)
return 1
end
do pirate tapestry1 to:
Spoiler:
function onUse(cid, item, frompos, item2, topos)
npos = {x=topos.x, y=topos.y, z=topos.z}
if item.itemid == 5615 then
npos.y = npos.y - 1
doCreateItem(5614, 1, npos)
else
return 0
end
doRemoveItem(item.uid,1)
return 1
end
I NARESZCIE KONIEC DO PIRATE TAPESTRY2 TO:
Spoiler:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 5614 then
doPlayerAddItem(cid,5616,1)
else
return 0
end
doRemoveItem(item.uid,1)
return 1
end
NO PRAWIE KONIEC DO data/actions/actions.xml dodajemy:
Spoiler:
-- Tapestry
<action itemid="5616" script="pirate tapestry.lua" />
<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="5615" script="pirate tapestry1.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="5614" script="pirate tapestry2.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" />
Mam NADZIEJE ze sie PRZYDA ! xD ;P
Offline