Ir para conteúdo

Featured Replies

  • Respostas 21
  • Visualizações 4k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • arthur122222
    arthur122222

    Altere o que tem dentro desta script por isso:   local mechanisms = { [3091] = {pos = {x = 32744, y = 31161, z = 5}, value = 21}, -- Alchemist [3092] = {pos = {x = 32744, y = 31164, z = 5}, value =

  • Ele anulou algumas linhas de verificação com "--" --if(player:getStorageValue(30) >= mechanisms[item.uid].value) then --else --player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The gate me

Postado
  • Autor

Encontrei esse script na pasta da yalahari quest!

 

local mechanisms = {

[3091] = {pos = {x = 32744, y = 31161, z = 5}, value = 21}, -- Alchemist
[3092] = {pos = {x = 32744, y = 31164, z = 5}, value = 21},
[3093] = {pos = {x = 32833, y = 31269, z = 5}, value = 24}, -- Trade
[3094] = {pos = {x = 32833, y = 31266, z = 5}, value = 24},
[3095] = {pos = {x = 32729, y = 31200, z = 5}, value = 29}, -- Arena
[3096] = {pos = {x = 32734, y = 31200, z = 5}, value = 29},
[3097] = {pos = {x = 32776, y = 31141, z = 5}, value = 35}, -- Cemetery
[3098] = {pos = {x = 32776, y = 31145, z = 5}, value = 35},
[3099] = {pos = {x = 32874, y = 31202, z = 5}, value = 41}, -- Sunken
[3100] = {pos = {x = 32869, y = 31202, z = 5}, value = 41},
[3101] = {pos = {x = 32856, y = 31251, z = 5}, value = 45}, -- Factory
[3102] = {pos = {x = 32854, y = 31248, z = 5}, value = 45}
}

local mechanisms2 = {
[9235] = {pos = {x = 32773, y = 31116, z = 7}},
[9236] = {pos = {x = 32780, y = 31115, z = 7}}
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
local player = Player(cid)
if(mechanisms[item.uid]) then
if(player:getStorageValue(30) >= mechanisms[item.uid].value) then
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
player:teleportTo(mechanisms[item.uid].pos)
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
else
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The gate mechanism won't move. You probably have to find a way around until you figure out how to operate the gate.")
end
elseif(mechanisms2[item.uid]) then
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
player:teleportTo(mechanisms2[item.uid].pos)
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
end
return true
end

 

Alguém Sabe como desabilitar as missões?

60cb89cab929e5d4179b538c4176ab11a2e58de6.gif

Postado
  • Solução

Altere o que tem dentro desta script por isso:

 

local mechanisms = {
[3091] = {pos = {x = 32744, y = 31161, z = 5}, value = 21}, -- Alchemist
[3092] = {pos = {x = 32744, y = 31164, z = 5}, value = 21},
[3093] = {pos = {x = 32833, y = 31269, z = 5}, value = 24}, -- Trade
[3094] = {pos = {x = 32833, y = 31266, z = 5}, value = 24},
[3095] = {pos = {x = 32729, y = 31200, z = 5}, value = 29}, -- Arena
[3096] = {pos = {x = 32734, y = 31200, z = 5}, value = 29},
[3097] = {pos = {x = 32776, y = 31141, z = 5}, value = 35}, -- Cemetery
[3098] = {pos = {x = 32776, y = 31145, z = 5}, value = 35},
[3099] = {pos = {x = 32874, y = 31202, z = 5}, value = 41}, -- Sunken
[3100] = {pos = {x = 32869, y = 31202, z = 5}, value = 41},
[3101] = {pos = {x = 32854, y = 31251, z = 5}, value = 45}, -- Factory
[3102] = {pos = {x = 32856, y = 31248, z = 5}, value = 45}
}
 
local mechanisms2 = {
[9235] = {pos = {x = 32773, y = 31116, z = 7}},
[9236] = {pos = {x = 32780, y = 31115, z = 7}}
}
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
local player = Player(cid)
if(mechanisms[item.uid]) then
--if(player:getStorageValue(30) >= mechanisms[item.uid].value) then
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
player:teleportTo(mechanisms[item.uid].pos)
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
--else
--player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The gate mechanism won't move. You probably have to find a way around until you figure out how to operate the gate.")
--end
elseif(mechanisms2[item.uid]) then
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
player:teleportTo(mechanisms2[item.uid].pos)
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
end
return true
end

Editado por arthur122222 (veja o histórico de edições)

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo