Ir para conteúdo

bgtgabriel

Membro
  • Registro em

  • Última visita

Tudo que bgtgabriel postou

  1. o que custa falar como faz uma arena pvp pra pokemon tibia esses lixos de script desse forum e uma merda cara, queria tanto aprender script ajudaria todos as pessoas com dificudade
  2. lembrando e sistema de poketibia surf ola galera do tk eu estou aki com meu primeiro topico si eu tiver colocado o topico no lugar errado alguem pfv mova na area certa ok.. entao vamos la e assim pessoal eu quero que de surf na hora em que eu clicar na borda com meu pokemon, ele ira sumir e meu char vai mudar a outfilit e vai estar em cima dele na agua, mas quando dou clique na borda da um erro e sai do client quando eu entro dinovo ta la meu char na agua com a outlifit em cima do poke eu queria saber como eu tiro esse erro esquizito... tambem tem outro erro que me desagrada muito quando eu do use pra volta sair do surf o pokemon desmaia e vc sai normal do surf mais o pokemon desmaia "whata fuck nao sei que fez a script" ajudem por favor galera do tk e uns dos ultimos sistema pra acabar e montar meu server pokemon pleaseeeeeeeee eu emploro alguem ajuda ae.. ficaria muito grato =D pessoal eu coloquei 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 eu coloco isso no action xml citar: <action itemid="4647;4645;4646;4644" event="script" value="surf.lua"/> flw e isso ajudem pfv pfv pfv pfv pfv pfv pfv pfv pfv..
  3. 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
  4. muitoooooooooooooooooooooooo obrigado ana nossa achei que nao ia consegui nunca reputado
  5. alguem ai pode me ensinar a tirar uma msg que aparece logo ao entra aparece tipo assim, bem vindo os servidor de gabrieltxu pfv ajudem ae! (obrigado)

Informação Importante

Confirmação de Termo