Ir para conteúdo

Refe

Conde
  • Total de itens

    645
  • Registro em

  • Última visita

  • Dias Ganhos

    10

Tudo que Refe postou

  1. Valeu Daniel!
  2. Olá, hoje eu vim postar mais um sistema para o PDE! Sistema da vez: Nick System Vá em data/npc/scripts e crie um arquivo chamado namer.lua Coloque isso dentro: Agora em data/npc crie um arquivo chamado nick.xml e cole isso: <?xml version="1.0" encoding="UTF-8"?> <npc name="John" script="nick.lua" walkinterval="350000" floorchange="0" speed="0" lookdir="2"> <health now="150" max="150"/> <look type="614" head="115" body="122" legs="0" feet="76"/> <parameters> </parameters> </npc> Agora em actions/scripts/goback.lua Antes de: else doPlayerSendCancel(cid, "This pokemon is fainted.") end return true end Coloque: local nick = getItemAttribute(item.uid, "nick") if not nick then local name = getItemAttribute(item.uid, "poke") local level = getItemAttribute(item.uid, "level") doCreatureSetNick(getCreatureSummons(cid)[1], ""..name.." ["..level.."]") else local level = getItemAttribute(item.uid, "level") doCreatureSetNick(getCreatureSummons(cid)[1], ""..nick.." ["..level.."]") end Caso queira sem o level no nome coloque: local nick = getItemAttribute(item.uid, "nick") if not nick then local name = getItemAttribute(item.uid, "poke") doCreatureSetNick(getCreatureSummons(cid)[1], name) else local level = getItemAttribute(item.uid, "level") doCreatureSetNick(getCreatureSummons(cid)[1], nick) end
  3. Eu adaptei especialmente para o PDE, não sei se vai funcionar em outros. Arrumei o tópico, faltou a parte do GO/BACK
  4. @Atualizado: Adicionado Sistemas feitos para o PDE!
  5. Bom, faz um tempo que eu mostrei um addon system para o meu servidor E Hoje eu adaptei ele para o PDE 3.0 e irei ensinar a por em seu servidor! Só testado em PDE 3.0, não sei se vai funcionar em algum PDA ou outro tipo de servidor. Vá em actions/scripts e crie um arquivo chamado addon.lua. Adicione isso lá: function onUse(cid, item, fromPosition, itemEx, toPosition) local addons = { [ID DO ITEM] = {pokemon= "NOME DO POKEMON" , looktype = LOOKTYPE NORMAL, fly = FLY, SE NÃO TIVER PONHA 0, ride = RIDE, SE NÃO TIVER PONHA 0, surf = SE NÃO TIVER SURF PONHA 0}, } if #getCreatureSummons(cid) > 0 then doPlayerSendCancel(cid, "Please back your pokemon.") return false end local addon = addons[item.itemid].looktype local fly = addons[item.itemid].fly local ride = addons[item.itemid].ride local surf = addons[item.itemid].surf local pb = getPlayerSlotItem(cid, 8).uid local pk = addons[item.itemid].pokemon if getItemAttribute(pb,"poke") ~= pk then doPlayerSendCancel(cid, "Sorry, you can't use this addon on this poke.") return false end if getItemAttribute(pb,"addon") >= 0 then doRemoveItem(item.uid, 1) doPlayerSendTextMessage(cid, 27, "Congratulations! Now your pokemon will use the addon.") doSetItemAttribute(pb,"addon",addon) doSetItemAttribute(pb,"addonfly",fly) doSetItemAttribute(pb,"addonride",ride) doSetItemAttribute(pb,"addonsurf",surf) return true end return true end Em actions.xml adicione: <action itemid="ID;ID;ID" event="script" value="addon.lua"/> Agora em actions/goback.lua antes de: else doPlayerSendCancel(cid, "This pokemon is fainted.") end return true end Adicione: local pk = getCreatureSummons(cid)[1] local pb = getPlayerSlotItem(cid, 8).uid local look = getItemAttribute(pb,"addon") if not look then doSetItemAttribute(pb,"addon",0) end if look > 0 then doSetCreatureOutfit(pk, {lookType = look}, -1) end Em lib/order.lua encontre: local pokemon = flys[getPokemonName(getCreatureSummons(cid)[1])] doPlayerSendTextMessage(cid, 27, "Type \"up\" or \"h1\" to fly higher and \"down\" or \"h2\" to fly lower.") doChangeSpeed(cid, -getCreatureSpeed(cid)) local speed = 500 + PlayerSpeed/5 + getSpeed(sid) * 6 * speedRate doChangeSpeed(cid, speed) setPlayerStorageValue(cid, 54844, speed) doSetCreatureOutfit(cid, {lookType = pokemon[1] + 351}, -1) doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "hp", getCreatureHealth(getCreatureSummons(cid)[1]) / getCreatureMaxHealth(getCreatureSummons(cid)[1])) doRemoveCreature(getCreatureSummons(cid)[1]) setPlayerStorageValue(cid, 17000, 1) Abaixo adicione: local addonfly= getPlayerSlotItem(cid, 8).uid local addofly = getItemAttribute(addonfly,"addonfly") if not addofly then doSetItemAttribute(addonfly,"addonfly",0) end if addofly > 0 then doSetCreatureOutfit(cid, {lookType = addofly}, -1) end Continuando em order.lua Encontre: local pokemon = rides[getPokemonName(getCreatureSummons(cid)[1])] doChangeSpeed(cid, -getCreatureSpeed(cid)) local speed = 150 + PlayerSpeed + getSpeed(sid) * 5 * speedRate doChangeSpeed(cid, speed) setPlayerStorageValue(cid, 54844, speed) doSetCreatureOutfit(cid, {lookType = pokemon[1] + 351}, -1) doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "hp", getCreatureHealth(getCreatureSummons(cid)[1]) / getCreatureMaxHealth(getCreatureSummons(cid)[1])) doRemoveCreature(getCreatureSummons(cid)[1]) setPlayerStorageValue(cid, 17001, 1) Em baixo adicione: local addonride = getPlayerSlotItem(cid, 8).uid local addoride = getItemAttribute(addonride,"addonride") if not addoride then doSetItemAttribute(addonride,"addonride",0) end if addoride > 0 then doSetCreatureOutfit(cid, {lookType = addoride}, -1) en Agora em movements/surf.lua encontre: doSetCreatureOutfit(cid, {lookType = surfs[getPokemonName(getCreatureSummons(cid)[1])].lookType + 351}, -1) doCreatureSay(cid, ""..getPokeName(getCreatureSummons(cid)[1])..", lets surf!", 1) doChangeSpeed(cid, -(getCreatureSpeed(cid))) E troque por: local addonsurf = getPlayerSlotItem(cid, 8).uid local addosurf = getItemAttribute(addonsurf,"addonsurf") if not addosurf then doSetItemAttribute(addonsurf,"addonsurf",0) doSetCreatureOutfit(cid, {lookType = surfs[getPokemonName(getCreatureSummons(cid)[1])].lookType + 351}, -1) end if addosurf > 0 then doSetCreatureOutfit(cid, {lookType = addosurf}, -1) end doCreatureSay(cid, ""..getPokeName(getCreatureSummons(cid)[1])..", lets surf!", 1) doChangeSpeed(cid, -(getCreatureSpeed(cid))) No mesmo arquivo ache: doSummonMonster(cid, pokemon) Logo abaixo adicione: local pk = getCreatureSummons(cid)[1] local balla = getPlayerSlotItem(cid, 8).uid local balladdon = getItemAttribute(balla,"addon") if not balladdon then doSetItemAttribute(balla,"addon",0) end if balladdon > 0 then doSetCreatureOutfit(pk, {lookType = balladdon}, -1) end Por ultimo em actions/order.lua encontre: doPlayerSay(cid, ""..getPokeName(getCreatureSummons(cid)[1])..", let me get down!", 1) doRegainSpeed(cid) --alterado v1.7 doRemoveCondition(cid, CONDITION_OUTFIT) Abaixo adicione: local pkjg = getCreatureSummons(cid)[1] local pkza = getPlayerSlotItem(cid, 8).uid local pkxd = getItemAttribute(pkjg,"addon") if not pkxd then doSetItemAttribute(pkza,"addon",0) elseif pkxd > 0 then doSetCreatureOutfit(pkjg, {lookType = pkxd}, -1) end Vá em creaturescripts/scripts/login.lua Troque tudo por: Créditos: @Ceetros
  6. Vip tile: function onStepIn(cid, item, position, fromPosition) nv = "Mensagem" if getPlayerVipDays(cid) == 0 then doTeleportThing(cid, fromPosition, FALSE) doPlayerSendTextMessage(cid, 22, nv) end return true end Tag no movemments: <movevent type="StepIn" actionid="id" event="script" value="arqivo"/> Comando: function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Falta o nick.") return true end local t = string.explode(param, ",") t[1] = tonumber(t[1]) if(not t[1]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Falta o numero de dias.") return true end local pid = cid if(t[2]) then pid = getPlayerByNameWildcard(t[2]) if(not pid) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Nickname " .. t[2] .. " Nao encontrado.") return true end end if(t[1] > 365) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "So pode adicionar 365 Dias.") return true end sender = getPlayerByNameWildcard(cid) doAddVipDays(pid, t[1]) doPlayerSendTextMessage(cid, "Voce Adicionou ".. t[1] .." dias de vip para ".. t[2]) doPlayerSendTextMessage(pid, sender .." adicionou ".. t[1] .." dias de vip para você.") return true end Tag no Talkactions.xml: <talkaction log="yes" words="/addvip" access="5" event="script" value="nomedoarquivo"/>
  7. Refe

    Erro Surf.lua

    Vê se todos os tiles existem.
  8. Valeu @Adicionado: Remakes
  9. @Adicionado: Remakes
  10. Valeu, @topic Adicoinei a quest que tinha esquecido
  11. Nós queremos mudar todo o sistema dos "Poketibias"! Até agora nós já fizemos: Sistema de 6 Pokémons Cut, Rock Smash, Fly, Surf e Teleport com HM Sistema de TM Sistema de TV e Nick! 10% do Mapa! Addon System: Sounds System: Lumberjack System: Aqui nós mudamos os sons da pokebola! Day Care System: Todas Nossa Sprites serão próprias, mas iremos usar algumas do tibia! Por hora estamos utilizando algumas da PXG por estética. Nosso mapa, para provar que estamos nos empenhando também será próprio! Pallet Town + Route 1: Novo visual do Pokémart: Caso esteja interessado a conhecer: Página Oficial Grupo Oficial Estamos Recrutando! Mapper; Scripter; Spriter; Mande-nos uma mensagem contendo: Idade; Área de Atuação; Trabalhos; (Mínimo dois) See Ya!
  12. http://www.xtibia.com/forum/topic/237609-pokemon-dash-evolution-open-source/
  13. Tem uma lista no forum com todos derivados, http://www.xtibia.com/forum/topic/236628-lista-de-servidores-derivados/
  14. Refe

    Ajuda Client Sprite

    Tá usando o PDE ? se tiver só vai rodar com aquele client.
  15. Adicionado: Video de Addons.
  16. Hoje eu vou mostrar alguns dos sistemas de Pokémon Origins: Addon System: Sounds System: Lumberjack System: Aqui nós mudamos os sons da pokebola! Day Care System: Sistema de Personalização de Casas (Pintura) Estou upando o resto dos sistemas, já atualizo o tópico
  17. Nada de PDA vai funcionar ai, tem que adaptar umas coisas...
  18. Consegui fazer aqui, vou ver se posto um tutorial.
  19. É igual.
  20. Isso ai é no catch.lua, tem que configurar.
  21. pastadoclient/data/images/game/skull a vermelha é do male e a branca do female.
  • Quem Está Navegando   0 membros estão online

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