pedras ou bixos em forma de pedra?(eu tinha visto um video disso eram bixos, se tem sangue é um bixo só pra avisa)
info
Group: Artesão
Joined: 07/04/12
Posts: 139
Reputation: +4

pedras ou bixos em forma de pedra?(eu tinha visto um video disso eram bixos, se tem sangue é um bixo só pra avisa)
Queria um Script pode ser de Actions de puxar alavanca ou comando Talkactions que quando executado faz aparecer pedras em determinados lugares x,y,z configurados no script.
Edited Junho 5 by TiagoBordin1988
info
Group: Artesão
Joined: 10/11/11
Posts: 118
Reputation: +2

em data/actions/scripts, cree arquivo lua waller.lua
function onUse(cid, item, frompos, item2, topos)
wall1 = {x=1136, y=835, z=5, stackpos=1}
wall2 = {x=1136, y=836, z=5, stackpos=1}
getwall1 = getThingfromPos(wall1)
getwall2 = getThingfromPos(wall2)
if item.uid == 7002 and item.itemid == 1945 then
doRemoveItem(getwall1.uid,1)
doRemoveItem(getwall2.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 7002 and item.itemid == 1946 then
doCreateItem(10546,1,wall1)
doCreateItem(10546,1,wall2)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return true
end
em Data/actions abre arquivo actions.xml e adicione
<action uniqueid="7002" event="script" value="waller.lua" />
1.- select pos do pedra
2.- select item id do pedra
3.- uid em rmebermap do palanca
Edited Junho 5 by beenii
info
Group: Artesão
Joined: 07/04/12
Posts: 139
Reputation: +4

em data/actions/scripts, cree arquivo lua waller.lua
function onUse(cid, item, frompos, item2, topos)
wall1 = {x=1136, y=835, z=5, stackpos=1}
wall2 = {x=1136, y=836, z=5, stackpos=1}
getwall1 = getThingfromPos(wall1)
getwall2 = getThingfromPos(wall2)
if item.uid == 7002 and item.itemid == 1945 then
doRemoveItem(getwall1.uid,1)
doRemoveItem(getwall2.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 7002 and item.itemid == 1946 then
doCreateItem(10546,1,wall1)
doCreateItem(10546,1,wall2)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return true
end
em Data/actions abre arquivo actions.xml e adicione
<action uniqueid="7002" event="script" value="waller.lua" />
1.- select pos do pedra
2.- select item id do pedra
3.- uid em rmebermap do palanca
Obrigado =D Rep +
info
Group: Conde
Joined: 21/03/12
Posts: 651
Reputation: +89
Tibia Character: Pussycat !

Duvida Sanada Tópico reportado




info
Group: Artesão
Joined: 07/04/12
Posts: 139
Reputation: +4
Então quero saber se alguem tem um Script que faz aparecer pedra pra min usar no Evento Dota, cada vez que faço evento tenho que colocar as pedras denovo, então queria um script que ao executar aparecia as pedras nas coordenadas x,y,z =D
Edited Junho 5 by TiagoBordin1988