Postado Junho 21, 2014 11 anos Bom galera, venho pedir ajuda pois queria colocar o surf do meu servidor para quando o player clicar na borda da terra com a aqua se tiver usando um pokemon que surfa, ai ele sai surfando, o meu ta por movementes... se alguem souber como me ajudar ficaria muito grato!!!
Postado Junho 21, 2014 11 anos essa configuração e muito antigo cara e melho por movements mesmo nao existe mais servidor com a configuração que clica na borda
Postado Junho 21, 2014 11 anos Autor sim meu caro pode ser antiga mas e bem melhor que movementes, #SoAcho... se alguem ainda tiver esse scrpit poderia me passar? ou se souber onde acho me indicar o link pois ja procurei e nao axei... Desculpa mas quem nao pode ajudar favor nao fazer comentarios desnecessarios... Gratto...
Postado Julho 23, 2014 10 anos tem esse ai olha coloca isso na pasta action>>Script citar: function onUse(cid, item, frompos, item2, topos) local configs = { [4647] = {x = -2, y = 0}, -- 4647 é o id da borda oeste (lado esquerdo do player) ----- Deixa assim [4645] = {x = 2, y = 0}, -- 4645 é o id da borda leste (lado direito do player) ----- Deixa assim [4646] = {x = 0, y = 2}, -- 4646 é o id da borda sul (abaixo do player) ----- Deixa assim [4644] = {x = 0, y = -2}, -- 4644 é o id da borda norte (acima do player) ----- Deixa assim } local playerpos = getCreaturePosition(cid) local pokes = { ["Poliwag"] = {lookType=278, speed = 320}, ["Poliwhirl"] = {lookType=137, speed = 480}, ["Seaking"] = {lookType=269, speed = 520}, ["Dewgong"] = {lookType=183, speed = 700}, ["Blastoise"] = {lookType=184, speed = 850}, ["Tentacruel"] = {lookType=185, speed = 750}, ["Lapras"] = {lookType=186, speed = 960}, ["Gyarados"] = {lookType=187, speed = 1050}, ["Omastar"] = {lookType=188, speed = 680}, ["Kabutops"] = {lookType=189, speed = 840}, ["Poliwrath"] = {lookType=190, speed = 680}, ["Vaporeon"] = {lookType=191, speed = 800}, ["Staryu"] = {lookType=266, speed = 385}, ["Starmie"] = {lookType=267, speed = 685}, ["Goldeen"] = {lookType=268, speed = 355}, ["Seadra"] = {lookType=270, speed = 655}, ["Golduck"] = {lookType=271, speed = 760}, ["Squirtle"] = {lookType=273, speed = 365}, ["Wartortle"] = {lookType=275, speed = 605}, ["Tentacool"] = {lookType=277, speed = 340}, ["Snorlax"] = {lookType=300, speed = 500}, ["barboach"] = {lookType=1511, speed = 500}, ["Gorebyss"] = {lookType=1515, speed = 700}, ["Huntail"] = {lookType=1516, speed = 700}, ["Linoone"] = {lookType=1519, speed = 600}, ["Lombre"] = {lookType=15120, speed = 600}, ["Ludicolo"] = {lookType=1521, speed = 700}, ["Relicanth"] = {lookType=1533, speed = 700}, ["Sealeo"] = {lookType=1535, speed = 700}, ["Sharpedo"] = {lookType=1536, speed = 700}, ["Wailmer"] = {lookType=1545, speed = 700}, ["Wailord"] = {lookType=1546, speed = 1000}, ["Walrein"] = {lookType=1547, speed = 900}, ["Whiscash"] = {lookType=1549, speed = 900}, ["Luvdisc"] = {lookType=1523, speed = 500}, ["Wingull"] = {lookType=1550, speed = 500}, ["Spheal"] = {lookType=1539, speed = 500}, ["Swampert"] = {lookType=1540, speed = 800}, ["Marshtomp"] = {lookType=1525, speed = 600}, ["Milotic"] = {lookType=1529, speed = 900}, ["Mudkip"] = {lookType=1530, speed = 500}, ["Shiny Blastoise"] = {lookType=658, speed = 935}, ["Shiny Tentacruel"] = {lookType=1014, speed = 825}, ["Shiny Gyarados"] = {lookType=1030, speed = 1155}, ["Shiny Vaporeon"] = {lookType=1032, speed = 880}, ["Shiny Seadra"] = {lookType=1025, speed = 720.5}, ["Shiny Tentacool"] = {lookType=1013, speed = 374}, ["Shiny Snorlax"] = {lookType=1035, speed = 550}, ["Mantine"] = {lookType=636, speed = 820}, ["Totodile"] = {lookType=637, speed = 360}, ["Croconow"] = {lookType=638, speed = 590}, ["Feraligatr"] = {lookType=645, speed = 900}, ["Marill"] = {lookType=639, speed = 340}, ["Azumarill"] = {lookType=642, speed = 680}, ["Quagsire"] = {lookType=643, speed = 740}, ["Kingdra"] = {lookType=644, speed = 1020}, ["Octillery"] = {lookType=641, speed = 600}, ["Wooper"] = {lookType=640, speed = 315}, } if #getCreatureSummons(cid) <= 0 and getPlayerStorageValue(cid, 63215) <= 0 then return doPlayerSendCancel(cid, "You need a pokemon to surf.") end l = false for i,x in pairs(pokes) do if getPlayerStorageValue(cid, 63215) <= 0 and i:lower() == getCreatureName(getCreatureSummons(cid)[1]):lower() then l = true end end if not l and getPlayerStorageValue(cid, 63215) <= 0 then return doPlayerSendCancel(cid, "This pokemon can't surf.") end if getPlayerStorageValue(cid, 63215) <= 0 then doTeleportThing(cid, {x=playerpos.x+configs[item2.itemid].x, y=playerpos.y+configs[item2.itemid].y, z=playerpos.z}) setPlayerStorageValue(cid, 63215, 1) doSetCreatureOutfit(cid, pokes[getCreatureName(getCreatureSummons(cid)[1])], -1) doCreatureSay(cid, "Let's surf, "..getCreatureName(getCreatureSummons(cid)[1]), 1) setPlayerStorageValue(cid, 1000001, getCreatureMaxHealth(getCreatureSummons(cid)[1])) setPlayerStorageValue(cid, 1000002, getCreatureHealth(getCreatureSummons(cid)[1])) doChangeSpeed(cid, pokes[getCreatureName(getCreatureSummons(cid)[1])].speed) doRemoveCreature(getCreatureSummons(cid)[1]) else doTeleportThing(cid, {x=playerpos.x-configs[item2.itemid].x, y=playerpos.y-configs[item2.itemid].y, z=playerpos.z}) setPlayerStorageValue(cid, 63215, 0) doRemoveCondition(cid, CONDITION_OUTFIT) local item = getPokeOutLive(cid)[1] doCreatureSay(cid, "Im tired of surf, " .. getItemAttribute(item, "poke"):match("This is (.-)'s pokeball."), 1) pk = doSummonCreature(getItemAttribute(item, "poke"):match("This is (.-)'s pokeball."), getThingPosition(cid)) doConvinceCreature(cid, pk) registerCreatureEvent(pk, "DiePoke") registerCreatureEvent(cid, "PlayerPokeDeath") registerCreatureEvent(cid, "LogoutPoke") setCreatureMaxHealth(pk, getPlayerStorageValue(cid, 61209)) doCreatureAddHealth(pk, getPlayerStorageValue(cid, 61209)) doCreatureAddHealth(pk, getPlayerStorageValue(cid, 61210)-getPlayerStorageValue(cid, 61209)) doChangeSpeed(cid, getCreatureBaseSpeed(cid)-getCreatureSpeed(cid)) end return true end pronto e isso na xml action citar: <action itemid="4647;4645;4646;4644" event="script" value="surf.lua"/> e so isso mais olha esta com algums bugs quem consertar isso pra min ficaria muito grato =D Ex do bug quando da use na borda da um Dc e sai do client sozinho quando vouta a script funcionou mais tem mais um bug quando vc aperta novamente para voltar o use ai o player sai normal do surf porem o pokemon desmaia sozinho disculpa fiz com bugs que nem mesmo eu sei corregir #Prigiça mais ta ae ajudemmmm os meninos jente ja fiz quase tudo so falta da uma consertada pouca coisa mesmo bay bay pessoal.. vamo ve se esse pessoal do TK ajuda muita jente mesmo ajudem ae pessoal PLS.. sou novo aki olha se coloquei as coisas sertas me ajudem ae pq nem sei como funciona o forum.. Flw Flw
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.