local items = {
[2146] = {
1285, 1357, 3608, 3632, 3666, 6999, 7003
},
[2147] = {
1290, 1358, 3609, 3633, 3667, 7000
},
[2149] = {
1335, 1359, 3615,3534, 3668, 7001
},
[2150] = {
1356, 3607, 3616, 3635, 3670, 7002
}
}
local firewalker = {x = 100, y = 100, z = 7} -- POS DE ONDE VÃO USAR A PICK PARA SEREM TELEPORTADOS
function onUse(cid, item, frompos, item2, topos)
if topos.x == firewalker.x and topos.y == firewalker.y and topos.z == firewalker.z then
firewalker.z = firewalker.z - 1
return doTeleportThing(cid, firewalker)
end
if math.random(1, 20) > 15 then
for item, itemList in pairs(items) do
if isInArray(itemList, item2.itemid) == TRUE then
doSendMagicEffect(topos,34)
doTransformItem(item2.uid,4997)
doPlayerAddItem(cid, item, 1)
doDecayItem(item2.uid)
return 1
end
end
else
doSendMagicEffect(topos,2)
end
return 1
end
Apenas adicionei umas funções no seu script de pick, para não perdermos as funções atuais deles.
Para funcionar basta você configurar a posição de onde vão usar a pick no script.


info
Grupo: Campones
Registrado: 16/12/07
Posts: 10
Reputação: 0
ai galera da Xtibia muito bom o Forum to aprendenu Muito Com vc .
minha duvida e a seguinte
baixei um servidor de vcs ai o real server 8.6
e quando uso pick pra ir na quest da pithius nada acontece so sai uma fumacinha mais o player nao e teleportado pra baixo
entaum resolvi faze eu mesmo a action, so que nao manjo muito entaum peguei um tuto aqui do forum pa tentar fazer
esse aqui:
function onUse(cid, item, frompos, item2, topos) tilepos = {x=topos.x, y=topos.y, z=topos.z} if item2.itemid == 0 then return 0 end if item2.itemid == 6299 and tilepos.x == 329 and tilepos.y == 772 and tilepos.z == 9 then player1pos = {x=328, y=772, z=9, stackpos=253} player1 = getThingfromPos(player1pos) if player1.itemid > 0 then nplayer1pos = {x=329, y=772, z=10} doSendMagicEffect(player1pos,2) doTeleportThing(player1.uid,nplayer1pos) doSendMagicEffect(nplayer1pos,10) else doSendMagicEffect(frompos,2) doPlayerSendCancel(cid,"You are not in the right place!") end end return 1 endmais nao esta funcionando tbm oque fiz de errado e qual action devo colocar na action.xml pra nao bugar o uso da pick nos outro buracos!
esse e o script da PIck que uso desde ja agradeço
local items = { [2146] = { 1285, 1357, 3608, 3632, 3666, 6999, 7003 }, [2147] = { 1290, 1358, 3609, 3633, 3667, 7000 }, [2149] = { 1335, 1359, 3615,3534, 3668, 7001 }, [2150] = { 1356, 3607, 3616, 3635, 3670, 7002 } } function onUse(cid, item, frompos, item2, topos) if math.random(1, 20) > 15 then for item, itemList in pairs(items) do if isInArray(itemList, item2.itemid) == TRUE then doSendMagicEffect(topos,34) doTransformItem(item2.uid,4997) doPlayerAddItem(cid, item, 1) doDecayItem(item2.uid) return 1 end end else doSendMagicEffect(topos,2) end return 1 endSei que VODKART e BOm nisso mais tbm deve ter outras pessoas que pode me ajudar,
e meio que urgente pq jaja pessoal vai quere faze firewalker,e nao vao conseguir ...
abri ontem o servidor ta TUDo blz graça as vcs que estao me ensinando muti nos topicos =D
VODCARK depois em manda seu Msn Por Mp se possivel vc e um cara nota 10 e queria sabe onde vc aprendeu faze uns script tao simples
e perfeitoVlww