Ir para conteúdo

bike system duvida, veiculo system não deixar chamar pokemon qd esta usando

Featured Replies

Postado

Tenho esse bike system eu uso ele normal (consiguo chamar e voltar o pokemon)

Spoiler

-- [[ Bike Sistema 100% -- By SmiX ^}^ ]] --
--[[ • Ela deixa você mais rápido a partir da volocidade determinada no script + sua estamina.]]--
--[[ • Adiciona e remove outfit do player.]]--
--[[ #Lembrando todos os campos com variaveis escritas são preechidas com {"sim" ou "nao"}]]--


local config = {
textoAvisandoSuaVelocidade = "sim", -- Se você quiser que o script mande uma mensagem para o player dizendo a velocidade dele
premiumAccount = "nao", -- Se precisa de premium
velocidadeDaSuaBike = 100, -- A volocidade da bike, sempre bote números de 1 á 10. Caso bote mais que isso a volicidade vai ficar muito alta.
outfitMale = 1394, -- Outfit male
outfitFemale = 1393, -- 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 = 0, -- Aqui boata a storage do vip system caso use
}

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

if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then return false end
   if getPlayerStorageValue(cid, config.storageValue) <= 0 then
          setPlayerStorageValue(cid, 3624, ""..getPlayerStamina(cid).."")
          if config.premiumAccount == "nao" and isPremium(cid) or config.usaVipSystem == "nao" 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 * 1000
                 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 == "sim" then
                          doPlayerSendTextMessage(cid, 27, "Sua velocidade agora é: "..getPlayerStorageValue(cid, 3624).."")
                   end  
          else
                  if config.usaVipSystem == "sim" then
                   doPlayerSendCancel(cid, "Desculpe apenas membros de honra podem usar a bike.")
                  else
                   doPlayerSendCancel(cid, "Desculpe apenas membros de honra podem usar a bike.")
                  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 

 

e tenho esse aqui tbm que ja estava pronto de outra base, é tipo uma bike só que é uma nave, (não consiguo chamar poke ou voltar o poke usando essa mount)

Script diferente

Spoiler

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

local sBike = 5704

local t = {
[5080] = {article='a', name='AeroNave', text='Mount, Nave!', dtext='Demount, Nave!', s=5700, condition=bikeCondition},
}

function BikeSpeedOn(cid,nSpeed)
setPlayerStorageValue(cid,sBike,getCreatureSpeed(cid))
doChangeSpeed(cid,-getCreatureSpeed(cid))
doChangeSpeed(cid,nSpeed)
end
function BikeSpeedOff(cid)
doChangeSpeed(cid,-getCreatureSpeed(cid))
doChangeSpeed(cid,getPlayerStorageValue(cid,sBike))
end


local v, r = getCreaturePosition(cid), t[item.itemid]
local s = r.s
local pos = {x = v.x, y = v.y, z = v.z}
if r then
if getPlayerStorageValue(cid, 25000) == 5 then
return
end
if getPlayerStorageValue(cid, 23000) == 5 then
return
end


if getPlayerStorageValue(cid, 17004) == 1 or getPlayerStorageValue(cid, 63218) == 1 or getPlayerStorageValue(cid, 17003) == 1 then
doPlayerSendCancel(cid, "You can't use Bike while ride/fly/surf.")
return true
end
if getPlayerStorageValue(cid, s) <= 0 then
doCreatureSay(cid, r.text, 19)
setPlayerStorageValue(cid, s, 1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'You have mounted ' .. r.article .. ' '.. r.name .. '.')
BikeSpeedOn(cid,9999)
if getPlayerSex(cid) == 1 then
doSetCreatureOutfit(cid, {lookType = 121, lookHead = 0, lookAddons = 0, lookLegs = 0, lookBody = 0, lookFeet = 0}, -1)
else
doSetCreatureOutfit(cid, {lookType = 121, lookHead = 0, lookAddons = 0, lookLegs = 0, lookBody = 0, lookFeet = 0}, -1)
end


elseif getPlayerStorageValue(cid, s) == 1 then
doCreatureSay(cid, r.dtext, 19)
setPlayerStorageValue(cid, s, 0)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'You haven demouted ' .. r.article .. ' '.. r.name .. '.')
BikeSpeedOff(cid)
return doRemoveCondition(cid, CONDITION_OUTFIT)
else
return doPlayerSendCancel(cid, 'You can\'t do this.')
end
else
return doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE, 'Report bugs in Moto system.')
end

end

 

DUVIDAS:

1ª Posso adptar o da bike na da nave

2ªPosso deletar esse da nave e fazer outro usando o script da bike

3ªComo eu "valido" os scripts para funcionar e tals, (ou é só criar o script, tacar o outfit, e td ok)

 

Rep+, obg.

Editado por fillipek2 (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.7k

Informação Importante

Confirmação de Termo