Ir para conteúdo

Sistema De Janelas 7.9 (svn 17/12)


tibiaa4e

Posts Recomendados

Eu peguei o perfeito sistema de janelas do The Taker

e apenas adaptei para 7.9 new svn

Agr version 0.2

windows.lua

-- Windows System by The Taker --

--Adapted by ta4e for svn 17/12 +--

--Only work in houses by Ispiro--

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

pos = getPlayerPosition(cid)

ishouse = getTileHouseInfo(pos)

if ishouse ~= 0 then

if item.itemid == 6438 then

doTransformItem(item.uid,item.itemid -2)

elseif item.itemid == 6436 then

doTransformItem(item.uid,item.itemid +2)

elseif item.itemid == 6439 then

doTransformItem(item.uid,item.itemid -2)

elseif item.itemid == 6437 then

doTransformItem(item.uid,item.itemid +2)

elseif item.itemid == 6442 then

doTransformItem(item.uid,item.itemid -2)

elseif item.itemid == 6440 then

doTransformItem(item.uid,item.itemid +2)

elseif item.itemid == 6441 then

doTransformItem(item.uid,item.itemid +2)

elseif item.itemid == 6443 then

doTransformItem(item.uid,item.itemid -2)

elseif item.itemid == 6444 then

doTransformItem(item.uid,item.itemid +2)

elseif item.itemid == 6445 then

doTransformItem(item.uid,item.itemid +2)

elseif item.itemid == 6446 then

doTransformItem(item.uid,item.itemid -2)

elseif item.itemid == 6447 then

doTransformItem(item.uid,item.itemid -2)

elseif item.itemid == 6450 then

doTransformItem(item.uid,item.itemid +2)

elseif item.itemid == 6451 then

doTransformItem(item.uid,item.itemid +2)

elseif item.itemid == 6452 then

doTransformItem(item.uid,item.itemid -2)

elseif item.itemid == 6453 then

doTransformItem(item.uid,item.itemid -2)

elseif item.itemid == 6454 then

doTransformItem(item.uid,item.itemid +2)

elseif item.itemid == 6455 then

doTransformItem(item.uid,item.itemid +2)

elseif item.itemid == 6456 then

doTransformItem(item.uid,item.itemid -2)

elseif item.itemid == 6457 then

doTransformItem(item.uid,item.itemid -2)

elseif item.itemid == 6458 then

doTransformItem(item.uid,item.itemid +2)

elseif item.itemid == 6459 then

doTransformItem(item.uid,item.itemid +2)

elseif item.itemid == 6460 then

doTransformItem(item.uid,item.itemid -2)

elseif item.itemid == 6461 then

doTransformItem(item.uid,item.itemid -2)

elseif item.itemid == 6462 then

doTransformItem(item.uid,item.itemid +2)

elseif item.itemid == 6463 then

doTransformItem(item.uid,item.itemid +2)

elseif item.itemid == 6464 then

doTransformItem(item.uid,item.itemid -2)

elseif item.itemid == 6465 then

doTransformItem(item.uid,item.itemid -2)

elseif item.itemid == 6466 then

doTransformItem(item.uid,item.itemid +2)

elseif item.itemid == 6467 then

doTransformItem(item.uid,item.itemid +2)

elseif item.itemid == 6468 then

doTransformItem(item.uid,item.itemid -2)

elseif item.itemid == 6469 then

doTransformItem(item.uid,item.itemid -2)

elseif item.itemid == 6470 then

doTransformItem(item.uid,item.itemid +2)

elseif item.itemid == 6471 then

doTransformItem(item.uid,item.itemid +2)

elseif item.itemid == 6472 then

doTransformItem(item.uid,item.itemid -2)

elseif item.itemid == 6473 then

doTransformItem(item.uid,item.itemid -2)

end

else

doPlayerSendTextMessage(cid,22,"You need to be in the house.")

end

return 1

end

e em actions.xml

-- windows system --

<action itemid="6436" script="windows.lua" />

<action itemid="6437" script="windows.lua" />

<action itemid="6438" script="windows.lua" />

<action itemid="6439" script="windows.lua" />

<action itemid="6440" script="windows.lua" />

<action itemid="6441" script="windows.lua" />

<action itemid="6442" script="windows.lua" />

<action itemid="6443" script="windows.lua" />

<action itemid="6444" script="windows.lua" />

<action itemid="6445" script="windows.lua" />

<action itemid="6446" script="windows.lua" />

<action itemid="6447" script="windows.lua" />

<action itemid="6450" script="windows.lua" />

<action itemid="6451" script="windows.lua" />

<action itemid="6452" script="windows.lua" />

<action itemid="6453" script="windows.lua" />

<action itemid="6454" script="windows.lua" />

<action itemid="6455" script="windows.lua" />

<action itemid="6456" script="windows.lua" />

<action itemid="6457" script="windows.lua" />

<action itemid="6458" script="windows.lua" />

<action itemid="6459" script="windows.lua" />

<action itemid="6460" script="windows.lua" />

<action itemid="6461" script="windows.lua" />

<action itemid="6462" script="windows.lua" />

<action itemid="6463" script="windows.lua" />

<action itemid="6464" script="windows.lua" />

<action itemid="6465" script="windows.lua" />

<action itemid="6466" script="windows.lua" />

<action itemid="6467" script="windows.lua" />

<action itemid="6468" script="windows.lua" />

<action itemid="6469" script="windows.lua" />

<action itemid="6470" script="windows.lua" />

<action itemid="6471" script="windows.lua" />

<action itemid="6472" script="windows.lua" />

<action itemid="6473" script="windows.lua" />

comentem

flws :bye:

Link para o comentário
Compartilhar em outros sites

  • 5 months later...
  • 2 weeks later...
×
×
  • Criar Novo...