Ir para conteúdo

Featured Replies

Postado

Auguem me ajuda com slot bike !! ? para ficar enqual otpokemon ??

id da bike -> 12774

 

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

local t = {text='Mount, bike!', dtext='Demount, bike!', s=5700, speed = 1000}

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

local pos = getThingPos(cid)

if #getCreatureSummons(cid) >= 1 then
end

if getPlayerStorageValue(cid, 17001) >= 1 or getPlayerStorageValue(cid, 63215) >= 1 or
getPlayerStorageValue(cid, 17000) >= 1 or getPlayerStorageValue(cid, 75846) >= 1 or
getPlayerStorageValue(cid, 6598754) >= 1 or getPlayerStorageValue(cid, 6598755) >= 1 then --alterado v1.9
return doPlayerSendCancel(cid, "You can't do that right now.")
end

if getPlayerSlotItem(cid, CONST_SLOT_RING) then
doPlayerSendCancel(cid, "Put the bike in the correct slot!") -- by Gabrieltxu
return true
end

if getPlayerStorageValue(cid, t.s) <= 0 then
doSendMagicEffect(pos, 177)
doCreatureSay(cid, t.text, 19)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'Voce Muntou na bike.')
BikeSpeedOn(cid, t)
if getPlayerSex(cid) == 1 then
doSetCreatureOutfit(cid, {lookType = 1950}, -1)
else
doSetCreatureOutfit(cid, {lookType = 1951}, -1)
end
else
doSendMagicEffect(pos, 177)
doCreatureSay(cid, t.dtext, 19)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'Voce saiu da bike.')
BikeSpeedOff(cid, t)
doRemoveCondition(cid, CONDITION_OUTFIT)
end
return true
end

 

 

print \/ 

 

 

  

erro.png

Upp !!!

Postado

Belo desenho explicativo kkkk

Enfim..

Se pelo o que eu entendi VC quer colocar a bike no slot igual ao otpokemon, tbm quer que ela não seja movida ao usa-la?

E que seja obrigatório o uso dela no slot?

 

                                        O conhecimento só é achado quando você o busca. 

 

  • 1 month later...

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