Forum Zostalo Stworzone By Pomagać Ludzią W Grze Tibia Ots
Po kliknięciu use na paczkę kliknij na poduszkę i zamieni sie na nowe łóżko
Przechodzimy W data/actions/actions.xml
Robimy notatnik , wpisujemy w nim:
<action itemid="7904" script="czerwonewyro.lua" />
<action itemid="7905" script="zielonewyro.lua" />
<action itemid="7906" script="zoltewyro.lua" />
<action itemid="7907" script="removewyro.lua" />
Przechodzimy w data/actions/scripts
Robimy notatnik
W notatniku wpisujemy:
-----------------------Made by Michal------------------
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
Zapisujemy jako: czerwonewyro.lua
Robimy notatnik
W notatniku wpisujemy:
-----------------------Made by Michal------------------
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
Zapisujemy jako: zielonewyro.lua
Robimy notatnik
W notatniku wpisujemy:
-----------------------Made by Michal------------------
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
Zapisujemy jako: zoltewyro.lua
Robimy notatnik
W notatniku wpisujemy:
-----------------------Made by Michal------------------
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
Zapisujemy jako: 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