Thanks rep+
ou nessa parte aqui o que eu boto nela?
local room = { -- room with demons
fromX = 33229,
fromY = 31697,
fromZ = 14,
toX = 33224,
toY = 31697,
toZ = 14
Thanks rep+
ou nessa parte aqui o que eu boto nela?
local room = { -- room with demons
fromX = 33229,
fromY = 31697,
fromZ = 14,
toX = 33224,
toY = 31697,
toZ = 14
Editado Novembro 26 por icaro2507
info
Grupo: Campones
Registrado: 25/11/11
Posts: 6
Reputação: 0
Char no Tibia: Sekmeet
Olá.
Bom eu sou novo aqui mas tenho um probleminha no meu ot e um ROOK WAR TECHLOOK 8.60 eu criei uma annihilator mas a alavanca só funciona uma vez e e toda hora tenho q ir la com o GOD e puxa ela de volta pra posição correta _\_ .
Eu procurei muitos tutoriais no Xtibia mas não achei nenhum
Eu gostaria que algum de vocês pudesse me ajudar com isso?
o script q esta la e esse
-- annihilator lever
function onUse(cid, item, frompos, item2, topos)
if item.uid == 7005 and item.itemid == 1945 then
player1pos = {x=1063, y=986, z=7, stackpos=253}
player1 = getThingfromPos(player1pos)
player2pos = {x=1062, y=986, z=7, stackpos=253}
player2 = getThingfromPos(player2pos)
player3pos = {x=1061, y=986, z=7, stackpos=253}
player3 = getThingfromPos(player3pos)
player4pos = {x=1060, y=986, z=7, stackpos=253}
player4 = getThingfromPos(player4pos)
if player1.itemid > 0 and player2.itemid > 0 and player3.itemid > 0 and player4.itemid > 0 then
queststatus1 = getPlayerStorageValue(player1.uid,7005)
queststatus2 = getPlayerStorageValue(player2.uid,7005)
queststatus3 = getPlayerStorageValue(player3.uid,7005)
queststatus4 = getPlayerStorageValue(player4.uid,7005)
if queststatus1 == -1 and queststatus2 == -1 and queststatus3 == -1 and queststatus4 == -1 then
nplayer1pos = {x=1063, y=986, z=13}
nplayer2pos = {x=1062, y=986, z=13}
nplayer3pos = {x=1061, y=986, z=13}
nplayer4pos = {x=1060, y=986, z=13}
doSendMagicEffect(player1pos,2)
doSendMagicEffect(player2pos,2)
doSendMagicEffect(player3pos,2)
doSendMagicEffect(player4pos,2)
doTeleportThing(player1.uid,nplayer1pos)
doTeleportThing(player2.uid,nplayer2pos)
doTeleportThing(player3.uid,nplayer3pos)
doTeleportThing(player4.uid,nplayer4pos)
doSendMagicEffect(nplayer1pos,10)
doSendMagicEffect(nplayer2pos,10)
doSendMagicEffect(nplayer3pos,10)
doSendMagicEffect(nplayer4pos,10)
doTransformItem(item.uid,item.itemid+1)
else
doPlayerSendCancel(cid,"Somebody in your team has already done this quest.")
end
else
doPlayerSendCancel(cid,"You need four players four this quest.")
end
elseif item.uid ==7005 and item.itemid == 1946 then
if getPlayerAccess(cid) > 0 then
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
else
return 0
end
return 1
end