Ir para conteúdo

pvjf

Artesão
  • Total de itens

    112
  • Registro em

  • Última visita

Tudo que pvjf postou

  1. Vlw por querer ajudar, mas não é isso que estou procurando exatamente. Eu kero q retorne o valor do tipo de arma que o jogador está utilizando Ex: Wand = 6. . Eu consegui fazer da seguinte maneira : if getPlayerWeaponType(cid) == 6 then Está funcionando, porém quando n tem nenhum item equipado nos slots da mão ocorre um erro na distro: [Error - Spell Interface]data/spells/scripts/attack/exevo flam hur.lua:onCastSpellDescription:(luaGetThing) Thing not found Obrigado pela atenção, se puder me ajudar a contornar este erro seria de grande ajuda. Edit: O erro ocorre quando está sem arma na mão ou com um item qualquer que não seja uma arma e não possua um weapon type. Consegui! Um usuário de outro fórum, chamado Colandus, me enviou uma função para se adicionar em functions.lua (pode ter outro nome dependendo do servidor): function getPlayerWeaponType(cid) local weapon = getPlayerWeapon(cid, true) if weapon and weapon.uid > 0 then return getItemWeaponType(weapon.uid) end return WEAPON_NONEend Assim, conseguimos usar as magias apenas se tivermos o item equipado, como por exemplo uma magia que só sai se segurarmos uma wand.
  2. Existe alguma função que verifique qual o tipo de arma o player está equipando? Fiz uma pesquisa pela wab e pela pelo Lua_Functions do meu server (TFS 0.3.6) e encontrei algumas interessantes: ((getPlayerSlotItem(cid, 6).itemid == ID de todos os itens do tipo) or (getPlayerSlotItem(cid, 5).itemid == ID de todos os itens do tipo))getItemWeaponType(uid)getItemWeaponType(getPlayerWeapon(cid, true).uid) Existe alguma forma de "juntar" tais funções para verificar se o jogador está usando um shield, uma sword, um axe , uma club ou uma wand.
  3. Muito obrigado por tentar me ajudar mas esta função ghost não funcionou: [Error - Spell Interface]data/spells/scripts/attack/exorimazang.lua:onCastSpellDescription:data/spells/scripts/attack/exorimazang.lua:77: attempt to call global 'setPlayerGhostMode' (a nil value)stack traceback: data/spells/scripts/attack/exorimazang.lua:77: in function <data/spells/scripts/attack/exorimazang.lua:74>
  4. Bom, tem um tempo que estou tentando criar uma versão de um script q seja compatível com meu server (TFS 3.6.0). Algumas funções ainda me deixam confuso quanto a substituição. Neste caso encontrei alguns substitutos: TFS 1.x VS TFS 3.0.6tile:queryAdd(cid) == 1 -- queryTileAddThing(cid, {x=cpos.x,y=cpos.y+1,z=cpos.z}) == 1tile:hasFlag(TILESTATE_PROTECTIONZONE) -- (getTilePzInfo(getCreaturePosition(cid)))target:getDirection() -- ????player:teleportTo(oldPos) -- ????player:setGhostMode(false) -- ???? Se alguém se disponibilizasse pra dar uma ajuda eu ficaria muito grato!
  5. Obrigado pela sua opinião MatheusGrilo; Tudo que foi apresentado ai é discutível e inevitavelmente ajustes terão de ser feitos. Você quis dizer OTC (Ot Client)?Pois estamos usando ele e adicionar sprites e modifica-lo é muito mais versátil.Como estamos nos fundamentos do projeto, não estamos adicionando novas sprites ainda, não que nós não gostaríamos, mas vamos tentar lançar previamente um beta e se o projeto mostrar bons resultados com certeza investiremos nisso.
  6. Demais!!! Estarei ancioso pelo lançamento.
  7. pvjf

    AOL INFINITO

    ctrl+f busca amulet of loss <item id="2173" article="um" name="amulet of loss"> <attribute key="weight" value="420" /> <attribute key="slotType" value="necklace" /> <attribute key="charges" value="1" /> <attribute key="preventDrop" value="1" /> Adiciona essa tag no itens.xml
  8. Muito bom estarei acompanhando o projeto.
  9. pvjf

    Alissow Server

    Muito baum muito baum
  10. Digamos que eh um global , ctrl + C ctrl + V , alguns caminhozinhos criados pra ligar uns continentes gigantescos e port hope foi severamente decaptada!
  11. pvjf

    Pokémon Overllord 8.54

    Muito bom! Baixando o server pra testar.
  12. eu não sabia dessa função testei aqui achei bem util rep +
  13. Bronson foi um bom server espero que este cumpra seu papel, estou trabalhando em uma "evolução" dele; Baixando seu server pra dar uma conferida ^^
  14. De mais; espero que surja uma nova onda de servers derivados , assim como os de naruto e pokemon fizeram tanto sucesso e foram melhorando cada vez masi , espero que o projeto de vcs tb seja assim ; Take my rep and go plz;
  15. Obrigado a todos que estão apoiando oserver isto nos da força de vontade para continuar o projeto; Estamos trabalhando na main quest; O outro responsavel pelo servidor está em semana de prova, por isso não poderá mecher muito, mas cada atualização postaremos aqui. @Blacknine: Não temos uma data para o beta, pois quereremos que ele seja apresentado o mais impecável possível. Agradeço a atenção de vcs;
  16. As poções estão funcionando de boa agora. Você só toma 1 a cada 20 segundos (elas são mais valiosas e o pvp não vai ficar tao ligado a quem tem mais poções).
  17. local cheio = 96337 local regular = 98337 local config = { removeOnUse = "yes", usableOnTarget = "no", -- can be used on target? (fe. healing friend) splashable = "no", realAnimation = "no", -- make text effect visible only for players in range 1x1 healthMultiplier = 1.0, manaMultiplier = 1.0 } config.removeOnUse = getBooleanFromString(config.removeOnUse) config.usableOnTarget = getBooleanFromString(config.usableOnTarget) config.splashable = getBooleanFromString(config.splashable) config.realAnimation = getBooleanFromString(config.realAnimation) local POTIONS = { [8704] = {empty = 7636, splash = 2, health = {50, 100}}, -- small health potion [7618] = {empty = 7636, splash = 2, health = {100, 200}}, -- health potion [7588] = {empty = 7634, splash = 2, health = {200, 400}, level = 50, vocations = {3, 4, 7, 8, 11, 12}, vocStr = "knights and paladins"}, -- strong health potion [7591] = {empty = 7635, splash = 2, health = {450, 550}, level = 80, vocations = {4, 8, 12}, vocStr = "knights"}, -- great health potion [8473] = {empty = 7635, splash = 2, health = {860, 890}, level = 130, vocations = {4, 8, 12}, vocStr = "knights"}, -- ultimate health potion [7620] = {empty = 7636, splash = 7, mana = {70, 130}}, -- mana potion [7589] = {empty = 7634, splash = 7, mana = {110, 190}, level = 50, vocations = {1, 2, 3, 5, 6, 7, 9, 10, 11}, vocStr = "sorcerers, druids and paladins"}, -- strong mana potion [7590] = {empty = 7635, splash = 7, mana = {350, 410}, level = 80, vocations = {1, 2, 5, 6, 9, 10}, vocStr = "sorcerers and druids"}, -- great mana potion [8472] = {empty = 7635, splash = 3, health = {360, 450}, mana = {350, 390}, level = 80, vocations = {3, 7, 11}, vocStr = "paladins"} -- great spirit potion } local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition) local potion = POTIONS[item.itemid] if(not potion) then return false end if(not isPlayer(itemEx.uid) or (not config.usableOnTarget and cid ~= itemEx.uid)) then if(not config.splashable) then return false end if(toPosition.x == CONTAINER_POSITION) then toPosition = getThingPos(item.uid) end doDecayItem(doCreateItem(2016, potion.splash, toPosition)) doTransformItem(item.uid, potion.empty) return true end if getPlayerStorageValue(cid,cheio) == 3 then doSendMagicEffect(getCreaturePos(cid), 2) doPlayerSendCancel(cid,"You are full dido.") return TRUE end if(hasCondition(cid, CONDITION_EXHAUST_HEAL)) then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return true end if(((potion.level and getPlayerLevel(cid) < potion.level) or (potion.vocations and not isInArray(potion.vocations, getPlayerVocation(cid)))) and not getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) then doCreatureSay(itemEx.uid, "Only " .. potion.vocStr .. (potion.level and (" of level " .. potion.level) or "") .. " or above may drink this fluid.", TALKTYPE_ORANGE_1) return true end local health = potion.health if(health and not doCreatureAddHealth(itemEx.uid, math.ceil(math.random(health[1], health[2]) * config.healthMultiplier))) then return false end local mana = potion.mana if(mana and not doPlayerAddMana(itemEx.uid, math.ceil(math.random(mana[1], mana[2]) * config.manaMultiplier))) then return false end doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE) if(not realAnimation) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) else for i, tid in ipairs(getSpectators(getCreaturePosition(cid), 1, 1)) do if(isPlayer(tid)) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1, false, tid) end end end doAddCondition(cid, exhaust) if(not potion.empty or config.removeOnUse) then doRemoveItem(item.uid, 1) setPlayerStorageValue(cid, cheio, (getPlayerStorageValue(cid, cheio)+1)) addEvent(setPlayerStorageValue, 30000, cid, cheio, -1) doPlayerAddItem(cid, 7636, 1) return true end doRemoveItem(item.uid, 1) doPlayerAddItem(cid, potion.empty, 1) setPlayerStorageValue(cid, cheio, (getPlayerStorageValue(cid, cheio)+1)) addEvent(setPlayerStorageValue, 30000, cid, cheio, -1) doPlayerAddItem(cid, 7636, 1) return true end Ta assim lá mas ja mechi muito nele tentei criar umas coisas q n deram certo, mas v se me da uma ajudinha. ^^ Alguem ai pode corrigir ou criar um melhor? Conseguimos arrumar. Obrigado pelos comentarios.
  18. Boa tarde Xtibianos, venho hoje humildemente pedir um script. Eu gostaria que as potions do meu server tivessem uma exaustão (de tempo configurável) após consumir 5 delas(se for configurável melhor ainda). Bem parecido com o sistema convencional de foods. Tentei configurar o script de potions do meu server com storages, mas ocorreram muitos bugs e n ficou como o esperado. Informações: TFS 0.3.6 Versão do client: 8.6 Obrigado pela atenção galerinha de Deus, vlw.
  19. Estamos trabalhando em Dungeons onde só será permitida a entrada de no maximo 4 jogadores, (famosas instâncias) a primeira delas surgirá no nivel 20; E Terminamos o sistema de domar. Apesar de não ter novidade alguma sobre como controlar seu pet a maneira de consegui-lo será única; Obrigado pela atenção.
  20. Turotial pra criar novas vocções : http://www.xtibia.com/forum/topic/91273-criando-uma-nova-vocacao-para-o-seu-ot/ (o google não morde srsrsrsrssr)
  21. Ai está o inventor que inventa o que ainda não foi inventado. Ótimo script , já estou arrumando um jeito de coloca-lo em prática no meu server; ainda mais que estou sempre tentando aprimorar meu conhecimento sobre npc's. Parabéns ótimo script;
  22. Meu sorcerer ta com msm set q vc hehe, ml 40 , lvl 40 , de neptera u.u
  23. Manero; Mas com isso soh mostra que tibia ta largando de ser rpg, pra virar uma plataforma de fazer jogos de anime u.u; Em relação aos sistemas achei muito bem elaborado bem fiel ao anime; @EDIT: Com funcionariam as classes?
  24. Bem interessante o projeto , espero que fique on logo ; Só não curti muito os nomes aleatorios que os personagens na historia tem : Rotciv isson ão ficou muito bom, o nome dos anjos tb parecem aleatorios. Mas como ja dizia um velho deitado, nomes de que servem?
  25. Nossa. Perfeito , adorei esse ar de server 7.4 q tem no seu server com essas sprites , meio nostáugico. Aguardando anciosamente por mais notícias.
  • Quem Está Navegando   0 membros estão online

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