-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.
-
Conteúdo Similar
-
- 2 respostas
- 1966 visualizações
-
- 2 respostas
- 1439 visualizações
-
- 0 respostas
- 2064 visualizações
-
- 13 respostas
- 13661 visualizações
-

Pergunta
Duhisback 29
Olá galera, estou usando PDA e estou com pequenos problemas em relação a bike. Como pretendo colocar em shop vip eu coloquei o item movível, posso arrastar para bag e chão, relacionado a bike, no centurion eu podia usar a bike e tirar o pokemon da pokebola pelo icone da ball clicando com botão direito do mouse, neste pda o pokemon só sai da pokebola pelo pokebar, já clicando na ball ele só aceitar quando não esta usando a bike, já tentei usar o script do centurion mas ficou a mesma coisa sendo q no centurion funcionava tudo certo.
Ajude-me por favor
local t = {text='Mount, bike!', dtext='Demount, bike!', s=5700, speed = 3000} local bikeid = 12774 -- ITEMID da Bike 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 function onUse(cid, item, fromPosition, itemEx, toPosition) local pos = getThingPos(cid) if getPlayerItemCount(cid, 12774) <= 0 then return doPlayerSendCancel(cid, "Você precisa ter a bike na sua bag.") end -- if #getCreatureSummons(cid) >= 1 then -- return doPlayerSendCancel(cid, "Return your pokemon.") -- 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 return doPlayerSendCancel(cid, "You can't do that right now.") end if getPlayerStorageValue(cid, t.s) <= 0 then if item.actionid ~= 12120 then doRemoveItem(item.uid, 1) local create_action = doPlayerAddItem(cid, bikeid, 1) doItemSetAttribute(create_action, "aid", 12120) setPlayerStorageValue(cid, 12120, 1) doSendMagicEffect(pos, 177) doCreatureSay(cid, t.text, 19) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'You have mounted in a bike.') BikeSpeedOn(cid, t) if getPlayerSex(cid) == 1 then doSetCreatureOutfit(cid, {lookType = 1787}, -1) else doSetCreatureOutfit(cid, {lookType = 1619}, -1) end else doPlayerSendCancel(cid, "This bike is in use.") end else if item.actionid == 12120 and getCreatureOutfit(cid).lookType == 1787 or getCreatureOutfit(cid).lookType == 1619 then doRemoveItem(item.uid, 1) doPlayerAddItem(cid, bikeid, 1) setPlayerStorageValue(cid, 12120, -1) doSendMagicEffect(pos, 177) doCreatureSay(cid, t.dtext, 19) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'You haven demouted of a bike.') BikeSpeedOff(cid, t) doRemoveCondition(cid, CONDITION_OUTFIT) else doPlayerSendCancel(cid, "This bike isn't yours.") end end return true end
Editado por EduzinhonhoLink para o comentário
https://xtibia.com/forum/topic/239554-resolvido-problema-com-bike-pokemon/Compartilhar em outros sites
11 respostass a esta questão
Posts Recomendados