local bikeCondition = createConditionObject(CONDITION_OUTFIT)setConditionParam(bikeCondition, CONDITION_PARAM_TICKS, -1)
addOutfitCondition(bikeCondition, {lookType = LOOK-BIKE, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})
local speed = 40 getItemSpeed(cid)
local t = {[iTEM-USE-BIK-ID = {article='a' ,name='bike', text='Mount, bike!', dtext='Demount, bike!', s=100, condition=bikeCondition},}function onUse(cid, item, fromPosition, itemEx, toPosition)local v, r = getCreaturePosition(cid), t[item.itemid]local s = r.slocal pos = {x = v.x, y = v.y, z = v.z}if r thenif getPlayerStorageValue(cid, s) <= 0 thendoSendMagicEffect(pos, 10)doCreatureSay(cid, r.text, 19)setPlayerStorageValue(cid, s, 1)doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'You have mounted ' .. r.article .. ' '.. r.name .. '.')return doAddCondition(cid, r.condition)elseif getPlayerStorageValue(cid, s) == 1 thendoSendMagicEffect(pos, 10)doCreatureSay(cid, r.dtext, 19)setPlayerStorageValue(cid, s, 0)doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'You have demounted ' .. r.article .. ' '.. r.name .. '.')return doRemoveCondition(cid, CONDITION_OUTFIT)elsereturn doPlayerSendCancel(cid, 'You can\'t do this.')endelsereturn doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE, 'Report bugs in Bike system.')end
end
Se der errado avise,que tentarei arrumar,peguei esse sistem de bike que é por talkition,e add o "local speed = 40 getItemSpeed(cid)",qualquer coisa é so voce por so o item speed e pronto.


info
Grupo: Campones
Registrado: 06/02/12
Posts: 0
Reputação: 0
Estou com um problema no script da bike em meu otpokemon
Ja tentei de varias formas adcionar velocidade ao char quando uso a bike, mas em nenhuma delas obtive sucesso!
Queria saber como adicionar velocidade ao usar o item da bike.
Nao sei se ja existe algum tutorial de como adicionar este tipo de velocidade, e nem sei se estou na area certa, mas por favor me ajudem!
Espero respostas.
Obrigado!