DO

To Com Problema No Depot Tiles.lua

Por dougauche, 14 de dez. de 2007 em Actions e Talkactions

script
5
1.5k
dougaucheD
14 de dezembro de 2007 às 04:11

To com problema né

 

 

No Moviments.xml ta assim

<!-- Depot Tiles -->
<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" />

 

No Script ta assim :

function onStepIn(cid, item, pos)
if isPlayer(cid) then
	actionid = 101
	if item.actionid > 100 and item.actionid < 125 then
		actionid = item.actionid
	end

	if actionid > 100 then
		if (getTilePzInfo(pos) == TRUE) 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
	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

Editado Dezembro 14 por Acuhewskao

14 de dezembro de 2007 às 10:09

E qual o problema?

dougaucheD
15 de dezembro de 2007 às 11:29

O problemas que fica aparecendo no Aple mols "Lua Script Erro: data/movements/scripts/deport title.lua

15 de dezembro de 2007 às 17:44

Era para estar funcionando. De qualquer jeito tente com este, se for igual ao seu nao sei oque fazer:

 

function onStepIn(cid, item, pos)

if isPlayer(cid) then

actionid = 101

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

actionid = item.actionid

end

 

if actionid > 100 then

if (getTilePzInfo(pos) == TRUE) 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

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

Editado Dezembro 15 por _ferrari_

2 meses depois...
TprocheiraT
10 de fevereiro de 2008 às 22:54

Local errado. Mais atenção na próxima.

 

Tprocheira.