TI

[new Cvs] Depot Tiles 7.8

Por tibiaa4e, 01 de dez. de 2006 em Actions e Talkactions

script
4
1.7k
tibiaa4eT
01 de dezembro de 2006 às 22:56

ta ai depot tiles para a nova cvs

isso é qdo vc pisa no chão q afunda antes do dp ele diz qtos itens vc tem :D

add depot tiles.lua na pasta movements/scripts

function onStepIn(cid, item, pos)

actionid = 101

if item.actionid > 100 and item.actionid < 125 then

  actionid = item.actionid

end

if actionid > 100 then

  depotitems = getPlayerDepotItems(cid, actionid - 100)

 

  if depotitems == 1 then

  doPlayerSendTextMessage(cid, 20, 'Your depot contains 1 item.')

  else

  doPlayerSendTextMessage(cid, 20, 'Your depot contains '.. depotitems ..' items.')

  end

end

if item.itemid == 446 or item.itemid == 416 or item.itemid == 3216 then

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

elseif item.itemid == 426 then

  doTransformItem(item.uid, 425)

end

end

function onStepOut(cid, item, pos)

if item.itemid == 447 or item.itemid == 417 or item.itemid == 3217 then

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

elseif item.itemid == 425 then

  doTransformItem(item.uid, 426)

end

end

e em movements.xml add :

<movevent event="StepIn" itemid="446" script="depot tiles.lua" />

<movevent event="StepOut" itemid="447" script="depot tiles.lua" />

<movevent event="StepIn" itemid="426" script="depot tiles.lua" />

<movevent event="StepOut" itemid="425" script="depot tiles.lua" />

<movevent event="StepIn" itemid="416" script="depot tiles.lua" />

<movevent event="StepOut" itemid="417" script="depot tiles.lua" />

<movevent event="StepIn" itemid="3216" script="depot tiles.lua" />

<movevent event="StepOut" itemid="3217" script="depot tiles.lua" />

eu fiz 50% só ate a parte do q sai do tile

ai eu catei o resto d eum script

q naum axei de novo e por isso naum sei os creditos :/

flws :bye:

shemmueS
02 de dezembro de 2006 às 01:58

Opa tibiaa4e sempre ajudando us users da nova CVS :D

Vo ja introduzi na minha versao cvs aqui vlw :bigsmile:

:bye:

KenzoK
02 de dezembro de 2006 às 14:45

Muito Bom cara

Continue assim ^^

//Kenzo

2 meses depois...
TemplarrT
20 de fevereiro de 2007 às 23:39

Muito bom, até pros cara q n tem paciencia, continue assim ^^

 

Abraço,

Templarr.