Postado Abril 23, 2017 8 anos function onCombat(cid, target) if isPlayer(target) and getPlayerSecureMode(cid) == 0 and getCreatureSkullType(target) == 0 then return false end return true end
Postado Abril 23, 2017 8 anos Autor 3 horas atrás, ManoTobira disse: function onCombat(cid, target) if isPlayer(target) and getPlayerSecureMode(cid) == 0 and getCreatureSkullType(target) == 0 then return false end return true end parte está funcional, mas o player que ataca o pk não pega pz GitHub: https://github.com/s3kk Conteúdo: [SERVER] Heromassa[GESIOR] Gesior 2012 modificado por Sekk[GESIOR] Shop Addons & Mounts - TFS 1.x[GESIOR] Outfitter para Characters e Rank[SISTEMA] Castle 24h[TALKACTION] Multi Element Wand[ACTION] Multi Elemental Arrow & Shield[PROGRAMAÇÃO] Compilar TFS 0.4 no Linux[PROGRAMAÇÃO] Compilando TFS 0.4 no MSVC(x64 e x32) [INFRAESTRUTURA] Configuração COMPLETA Google VM + Tibia 11.x
Postado Abril 24, 2017 8 anos 4 horas atrás, Sekk disse: parte está funcional, mas o player que ataca o pk não pega pz Acredito que isso não tenha nenhuma relação com o script já que a única função dele é evitar os ataques a jogadores sem pk caso o fightmode esteja desativado
Postado Abril 24, 2017 8 anos Autor 20 horas atrás, ManoTobira disse: Acredito que isso não tenha nenhuma relação com o script já que a única função dele é evitar os ataques a jogadores sem pk caso o fightmode esteja desativado Procurei por scripts que setam pz locked no player mas n deu certo Tentei com doPlayerSetPzLocked(cid) doPlayerSetPzLocked(cid, true) doPlayerSetPzLocked(cid, locked) -- o luascript.cpp do meu tfs fala que é assim Mas nenhum funciona, por enquanto deixei o script assim, não deu certo mas n indica nenhum erro: function onCombat(cid, target) if isPlayer(target) and getPlayerSecureMode(cid) == 0 and getCreatureSkullType(target) == 0 then return false end if getCreatureSkullType(target) > 0 then doPlayerSetPzLocked(cid, locked) end return true end @xWhiteWolf @Vodkart @Fir3element @zipter98 GitHub: https://github.com/s3kk Conteúdo: [SERVER] Heromassa[GESIOR] Gesior 2012 modificado por Sekk[GESIOR] Shop Addons & Mounts - TFS 1.x[GESIOR] Outfitter para Characters e Rank[SISTEMA] Castle 24h[TALKACTION] Multi Element Wand[ACTION] Multi Elemental Arrow & Shield[PROGRAMAÇÃO] Compilar TFS 0.4 no Linux[PROGRAMAÇÃO] Compilando TFS 0.4 no MSVC(x64 e x32) [INFRAESTRUTURA] Configuração COMPLETA Google VM + Tibia 11.x
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.