Postado Julho 23, 2014 10 anos Estou com um erro na minha script que é assim, ao clicar em tal item o player vai fica em cima de uma bike e a velocidade será aumentada em 999 mais depois que o player clicar denovo no item que volta com a outifit normal ainda fica com a mesma velocidade bike.lua -- [[ 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 velocidadeDaSuaBike = 999, -- A volocidade da bike, sempre bote números de 1 á 10. Caso bote mais que isso a volicidade vai ficar muito alta. outfitMale = 1787, -- Outfit male outfitFemale = 1618, -- Outfit female efeito = 18, -- Efeito que ira aparescer quando der use. storageValue = 5602, -- Storage Para a bike } 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).."") 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 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 alguém porfavor mim ajude ? valendo rep+ up up
Postado Julho 23, 2014 10 anos Tenta colocar essa Script: local function BikeSpeedOn(cid, t) setPlayerStorageValue(cid, t.s, t.speed) doChangeSpeed(cid, -getCreatureSpeed(cid)) doChangeSpeed(cid, t.speed) end local function BikeSpeedOff(cid, t) setPlayerStorageValue(cid, t.s, -1) doRegainSpeed(cid) end function onUse(cid, item, fromPosition, itemEx, toPosition) local pos = getThingPos(cid) local t = {text='Subindo na bike!', dtext='Desecendo da, bike!', s=9700, speed = 1000} --if #getCreatureSummons(cid) >= 1 then --return doPlayerSendCancel(cid, "Return your pokemon.") --end if getPlayerStorageValue(cid, 17001) == 1 or getPlayerStorageValue(cid, 63215) == 1 or getPlayerStorageValue(cid, 17000) == 1 then return doPlayerSendCancel(cid, "Voce nao pode usar a bike enquanto estiver no ride/fly/surf.") end if getPlayerStorageValue(cid, t.s) <= 0 then doSendMagicEffect(pos, 173) doCreatureSay(cid, t.text, 19) --doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'You have mounted in a bike.') BikeSpeedOn(cid, t) if getPlayerSex(cid) == 1 then doSetCreatureOutfit(cid, {lookType = 1581}, -1) else doSetCreatureOutfit(cid, {lookType = 1581}, -1) end else doSendMagicEffect(pos, 173) doCreatureSay(cid, t.dtext, 19) --doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'You haven demouted of a bike.') BikeSpeedOff(cid, t) doRemoveCondition(cid, CONDITION_OUTFIT) end return true end SE EU TE AJUDEI, NÃO ESQUEÇA DE ME AJUDAR COM REP+ Editado Julho 23, 2014 10 anos por TsplayerT (veja o histórico de edições) Meus Contatos! Minhas Funções: Skype: TsplayerT Facebook: TakaFukushii YouTube: ADoseDupla Twitter: @_Splayer_ Mapper:▓▓▓▓▓▓▓▓▓▓ 97% Programmer:▓▓▓▓▓▒▒▒▒▒ 45% Scripter:▓▓▓▓▓▓▓▓▓▒ 83% Spriter:▓▓▓▓▓▓▒▒▒▒ 57% Gamemaster:▓▓▓▓▓▓▓▓▓▓ 99% Ot Creator:▓▓▓▓▓▓▓▒▒▒71% Ot Client Maker:▓▓▓▓▓▓▓▒▒▒74%
Postado Julho 23, 2014 10 anos Testa ai .. local config = { velocidadeDaSuaBike = 9, -- A volocidade da bike (1-9) outfitMale = 1787, -- Outfit male outfitFemale = 1618, -- Outfit female storageValue = 5602, -- Storage Para a bike } 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 local a = {lookType = config.outfitMale, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet} local b = {lookType = config.outfitFemale, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet} local speedRate = config.velocidadeDaSuaBike * 1000 setPlayerStorageValue(cid, 3624, ""..getPlayerStamina(cid).."") doSendMagicEffect(getThingPos(cid), 18) 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 else local retireSpeedRate = config.velocidadeDaSuaBike / 1000 setPlayerStorageValue(cid, config.storageValue, 0) doSendMagicEffect(getThingPos(cid), 18) doRemoveCondition(cid, CONDITION_OUTFIT) playerSpeedNow = -retireSpeedRate - getPlayerStorageValue(cid, 3624) doChangeSpeed(cid, playerSpeedNow) end return true en STYLLER OT 2022
Postado Julho 23, 2014 10 anos Autor Testa ai .. local config = { velocidadeDaSuaBike = 9, -- A volocidade da bike (1-9) outfitMale = 1787, -- Outfit male outfitFemale = 1618, -- Outfit female storageValue = 5602, -- Storage Para a bike } 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 local a = {lookType = config.outfitMale, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet} local b = {lookType = config.outfitFemale, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet} local speedRate = config.velocidadeDaSuaBike * 1000 setPlayerStorageValue(cid, 3624, ""..getPlayerStamina(cid).."") doSendMagicEffect(getThingPos(cid), 18) 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 else local retireSpeedRate = config.velocidadeDaSuaBike / 1000 setPlayerStorageValue(cid, config.storageValue, 0) doSendMagicEffect(getThingPos(cid), 18) doRemoveCondition(cid, CONDITION_OUTFIT) playerSpeedNow = -retireSpeedRate - getPlayerStorageValue(cid, 3624) doChangeSpeed(cid, playerSpeedNow) end return true en só faltou fecha o script com o end vou testa aqui e já te falo Edit Quando o Player sai da bike ainda fica com a mesma velocidade
Postado Julho 23, 2014 10 anos só faltou fecha o script com o end vou testa aqui e já te falo Edit Quando o Player sai da bike ainda fica com a mesma velocidade Testa o meu... Meus Contatos! Minhas Funções: Skype: TsplayerT Facebook: TakaFukushii YouTube: ADoseDupla Twitter: @_Splayer_ Mapper:▓▓▓▓▓▓▓▓▓▓ 97% Programmer:▓▓▓▓▓▒▒▒▒▒ 45% Scripter:▓▓▓▓▓▓▓▓▓▒ 83% Spriter:▓▓▓▓▓▓▒▒▒▒ 57% Gamemaster:▓▓▓▓▓▓▓▓▓▓ 99% Ot Creator:▓▓▓▓▓▓▓▒▒▒71% Ot Client Maker:▓▓▓▓▓▓▓▒▒▒74%
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.