em data/movements/script procura seu furf.lua e apaga tudo e usa este:
local function doSendMagicEffecte(pos, effect) addEvent(doSendMagicEffect, 50, pos, effect)end-- 4664-4647;4608-4613;local waters = {11756, 4614, 4615, 4616, 4617, 4618, 4619, 4608, 4609, 4610, 4611, 4612, 4613, 7236, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4665, 4666, 4820, 4821, 4822, 4823, 4824, 4825} local flie = {'4820', '4821', '4822', '4823', '4824', '4825'} --alterado v1.6 tabelas agora em configuration.lua!local premium = falsefunction onStepIn(cid, item, position, fromPosition)if not isPlayer(cid) or isInArray({5, 6}, getPlayerGroupId(cid)) then --alterado v1.9return trueendif getPlayerStorageValue(cid, 75846) >= 1 then return true end --alterado v1.9if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then return false end -- TVif isPlayer(cid) and not isPremium(cid) then doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, "Only premium members are allowed to surf.") return trueendif getCreatureOutfit(cid).lookType == 316 or getCreatureOutfit(cid).lookType == 648 then doSendMagicEffect(fromPosition, 136)endif (getPlayerStorageValue(cid, 63215) >= 1 or isFly(cid)) thenreturn trueendif isInDuel(cid) then doTeleportThing(cid, fromPosition, false) return trueendif #getCreatureSummons(cid) == 0 then doPlayerSendCancel(cid, "You need a pokemon to surf.") doTeleportThing(cid, fromPosition, false) return trueendif isMega(getCreatureSummons(cid)[1]) then doPlayerSendCancel(cid, "Pokemons megas não tem habilidade surf.") doTeleportThing(cid, fromPosition, false) return trueendlocal pokeName = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "poke") local ditto = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "copyName") if ditto and ditto ~= "" then pokeName = ditto endif (not isInArray(specialabilities["surf"], pokeName)) then doPlayerSendCancel(cid, "This pokemon cannot surf.") doTeleportThing(cid, fromPosition, false) return trueendif getPlayerStorageValue(cid, 5700) == 1 then doPlayerSendCancel(cid, "You can't do that while is mount in a bike!") doTeleportThing(cid, fromPosition, false) return trueendif getPlayerStorageValue(cid, 212124) >= 1 then --alterado v1.6 doPlayerSendCancel(cid, "You can't do it with a pokemon with mind controlled!") doTeleportThing(cid, fromPosition, false) return trueendif isInDuel(cid) then doPlayerSendCancel(cid, "You can't do it while a duel!") --alterado v1.6 doTeleportThing(cid, fromPosition, false) return trueendif getPlayerStorageValue(cid, 6598754) == 1 or getPlayerStorageValue(cid, 6598755) == 1 then doPlayerSendCancel(cid, "You can't do it while in the PVP Zone!") --alterado v1.7 doTeleportThing(cid, fromPosition, false) return trueend --alterado v1.6doSetCreatureOutfit(cid, {lookType = surfs[pokeName].lookType + 351}, -1) setPokemonGhost(cid)doCreatureSay(cid, ""..getPokeName(getCreatureSummons(cid)[1])..", lets surf!", TALKTYPE_ORANGE_1)doChangeSpeed(cid, -(getCreatureSpeed(cid)))local speed = 75 + PlayerSpeed + getSpeed(getCreatureSummons(cid)[1]) * 8 * speedRatesetPlayerStorageValue(cid, 54844, speed)doChangeSpeed(cid, speed)local pct = getCreatureHealth(getCreatureSummons(cid)[1]) / getCreatureMaxHealth(getCreatureSummons(cid)[1])doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "hp", pct)doRemoveCreature(getCreatureSummons(cid)[1])addEvent(setPlayerStorageValue, 100, cid, 63215, 1)local item = getPlayerSlotItem(cid, 8)if getItemAttribute(item.uid, "boost") and getItemAttribute(item.uid, "boost") >= 50 and getPlayerStorageValue(cid, 42368) <= 0 then addEvent(sendAuraEffect, 120, cid, auraSyst[getItemAttribute(item.uid, "aura")]) --alterado v1.8endif useOTClient then doPlayerSendCancel(cid, '12//,hide') --alterado v1.8endreturn trueendlocal direffects = {30, 49, 9, 51}function onStepOut(cid, item, position, fromPosition)if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then return false end local checkpos = fromPosition checkpos.stackpos = 0 if isInArray(waters, getTileInfo(checkpos).itemid) then if getPlayerStorageValue(cid, 63215) >= 1 or getPlayerStorageValue(cid, 17000) >= 1 then doSendMagicEffecte(fromPosition, direffects[getCreatureLookDir(cid) + 1]) end end if not isInArray(waters, getTileInfo(getThingPos(cid)).itemid) then if getPlayerStorageValue(cid, 17000) >= 1 then return true end if getPlayerStorageValue(cid, 63215) <= 0 then return true end doRemoveCondition(cid, CONDITION_OUTFIT) setPlayerStorageValue(cid, 63215, -1) doGoPokemonInOrder(cid, getPlayerSlotItem(cid, 8), false) doChangeSpeed(cid, -getCreatureSpeed(cid)) doRegainSpeed(cid) endreturn trueend
E o seu order.lua por este;
function onUse(cid, item, frompos, item2, topos) if getCreatureCondition(cid, CONDITION_EXHAUST) or isWatchingTv(cid) then return true enddoAddCondition(cid, ordercondition)local pPos = getThingPos(cid) pPos.stackpos = 0local pos = getThingFromPos(pPos) if isSurf(cid) or isInArray(11756, item2.itemid) or item2.itemid == 11756 or isInArray(11756, pos.itemid) or pos.itemid == 11756 or isInArray({11756, 11675, 11676, 460}, pos.itemid) then return doPlayerSendCancel(cid, MSG_NAO_E_POSSIVEL)endif item2.uid == cid then -- demound poke if isPlayer(item2.uid) and isInDuel(item2.uid) then return doPlayerSendCancel(cid, MSG_NAO_E_POSSIVEL) end if isRiderOrFlyOrSurf(cid) then local ball = getPlayerSlotItem(cid, 8) doGoPokemonInOrder(cid, ball, false) doRemoveCondition(cid, CONDITION_OUTFIT) doPlayerSay(cid, getCreatureNick(getCreatureSummons(cid)[1]) .. orderTalks["downability"].talks[math.random(#orderTalks["downability"].talks)]) doRegainSpeed(cid) setPlayerStorageValue(cid, orderTalks["ride"].storage, -1) setPlayerStorageValue(cid, orderTalks["fly"].storage, -1) doPlayerSendCancel(cid, '12//,show') return true end if isPlayer(cid) and not isPremium(cid) then doPlayerSendCancel(cid, "Only premium members are allowed to surf.") return trueendend--- ride/fly retiradaif isRiderOrFlyOrSurf(cid) then return doPlayerSendCancel(cid, MSG_NAO_E_POSSIVEL)end if #getCreatureSummons(cid) == 0 then return doPlayerSendCancel(cid, "Você precisa de um pokemon para usar o order.")end local poke = getCreatureSummons(cid)[1]local pokeName = getCreatureNick(poke)local habilidades = getPokemonSkills(getCreatureName(poke)) if item2.uid == cid then if isFight(cid) then -- Edição pra ficar igual pxg.. nao dar fly ou ride com fight setMoveSummon(cid, false) addEvent(doMovePokeToPos, 5, poke, getThingPos(cid)) return true end if isMega(poke) then return doPlayerSendCancel(cid, "Pokemons megas não tem habilidades de fly/ride.") end if isPlayer(item2.uid) and (isInDuel(item2.uid) or getCreatureSkullType(item2.uid) == SKULL_WHITE or getCreatureSkullType(item2.uid) == 1 or getCreatureSkullType(item2.uid) == 2) then return doPlayerSendCancel(cid, MSG_NAO_E_POSSIVEL) end if not (getThingPos(poke) or getThingPos(item2.uid)) then -- correção de um erro. return true end local dist = getDistanceBetween(getThingPos(poke), getThingPos(item2.uid)) --- ride if string.find(habilidades, "ride") then doPlayerSay(cid, pokeName..orderTalks["ride"].talks[math.random(#orderTalks["ride"].talks)]) if dist == 1 then doUp(cid, poke, "ride") return true end setMoveSummon(cid, false) addEvent(doMovePokeToPos, 200, poke, topos) setPlayerStorageValue(poke, orderTalks["ride"].storage, 1) elseif string.find(habilidades, "fly") or string.find(habilidades, "levitate") then if string.find(habilidades, "levitate") then doPlayerSay(cid, pokeName..orderTalks["levitate"].talks[math.random(#orderTalks["levitate"].talks)]) else doPlayerSay(cid, pokeName..orderTalks["fly"].talks[math.random(#orderTalks["fly"].talks)]) end if dist == 1 then doUp(cid, poke, "fly") return true end setMoveSummon(cid, false) addEvent(doMovePokeToPos, 200, poke, topos) setPlayerStorageValue(poke, orderTalks["fly"].storage, 1) end ----------------- Ditto ----------------- elseif isMonster(item2.uid) and isInArray({"Shiny Ditto", "Ditto"}, getItemAttribute(getPlayerSlotItem(cid, 8).uid, "poke")) then if isPlayer(item2.uid) and isInDuel(item2.uid) then return doPlayerSendCancel(cid, MSG_NAO_E_POSSIVEL) end if isPlayerSummon(cid, item2.uid) and isInArray({"Shiny Ditto", "Ditto"}, getItemAttribute(getPlayerSlotItem(cid, 8).uid, "poke")) and not isInArray({"Shiny Ditto", "Ditto"}, getItemAttribute(getPlayerSlotItem(cid, 8).uid, "copyName")) then doCopyPokemon(poke, getItemAttribute(getPlayerSlotItem(cid, 8).uid, "poke"), true) doPlayerSay(cid, getCreatureNick(getCreatureSummons(cid)[1])..", reverta-se.") return true elseif not isPlayerSummon(cid, item2.uid) and getPokeName(item2.uid) ~= getPokeName(poke) then if isSummon(item2.uid) then if getPlayerSlotItem(getCreatureMaster(item2.uid), 8).uid ~= 0 and isInArray({"Shiny Ditto", "Ditto"}, getItemAttribute(getPlayerSlotItem(getCreatureMaster(item2.uid), 8).uid, "poke")) then doSendMsg(cid, "Você não pode fazer uma copia de um outro ditto.") return true end end local thingName = doCorrectString(getCreatureName(item2.uid)) if pokes[thingName].level > getPlayerLevel(cid) then doSendMsg(cid, "Você não tem level para copiar este pokémon.") return true end doCopyPokemon(poke, thingName, true) return true end ----------------- Mover ----------------- elseif not isCreature(item2.uid) then setMoveSummon(cid, false) doEreaseUsingOrder(poke) local oldTopos = getThingPos(item2.uid) local oldTopos_2 = topos local x, y = 0, 0 if (topos.x - getThingPos(poke).x) > 0 then topos.x = topos.x +1 elseif (topos.x - getThingPos(poke).x) < 0 then topos.x = topos.x -1 end if (topos.y - getThingPos(poke).y) > 0 then topos.y = topos.y +1 elseif (topos.y - getThingPos(poke).y) < 0 then topos.y = topos.y -1 end setPlayerStorageValue(poke, 505, getThingPos(cid).x) setPlayerStorageValue(poke, 506, getThingPos(cid).y) addEvent(doMovePokeToPos, 5, poke, topos) doWalkAgain(poke) ----- Edições dig/cut/rock smash/headbutt/blink local buracos = {468, 481, 483} local arvores = {2767} local pedras = {1285} local headbutt = {12175} if item2.uid == 0 then return true end local pos = getThingPos(item2.uid) local dist = getDistanceBetween(getThingPos(poke), getThingPos(item2.uid)) if not isFight(cid) then -- edição pra ficar igual pxg.. nao dar fly ou ride com fight if isInArray(buracos, item2.itemid) then ----------------------- DIG local heldDig = doAddHelds(cid, "Y-Dig", "yHeldItem", getCreatureNick(poke)) if (heldDig == 0) then if not string.find(habilidades, "dig") then return doPlayerSendCancel(cid, "Esse pokemon não tem a habilidade de cavar.") end end doMarkedPos(poke, getThingPos(item2.uid)) doEreaseUsingOrder(cid) setPlayerStorageValue(poke, orderTalks["dig"].storage, 1) setMoveSummon(cid, false) if dist == 1 then recheck(poke, "cut", getThingPos(item2.uid)) else addEvent(doMovePokeToPos, 200, poke, topos) end doPlayerSay(cid, getCreatureNick(poke)..orderTalks["dig"].talks[math.random(#orderTalks["dig"].talks)]) return true elseif isInArray(arvores, item2.itemid) then local heldCut = doAddHelds(cid, "Y-Cut", "yHeldItem", getCreatureNick(poke)) if (heldCut == 0) then if not string.find(habilidades, "cut") then return doPlayerSendCancel(cid, "Esse pokemon não tem a habilidade de cortar.") end end doMarkedPos(poke, getThingPos(item2.uid)) doEreaseUsingOrder(cid) setPlayerStorageValue(poke, orderTalks["cut"].storage, 1) setMoveSummon(cid, false) if dist == 1 then addEvent(recheck, (1000 - (2.3*getCreatureSpeed(poke))) * dist, poke, "cut", getThingPos(item2.uid)) else addEvent(doMovePokeToPos, 200, poke, topos) end doPlayerSay(cid, getCreatureNick(poke)..orderTalks["cut"].talks[math.random(#orderTalks["cut"].talks)]) return true elseif isInArray(pedras, item2.itemid) then ----------------------- ROCK local heldSmash = doAddHelds(cid, "Y-Smash", "yHeldItem", getCreatureNick(poke)) if (heldSmash == 0) then if not string.find(habilidades, "rock smash") then return doPlayerSendCancel(cid, "Esse pokemon não tem a habilidade de quebrar.") end end local pos = getThingPos(item2.uid) doMarkedPos(poke, getThingPos(item2.uid)) doEreaseUsingOrder(cid) setPlayerStorageValue(poke, orderTalks["rock"].storage, 1) setMoveSummon(cid, false) if dist == 1 then addEvent(recheck, (1000 - (2.3*getCreatureSpeed(poke))) * dist, poke, "rock", getThingPos(item2.uid)) else addEvent(doMovePokeToPos, 200, poke, topos) end doPlayerSay(cid, getCreatureNick(poke)..orderTalks["rock"].talks[math.random(#orderTalks["rock"].talks)]) return true elseif isInArray(headbutt, item2.itemid) then ----------------------- HEAD local heldHeadbutt = doAddHelds(cid, "Y-Headbutt", "yHeldItem", getCreatureNick(poke)) if (heldHeadbutt == 0) then if not string.find(habilidades, "headbutt") then return doPlayerSendCancel(cid, "Esse pokemon não tem a habilidade de balançar árvores.") end end local pos = getThingPos(item2.uid) doMarkedPos(poke, getThingPos(item2.uid)) doEreaseUsingOrder(cid) setPlayerStorageValue(poke, orderTalks["headbutt"].storage, 1) setMoveSummon(cid, false) if dist <= 1 then addEvent(recheck, (1000 - (2.3*getCreatureSpeed(poke))) * dist, poke, "headbutt", getThingPos(item2.uid)) else addEvent(doMovePokeToPos, 200, poke, topos) end doPlayerSay(cid, getCreatureNick(poke)..orderTalks["headbutt"].talks[math.random(#orderTalks["headbutt"].talks)]) return true end end if string.find(habilidades, "blink") then if os.time() < getPlayerStorageValue(poke, storages.blink) then doPlayerSay(cid, getCreatureNick(poke)..orderTalks["move"].talks[math.random(#orderTalks["move"].talks)]) return true elseif (getCreatureSkullType(cid) == SKULL_WHITE or isInDuel(cid)) and getTileInfo(getThingPos(item2.uid)).protection then doSendMsg(cid, "Você não pode usar blink em protection zone quando está em duelo.") return true end local timerBlink = 60 * doHeldBlink(cid) setPlayerStorageValue(poke, storages.blink, os.time()+timerBlink) doSendMagicEffect(getThingPos(poke), 134) doTeleportThing(poke, getThingPos(item2.uid), false) doSendMagicEffect(getThingPos(poke), 134) doPlayerSay(cid, getCreatureNick(poke)..orderTalks["blink"].talks[math.random(#orderTalks["blink"].talks)]) return true end doPlayerSay(cid, getCreatureNick(poke)..orderTalks["move"].talks[math.random(#orderTalks["move"].talks)]) end return trueendfunction isGhost(cid)local hab = getPokemonSkills(string.lower(getPokeName(cid))) if string.find(hab, "ghost") then return true end return falseend



info
Grupo: Campones
Registrado: 13/07/15
Posts: 77
Reputação: +2
Olá vim aqui pois deadpool pediu pois ele não responde pm então esta ai criei o tópico de ajuda, Queria saber como deixo premium. fly ride levitate, surf no DXP fazendo favor quem poder ajudar agradeço.