Ir para conteúdo

Featured Replies

Postado

Estou aqui para pedir que me ajudem estou querendo colocar Bike no meu poké-tibia mas, encontro muitas coisas que precisam ser mudadas.

 

1º Sim só pode usar se estiver no "SlotItem" correto, porém quando eu pego a bike e lanço no chão eu continuo com a outfit e só posso tirar se colocar no "SlotItem" correto. Queria que me ajudassem a bloquear tipo: "Saia da Bicicleta Antes".

(Só preciso desse primeiro)

 

2º Eu estou com problemas os pokémons ficam rapidão o que eu faço ??? (Eu consegui Tirar Velocidade)

 

3º Quero Bloquear Bike pra Fly/ Ride/Surf! (Eu consegui Bloquear)

 

local config = {
textoAvisandoSuaVelocidade = "nao", -- Se você quiser que o script mande uma mensagem para o player dizendo a velocidade dele
premiumAccount = "sim", -- Se precisa de premium
velocidadeDaSuaBike = 6, -- A volocidade da bike, sempre bote números de 1 á 10. Caso bote mais que isso a volicidade vai ficar muito alta.
outfitMale = 1581, -- Outfit male
outfitFemale = 1581, -- Outfit female
efeito = 18, -- Efeito que ira aparescer quando der use.
storageValue = 5602, -- Storage Para a bike
usaVipSystem = "nao", -- Caso alguem use algum tipo de vip system bote sim
storageUsadaNoVipSystem = XXXX, -- Aqui boata a storage do vip system caso use
}

function onUse(cid, item, itemEx, fromPosition, toPosition)


if item.uid ~= getPlayerSlotItem(cid, CONST_SLOT_RING).uid then
doPlayerSendTextMessage(cid, 27, "Coloque a Bicicleta no lugar correto.") 
return TRUE
end


if getPlayerStorageValue(cid, 17001) == 1 
or getPlayerStorageValue(cid, 63215) == 1 
or getPlayerStorageValue(cid, 17000) == 1 then
doPlayerSendCancel(cid, "Voce nao pode usar sua Bicicleta com ride/fly/surf.")
return true
end


if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then return false end
   if getPlayerStorageValue(cid, config.storageValue) <= 0 then
          if config.premiumAccount == "sim" and isPremium(cid) or config.usaVipSystem == "sim" and 
getPlayerStorageValue(cid, config.storageUsadaNoVipSystem) >= 1 then
                 a = {lookType = config.outfitMale, lookHead = getCreatureOutfit(cid).lookHead, lookBody = 
getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet}
                 b = {lookType = config.outfitFemale, lookHead = getCreatureOutfit(cid).lookHead, lookBody = 
getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet}
                 doSendMagicEffect(getThingPos(cid), config.efeito)
                speedRate = config.velocidadeDaSuaBike * 100
                 doChangeSpeed(cid, speedRate + getPlayerStorageValue(cid, 3624))
                 setPlayerStorageValue(cid, config.storageValue, 1)
                   if getPlayerSex(cid) == 0 then
                          doSetCreatureOutfit(cid, b, -1)
                   else
                          doSetCreatureOutfit(cid, a, -1)
                   end
                   if config.textoAvisandoSuaVelocidade == "nao" then
                          doPlayerSendTextMessage(cid, 27, "You speed now is: "..getPlayerStorageValue(cid, 3624).."")
                   end  
          else
                  if config.usaVipSystem == "nao" then
                   doPlayerSendCancel(cid, "Sorry, this comand only vip accounts to be use.")
                  else
                   doPlayerSendCancel(cid, "Sorry, this comand only premium accounts to be use.")
                  end
          return TRUE
          end
   else
           setPlayerStorageValue(cid, config.storageValue, 0)
           doSendMagicEffect(getThingPos(cid), config.efeito)
           doRemoveCondition(cid, CONDITION_OUTFIT)
           retireSpeedRate = config.velocidadeDaSuaBike * 100
           playerSpeedNow = -retireSpeedRate - getPlayerStorageValue(cid, 3624)
           doChangeSpeed(cid, playerSpeedNow)
   end
return TRUE
end 

Editado por Graytex
Editei porque resolvi alguns problemas (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