- Fórum
- OTServ
- Recursos
- Scripting
- Actions e Talkactions
- [moveevent] Passe No Piso E Ganhe Um Item
FI
moveevent
[moveevent] Passe No Piso E Ganhe Um Item
Por Fillins, 05 de set. de 2009 em Actions e Talkactions
script
1
817
Por Fillins, 05 de set. de 2009 em Actions e Talkactions
info
Grupo: Campones
Registrado: 11/08/09
Posts: 12
Reputação: 0
Char no Tibia: Knightt forfun
Olá pessoal estou denovo ^^
muito simples este
copie qualquer arquivo no movements e cole isso q esta aki em baixo lah dentro e renomeie para "exemplo"
function onStepIn(cid, item, pos)
if item.uid == 8119 then
if getPlayerStorageValue(cid,8119) == -1 then
doPlayerAddItem(cid,5807,1)
setPlayerStorageValue(cid,8119,1)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'(coloque akie a mensagem quando ele passar no piso).')
else
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'(akie quando ele jah passou).')
end
end
return 1
end
8119 é o action id e o unique id q coloquei no piso
5807 é o id do item
e coloque no mevements xml
<movement type="StepIn" uniqueid="8119" event="script" value="exemplo".lua" />
me desculpe por não estar bem explicado
Editado Setembro 6 por Fillins