Ir para conteúdo

Featured Replies

Postado
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 = "nao", -- Se você quiser que o script mande uma mensagem para o player dizendo a velocidade dele
premiumAccount = "nao", -- Se precisa de premium
velocidadeDaSuaBike = 1000, -- A volocidade da bike, sempre bote números de 1 á 10. Caso bote mais que isso a volicidade vai ficar muito alta.
outfitMale = 95, -- Outfit male
outfitFemale = 95, -- Outfit female
efeito = 18, -- Efeito que ira aparescer quando der use.
storageValue = 5603, -- 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 

 

como coloco para todos poderem usar ??

Editado por fillipek2 (veja o histórico de edições)

  • Respostas 6
  • Visualizações 443
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • local config = { textoAvisandoSuaVelocidade = "nao", -- Se você quiser que o script mande uma mensagem para o player dizendo a velocidade dele premiumAccount = "nao", -- Se precisa de premium veloc

  • Tenta bota 1000 ali "retireSpeedRate = config.velocidadeDaSuaBike"

Postado

local config = {
	textoAvisandoSuaVelocidade = "nao", -- Se você quiser que o script mande uma mensagem para o player dizendo a velocidade dele
	premiumAccount = "nao", -- Se precisa de premium
	velocidadeDaSuaBike = 1000, -- A volocidade da bike, sempre bote números de 1 á 10. Caso bote mais que isso a volicidade vai ficar muito alta.
	outfitMale = 95, -- Outfit male
	outfitFemale = 95, -- Outfit female
	efeito = 18, -- Efeito que ira aparescer quando der use.
	storageValue = 5603, -- 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).."")
		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
		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 

 

Postado
  • Autor
13 horas atrás, x1zy disse:


local config = {
	textoAvisandoSuaVelocidade = "nao", -- Se você quiser que o script mande uma mensagem para o player dizendo a velocidade dele
	premiumAccount = "nao", -- Se precisa de premium
	velocidadeDaSuaBike = 1000, -- A volocidade da bike, sempre bote números de 1 á 10. Caso bote mais que isso a volicidade vai ficar muito alta.
	outfitMale = 95, -- Outfit male
	outfitFemale = 95, -- Outfit female
	efeito = 18, -- Efeito que ira aparescer quando der use.
	storageValue = 5603, -- 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).."")
		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
		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 

 

o ruin q o player fica com a velocidade depois q sai da bike tem como por isso tbm ?

Postado
13 horas atrás, x1zy disse:


local config = {
	textoAvisandoSuaVelocidade = "nao", -- Se você quiser que o script mande uma mensagem para o player dizendo a velocidade dele
	premiumAccount = "nao", -- Se precisa de premium
	velocidadeDaSuaBike = 1000, -- A volocidade da bike, sempre bote números de 1 á 10. Caso bote mais que isso a volicidade vai ficar muito alta.
	outfitMale = 95, -- Outfit male
	outfitFemale = 95, -- Outfit female
	efeito = 18, -- Efeito que ira aparescer quando der use.
	storageValue = 5603, -- 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).."")
		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
		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 

 

Tenta bota 1000 ali "retireSpeedRate = config.velocidadeDaSuaBike"

Postado
  • Autor
9 minutos atrás, Tingasgo disse:

Tenta bota 1000 ali "retireSpeedRate = config.velocidadeDaSuaBike"

agr to com outro problema,

 

os poke ataca meu poke e deixa a minha velocidade do char lento tem como arrumar isso ?

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