Postado Setembro 7, 2014 10 anos Fala Galera Aqui É O Lucas Ou [Dono]Saga E Vim Pedir Ajuda Para Vocês Sobre A Bike Então Vamos Lá.... Tenho Base Pokémon Skyfall [Editado Por Mim] Ai Quando Baxei o Server Fui Testar a Bike ai Apareceu Ela No chão lá,, Ai Cliquei Com O Lado Esquerdo Nela E Não Deu Para Muntar Alguem Ai Poderia Me Ajudar , Só Eu Não Também Tará Ajudando Eu E Os ( Fâns Do Server ) Que Por Sinal Tenho Pocos Ainda Vlw Flw Rep+ Editado Setembro 7, 2014 10 anos por Lucasmc (veja o histórico de edições)
Postado Setembro 7, 2014 10 anos posta seu bike system.lua [ data - actions - scripts ] Gente, não dou suporte via mp, caso queira ajuda crie um tópico no fórum!!! Ajudei? Clicar em gostar não vai te matar
Postado Setembro 7, 2014 10 anos Solução Substitua o script contido no arquivo da sua bike system por esse: local config = { bikespeed = 10, maleoutfit = 1787, femaleoutfit = 1618, effect = 18, bstorage = 5602, } function onUse(cid, item, itemEx, fromPosition, toPosition) if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then return 0 end if getPlayerStorageValue(cid, config.bstorage) <= 0 then setPlayerStorageValue(cid, 3624, getCreatureBaseSpeed(cid)) a = {lookType = config.maleoutfit, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet} b = {lookType = config.femaleoutfit, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet} doSendMagicEffect(getThingPos(cid), config.effect) speedRate = config.bikespeed * 1000 doChangeSpeed(cid, speedRate + getPlayerStorageValue(cid, 3624)) setPlayerStorageValue(cid, config.bstorage, 1) if getPlayerSex(cid) == 0 then doSetCreatureOutfit(cid, b, -1) else doSetCreatureOutfit(cid, a, -1) end else doSendMagicEffect(getThingPos(cid), config.effect) doRemoveCondition(cid, CONDITION_OUTFIT) retireSpeedRate = config.bikespeed * 100 playerSpeedNow = (retireSpeedRate + getPlayerStorageValue(cid, 3624)) doChangeSpeed(cid, -(playerSpeedNow)) setPlayerStorageValue(cid, config.bstorage, 0) end return 1 end PS: Baseado no script do Smix, que modifiquei. E agora na pasta data/creaturescripts/scripts abra o arquivo login.lua e adicione as seguintes linhas no fim do script (antes do último return true/return 1): if getCreatureSpeed(cid) < getCreatureBaseSpeed(cid) thenlocal delta = ( (getCreatureBaseSpeed(cid)) - (getCreatureSpeed(cid)) )doChangeSpeed(cid, delta)end Créditos dessa parte do creaturescript ao @xWhiteWolfTente e veja se roda no seu servidor.. Se te ajudei com o que postei, clique em Bizzle
Postado Setembro 7, 2014 10 anos Se quiser usa a minha; local config = { velocidadeDaSuaBike = 1000, -- 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 getPlayerStorageValue(cid, 17001) > 0 then doPlayerSendCancel(cid, "Voce nao pode usar a bike enquanto estiver no ride/fly/surf.") return false end if getPlayerStorageValue(cid, 17000) > 0 then doPlayerSendCancel(cid, "Voce nao pode usar a bike enquanto estiver no ride/fly/surf.") return false end if getPlayerStorageValue(cid, 63215) > 0 then doPlayerSendCancel(cid, "Voce nao pode usar a bike enquanto estiver no ride/fly/surf.") return false end 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} setPlayerStorageValue(cid, 3624, ""..getPlayerStamina(cid).."") doSendMagicEffect(getThingPos(cid), 18) doChangeSpeed(cid, -getCreatureSpeed(cid)) doChangeSpeed(cid, config.velocidadeDaSuaBike) 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), 18) doRemoveCondition(cid, CONDITION_OUTFIT) doRegainSpeed(cid) end return true end
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.