Ir para conteúdo

Posts Recomendados

to aki hje pq tenho um scirpt aki que e para cria uma escada um determinado lugar

 

aki esta o script

 

mais n ta indo n sei por que

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

wall1 = {x=461, y=1374, z=10, stackpos=1}

getwall1 = getThingfromPos(wall1)

 

if item.uid == 10225 then

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

doCreateItem(1386,1,wall1)

end

end

 

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

wall1 = {x=461, y=1374, z=10, stackpos=1}

getwall1 = getThingfromPos(wall1)

 

if item.uid == 10225 then

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

doRemoveItem(getwall1.uid,1)

 

end

 

return 1

end

 

no xml colokei assim

 

<movement event="StepIn" actionid="10225" script="CreateLadder.lua" />

<movement event="StepOut" actionid="10225" script="CreateLadder.lua" />

 

Mim ajudam ae por favor

Editado por ka9
Link para o comentário
https://xtibia.com/forum/topic/119045-criando-uma-escada-84/
Compartilhar em outros sites

seu script não funcionava porque você não declarou o local.

 

refiz o script retirei o desnecessario (if item.uid == 10225 then,doTransformItem(item.uid, item.itemid + 1),doTransformItem(item.uid, item.itemid - 1),wall1 = {x=461, y=1374, z=10, stackpos=1}

getwall1 = getThingfromPos(wall1))

 

e adicionei o que deveria estar no script.

 

function onStepIn(cid, item, pos)

wallpos = {x=xxx, y=xxx, z=x, stackpos=1}

if isCreature(cid) == TRUE then

doCreateItem(1386,1,wallpos)

end

end

 

function onStepOut(cid, item, pos)

 

if isCreature(cid) == TRUE then

escada = getThingfromPos(wallpos)

doRemoveItem(escada.uid,1)

end

end

Editado por Marcryzius
Link para o comentário
https://xtibia.com/forum/topic/119045-criando-uma-escada-84/#findComment-783174
Compartilhar em outros sites

Nen Pegou eu fiz pelo o tile..

 

quando o player fica em cima do tile aparece a escada quando ele sair desaparece a escada

 

queria pela a lavanca ;d

 

tás aki

[function onStepIn(cid, item, pos)

 

pos = { x=411, y=434, z=9, stackpos=1}

escada = getThingfromPos(pos)

doCreateItem(1386,1,pos)

 

return 1

end

 

function onStepOut(cid, item, pos)

 

pos = { x=411, y=434, z=9, stackpos=1}

escada = getThingfromPos(pos)

doRemoveItem(escada.uid,1)

 

return 1

end/quote]

 

ajudem ae ;dddd

Link para o comentário
https://xtibia.com/forum/topic/119045-criando-uma-escada-84/#findComment-784198
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...