Ir para conteúdo

klbkevinklb

Campones
  • Total de itens

    44
  • Registro em

  • Última visita

  • Dias Ganhos

    3

klbkevinklb venceu a última vez em Fevereiro 3 2023

klbkevinklb had the most liked content!

Sobre klbkevinklb

Informações

  • Forma que conheci o xTibia
    Amigos
  • Sou
    OT-Admin

Últimos Visitantes

1712 visualizações

klbkevinklb's Achievements

  1. local FOODS = { [2362] = {80, "Crunch.", 10}, -- Pizza [2666] = {150, "Munch.", 5}, -- Hamburger [2667] = {120, "Munch.", 7}, -- Cheeseburger [2668] = {100, "Mmmm.", 8}, -- Hot Dog [2669] = {170, "Munch.", 6}, -- Sandwich [2670] = {40, "Gulp.", 15}, -- Milkshake [2671] = {300, "Chomp.", 3}, -- Ice Cream [2672] = {600, "Chomp.", 2}, -- Cake [2673] = {50, "Yum.", 12}, -- Cookie [2674] = {60, "Yum.", 10}, -- Donut [2675] = {130, "Yum.", 7}, -- Chocolate Bar [2676] = {80, "Yum.", 9}, -- Candy [2677] = {10, "Yum.", 20}, -- Lollipop [2678] = {180, "Slurp.", 6}, -- Soda [2679] = {10, "Yum.", 18}, -- Chips [2680] = {20, "Yum.", 15}, -- Popcorn [2681] = {90, "Yum.", 8}, -- Pretzel [2682] = {200, "Yum.", 5}, -- Pie [2683] = {170, "Munch.", 5}, -- Pancake [2684] = {80, "Crunch.", 10}, -- Waffle [2685] = {60, "Munch.", 8}, -- French Fries [2686] = {90, "Crunch.", 10}, -- Onion Rings [2687] = {20, "Crunch.", 12}, -- Nachos [2688] = {90, "Munch.", 7}, -- Chicken Nuggets [2689] = {100, "Crunch.", 8}, -- Fish Sticks [2690] = {30, "Crunch.", 12}, -- Potato Chips [2691] = {80, "Crunch.", 9}, -- Tortilla Chips [2792] = {60, "Munch.", 8}, -- Brownie [2793] = {90, "Munch.", 6}, -- Cupcake [2695] = {60, "Gulp.", 8}, -- Smoothie [2696] = {90, "Smack.", 6}, -- Fruit Salad [2787] = {90, "Munch.", 7}, -- Salad [2788] = {40, "Munch.", 10}, -- Soup [2789] = {220, "Munch.", 4}, -- Ramen [2790] = {300, "Munch.", 3}, -- Sushi [2791] = {300, "Munch.", 3}, -- Burrito [2794] = {30, "Munch.", 10}, -- Tacos [2795] = {360, "Munch.", 2}, -- Pasta [2796] = {50, "Munch.", 8}, -- Mac & Cheese [5097] = {40, "Yum.", 10}, -- Bread [6125] = {80, "Gulp.", 7}, -- Milk [6278] = {100, "Mmmm.", 8}, -- Orange Juice [6279] = {150, "Mmmm.", 6}, -- Apple Juice [6393] = {120, "Mmmm.", 7}, -- Grape Juice [6394] = {150, "Mmmm.", 6}, -- Fruit Punch [6501] = {200, "Mmmm.", 5}, -- Energy Drink [6541] = {60, "Gulp.", 8}, -- Water [6542] = {60, "Gulp.", 8}, -- Coconut Water [6543] = {60, "Gulp.", 8}, -- Sports Drink [6544] = {60, "Gulp.", 8}, -- Tea [6545] = {60, "Gulp.", 8}, -- Coffee [6574] = {40, "Mmmm.", 10}, -- Milkshake (Strawberry) [7158] = {150, "Munch.", 6}, -- Milkshake (Vanilla) [7159] = {130, "Munch.", 6}, -- Milkshake (Chocolate) [7372] = {70, "Yum.", 9}, -- Milkshake (Banana) [7373] = {70, "Yum.", 9}, -- Milkshake (Mint Chocolate Chip) [7374] = {70, "Yum.", 9}, -- Milkshake (Caramel) [7375] = {70, "Yum.", 9}, -- Milkshake (Cookies & Cream) [7376] = {70, "Yum.", 9}, -- Milkshake (Peanut Butter) [7377] = {70, "Yum.", 9}, -- Milkshake (Strawberry Banana) [7909] = {40, "Crunch.", 10}, -- Milkshake (Blueberry) [8838] = {70, "Gulp.", 7}, -- Milkshake (Raspberry) [8839] = {50, "Yum.", 9}, -- Milkshake (Blackberry) [8840] = {20, "Yum.", 15}, -- Milkshake (Peach) [8841] = {30, "Urgh.", 20}, -- Milkshake (Mango) [8842] = {30, "Munch.", 10}, -- Milkshake (Pineapple) [8843] = {30, "Crunch.", 10}, -- Milkshake (Watermelon) [8844] = {30, "Gulp.", 12}, -- Milkshake (Cantaloupe) [8845] = {20, "Munch.", 10}, -- Milkshake (Kiwi) [8847] = {110, "Yum.", 8}, -- Milkshake (Coconut) [12211] = {180, "Mmmm.", 6}, -- Milkshake (Mango-Peach) [12213] = {130, "Munch.", 7}, -- Milkshake (Berry Blast) [12214] = {80, "Crunch.", 9}, -- Milkshake (Tropical Twist) [12215] = {100, "Munch.", 7}, -- Milkshake (Pineapple-Banana) [12216] = {60, "Gulp.", 9}, -- Milkshake (Cherry) [12217] = {50, "Yum.", 10}, -- Milkshake (Orange) [12218] = {150, "Crunch.", 6}, -- Milkshake (Grape) [12219] = {70, "Mmmm.", 7}, -- Milkshake (Strawberry) [12220] = {70, "Mmmm.", 7}, -- Milkshake (Blueberry) [12221] = {70, "Mmmm.", 7}, -- Milkshake (Raspberry) [12222] = {240, "Crunch.", 5}, -- Milkshake (Mixed Berry) -- o 5 é a quantia de regen } function onUse(cid, item, fromPosition, itemEx, toPosition) local food = FOODS[item.itemid] if not food then return false end local thing = getCreatureSummons(cid)[1] or cid if isPlayer(thing) then if getPlayerFood(cid) + food[1] >= 1000 then doPlayerSendCancel(cid, "You are full.") return true end doPlayerFeed(cid, food[1] * 4) doCreatureSay(cid, food[2], TALKTYPE_ORANGE_1) doRemoveItem(item.uid, 1) elseif isSummon(thing) then local feed = food[1] local regeneration = food[3] or 0 -- Regeneração padrão if getPlayerStorageValue(thing, 1009) - feed < 0 then doSendMagicEffect(getThingPos(thing), 169) doSendMagicEffect(pos, 169) local newh = getPlayerStorageValue(thing, 1008) - math.ceil(feed / 😎 if newh <= 1 then newh = 1 end setPlayerStorageValue(thing, 1008, newh) return true end setPlayerStorageValue(thing, 1009, getPlayerStorageValue(thing, 1009) - feed) setPlayerStorageValue(thing, 1008, getPlayerStorageValue(thing, 1008) + regeneration) -- Incremento baseado na regeneração específica da comida doCreatureSay(thing, food[2], TALKTYPE_ORANGE_1) doRemoveItem(item.uid, 1) end return true end
  2. Quando mata o poke do player em pvp cai XP do poke morto...para evitar isso, faça o seguinte... Onde tá If isMonster(target) vc põe antes dele ficando assim If not isSummon(target) and isMonster(target) E deixa o resto como está...vai para de dar XP pra quando matar o poke do player no pvo
  3. function onStepIn(cid, item, position, fromPosition) if getPlayerStorageValue(cid, 17000) == 1 or getPlayerStorageValue(cid, 17001) == 1 then doTeleportThing(cid, fromPosition, true) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_RED) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Voce nao pode passar aqui de fly ou ride.") end return TRUE end Bom galera, esse script nada mais é que um piso que cancela de voce poder entrar em algum local de fly ou ride, bem isso. <movevent type="StepIn" actionid="666266" event="script" value="pisoflyride.lua"/> Esse código ja deve ter gente que tenha, até que eu me lembre na dxp pode ter tbm, é isso...espero que ajude quem precisar. PS: caso esteja em local errado, peço a gentileza e bondade de mover para o local correto.
  4. Mano, então, isso foi feito na base deles já, por source, procura no arquivo game.cpp...procura por looktype, aí vc faz igual, compila que é sucesso.
  5. Galera, estava sem fazer nada, quando lembrei da epoca tibiana onde se usava exiva pra encontrar o player, sendo assim o caçador era obrigado a rodar o mapa, dando a esse script a força-lo abrir o mapa...entao eu peguei um que dava exiva no npc e coloquei pra exivar pokemons...porem se conter mais de 1 pokemon com o mesmo nome ele só vai mostra a posicao de 1...é bem básico o script...vamos la. local config = { cost = 100 } function onSay(cid, words, param, channel) if(param == "" or param == nil) then return false end if doPlayerRemoveMoney(cid, config.cost) == FALSE then doPlayerSendCancel(cid, "You do not have enough money.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return true end local getMonster = getCreatureByName(param) if ehMonstro(getMonster) == TRUE then local playerPos, monsterPos = getCreaturePosition(cid), getCreaturePosition(getMonster) local px, py = 0, 0 local pS = "" local text = "" if(playerPos.x == monsterPos.x) and (playerPos.y < monsterPos.y) then px = 1 py = monsterPos.y - playerPos.y pS = "south" elseif(playerPos.x == monsterPos.x) and (playerPos.y > monsterPos.y) then px = 1 py = playerPos.y - monsterPos.y pS = "north" elseif(playerPos.x < monsterPos.x) and (playerPos.y == monsterPos.y) then px = monsterPos.x - playerPos.x py = 1 pS = "east" elseif(playerPos.x > monsterPos.x) and (playerPos.y == monsterPos.y) then px = playerPos.x - monsterPos.x py = 1 pS = "west" elseif(playerPos.x > monsterPos.x) and (playerPos.y > monsterPos.y) then px = playerPos.x - monsterPos.x py = playerPos.y - monsterPos.y pS = "north-west" elseif(playerPos.x > monsterPos.x) and (playerPos.y < monsterPos.y) then px = playerPos.x - monsterPos.x py = monsterPos.y - playerPos.y pS = "south-west" elseif(playerPos.x < monsterPos.x) and (playerPos.y < monsterPos.y) then px = monsterPos.x - playerPos.x py = monsterPos.y - playerPos.y pS = "south-east" elseif(playerPos.x < monsterPos.x) and (playerPos.y > monsterPos.y) then px = monsterPos.x - playerPos.x ps = playerPos.y - monsterPos.y pS = "north-east" end if(px <= 4 and py <= 4) then text = "" .. getCreatureName(getMonster) .. " is standing next you." elseif((px > 4 and px <= 100) and (py > 4 and py <= 100)) or ((px > 4 and px <= 100) and (py <= 4)) or ((px <= 4) and (py > 4 and py <= 100)) then text = "" .. getCreatureName(getMonster) .. " is to the " .. pS .. "." elseif((px > 100 and px <= 274) and (py > 100 and py <= 274)) or ((px > 100 and px <= 274) and (py <= 100)) or ((px <= 100) and (py > 100 and py <= 274)) then text = "" .. getCreatureName(getMonster) .. " is far to the " .. pS .. "." elseif((px > 274 and px <= 280) and (py > 274 and py <= 280)) or ((px > 274 and px <= 280) and (py < 274)) or ((px < 274) and (py > 274 and py <= 280)) then text = "" .. getCreatureName(getMonster) .. " is very far to the " .. pS .. "." elseif(px > 280 and py > 280) or (px > 280 and py < 280) or (px < 280 and py > 280) then text = "" .. getCreatureName(getMonster) .. " is to the " .. pS .. "." end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, text) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_GREEN) return false else doPlayerSendCancel(cid, "A monster with that name does not exist.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return true end end Testado na base do antigo pokeroxy. tag <talkaction words="!exiva;/exiva" access="0" event="script" value="exiva.lua"/> Obrigado e é isso.
  6. klbkevinklb

    (BUG) Poke Ball

    eu fiz isso de remover e começo a dar erro no meu catch.lua [11/07/2020 19:58:32] [Error - Action Interface] [11/07/2020 19:58:32] In a timer event called from: [11/07/2020 19:58:32] data/actions/scripts/catch.lua:onUse [11/07/2020 19:58:32] Description: [11/07/2020 19:58:32] (luaGetThingPosition) Thing not found if icons[poke] then ballid = icons[poke].on end
  7. Fala gente, tudo bem...bom eu to sumido aqui do portal, porém hoje estou de volta com uma coisa para disponibilizar. Muitos ja devem saber, alguns não...a pxg tem um sistema que voce pode pescar de andares mais altos, eu procurei muito pra descobrir e bom encontrei e hjee vou ensinar a voces: abra o arquivo: actions.cpp/ procure por isso: ReturnValue Actions::canUseFar(const Creature* creature, const Position& toPos, bool checkLineOfSight) Ela vai estar assim: ReturnValue Actions::canUseFar(const Creature* creature, const Position& toPos, bool checkLineOfSight) { if(toPos.x == 0xFFFF) return RET_NOERROR; const Position& creaturePos = creature->getPosition(); if(creaturePos.z > toPos.z) return RET_FIRSTGOUPSTAIRS; if(creaturePos.z < toPos.z) return RET_FIRSTGODOWNSTAIRS; if(!Position::areInRange<7,5,0>(toPos, creaturePos)) return RET_TOOFARAWAY; if(checkLineOfSight && !g_game.canThrowObjectTo(creaturePos, toPos)) return RET_CANNOTTHROW; return RET_NOERROR; } Troque por essa abaixo: Apague a função toda e coloque isso: ReturnValue Actions::canUseFar(const Creature* creature, const Position& toPos, bool checkLineOfSight) { if(toPos.x == 0xFFFF) return RET_NOERROR; const Position& creaturePos = creature->getPosition(); if(creaturePos.z > toPos.z) return RET_FIRSTGOUPSTAIRS; // if(creaturePos.z < toPos.z) // return RET_FIRSTGODOWNSTAIRS; if(!Position::areInRange<7,5,3>(toPos, creaturePos)) return RET_TOOFARAWAY; // if(checkLineOfSight && !g_game.canThrowObjectTo(creaturePos, toPos)) // return RET_CANNOTTHROW; return RET_NOERROR; } Feito tudo certo, voce conseguira pescar de cima de montanhas. Obrigado e boa noite a todos.
  8. Tá na na cara neh...o dono que compro n quer ngm usando, tá falando mal da base pra ele usar sem concorrência, lógico que ele iria falar mal, pois a base tem várias coisas, pegando as coisas de lá e por em outra deixa de ser "novo" então ele fala q tá bugada, zuada pra ngm usarem...e garanto se o dead falo q tá safe é pq tá, ele não arriscaria fala uma coisa e por a fama dele em jogo. Acordem né
  9. Olá bom dia meus amigos, eu estava procurando um npc no qual você trocava um npc e mais alguns itens com npc, mas comecei a viajar nas ideias, porém não sei como por em prática...seria assim: Você tem um Cacturne, aí vai no npc, ele fala que precisa de um Cacturne, porém precisa de mais alguns itens...suponhamos 3 rocks, 100 bulbs e 300 leaves, quando você volta no npc ele te teleportaria pra outro lugar que seria uma sala de Quest...obs o poke iria sumir e os itens tbm, caso morra na Quest não seria pedido novamente os itens nem o poke. É isso espero que possam ajudar, e seria de boa ajuda isso pra comunidade esse npc. Desde já obg.
  10. Oi boa noite, tenho um sistema de aluguel por mod, disponibilizado por vodkart, porem ele é pra montaria de tibia, eu gostaria de pedir ajuda, para que se possivel pra fazer o sistema alocar pokemons, por x periodo de tempo e por y preço. desde ja agradeço.
  11. bagas, voce conseguiu colocar pra quando passar o mouse por cima, e aparecer a imagem do item?
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...