Ir para conteúdo

Featured Replies

  • Respostas 9
  • Visualizações 732
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • luanluciano93
    luanluciano93

    Testa ai ..  local config = { velocidadeDaSuaBike = 9, -- A volocidade da bike (1-9) outfitMale = 1787, -- Outfit male outfitFemale = 1618, -- Outfit female storageValue = 5602, -- Storage Para

Postado

o Seu é bom mais eu quero o meu só Falta isso :D

Okay

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
  • Solução
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 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
Postado
  • Autor
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 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

Funcionou Perfeitamente ^^ vlw 

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