ricktcs 3 Postado Janeiro 7, 2009 Share Postado Janeiro 7, 2009 (editado) ATUALIZADO 17/01/09 Padrão de postagem:Nome: Total Stats of players (Agora em versão PopUp (by Alisson Linneker) Versão: [8.5x e 8.40] (Testado, Funcionando perfeitamente) Tipo do script: TalkAction Servidor Testado: TFS 0.3.5, TFS 0.3 Autor: Ricktcs Esse tópico será dividido em 4 etapas: 1ª Etapa: Introdução. 2ª Etapa: Scripts TFS 0.3.5 (Se não me engano é o mesmo script para o TFS 0.3, caso não seja, poste.) 3ª Etapa: Modo de uso. _____________________________________________________________ 1ª Etapa: Introduçao. Introdução: Esse script facilitara a vida de gm’s/god’s, o script é o seguinte: você ira executar o comando e ira aparecer uma serie de dados do player, cm certeza facilitara sua vida . 2ª Etapa: Scripts para TFS 0.3.5 (Tambem Funcionando para TFS 0.3 Entre em data/talkaction/scripts, copie um arquivo qualquer da pasta e renome para “statsplayers.lua” abra-o, apague todo o conteúdo e cole as informações a seguir: --Total Stats of players 100% by Ricktcs-- function onSay(cid, words, param) access = 2 if getPlayerGroupId(cid) >= access then player = getPlayerByName(param) if player > 1 then life = getCreatureHealth(player) lifemax = getCreatureMaxHealth(player) manamax = getCreatureMaxMana(player) mana = getCreatureMana(player) lvl = getPlayerLevel(player) guildname = getPlayerGuildName(player) group = getPlayerGroupId(player) soul = getPlayerSoul(player) voc = getPlayerVocation(player) sex = getPlayerSex(player) pacc = getPlayerPremiumDays(player) food = getPlayerFood(player) speed = getCreatureSpeed(player) basespeed = getCreatureBaseSpeed(player) ml = getPlayerMagLevel(player) fist = getPlayerSkill(player, 0) club = getPlayerSkill(player, 1) sword = getPlayerSkill(player, 2) axe = getPlayerSkill(player, 3) dist = getPlayerSkill(player, 4) shield = getPlayerSkill(player, 5) fish = getPlayerSkill(player, 6) local playerPos = getCreaturePosition(player) doPlayerPopupFYI(cid, "LifeMax: " .. lifemax .. " \nLife: " .. life .. " \nManaMax: " .. manamax .. " \nMana: " .. mana .. " \nLevel: " .. lvl .. " \nGroupId: " .. group .. " \nSoul Points: " .. soul .. " \nVocationId: " .. voc .. " \nSex: " .. sex .. " \nPremium Days: " .. pacc .. " \nFood Time: " .. food .. " \nSpeed Base: " .. basespeed .. " \nSpeed Atual: " .. speed .. " \nGuild Name: " .. guildname .. " \nMagic Level: " .. ml .. " \nFist Fighting: " .. fist .. " \nClub Fighting: " .. club .. " \nSword Fighting: " .. sword .. " \nAxe Fighting: " .. axe .. " \nDistance Fighting: " .. dist .. " \nShielding: " .. shield .. " \nFishing: " .. fish .. " \n\nPOSITION [X: "..playerPos.x.." ] [ Y: "..playerPos.y.." ] [ Z: "..playerPos.z.."].") else doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE," O nome esta incorreto ou não existe!") end end return 1 end Após isso vá em data/talkaction/talkaction.xml e adicione a informação a seguir: <!-- Total Stats of players by Ricktcs --> <talkaction log="yes" access="5" words="/stats" script="statsplayers.lua"/> 4ª Etapa: Modo de uso. ATENÇAO: Se não der certo poste aqui pra eu concerta, mas testei aqui e deu normal, creio que não tenha bugs Agora vou explicar como se usa este comando. Após ter feito todas as etapas corretamente. Ligue(de /reload talk se o server já estiver online) Pegue seu gm/god e escreva /stats nome do personagem (Sem aspas nem nada, só /stats nome do player) as informações do personagem no qual você executou o comando(por exemplo: /stats ricktcs) irá aparecer no meio da tela(Versão PopUp). Caso você escreva o nome errado/ não exista ninguém com este nome você ira receber a seguinte informação no rodapé: "O nome esta incorreto ou não existe!". Caso você execute o comando usando um personagem sem ser gm/god(por exemplo: Ricktcs:/stats “Ricktcs”) o comando não será executado, apenas será uma mensagem normal(lembrem-se isso só é com personagens sem ser gm/god). Duvidas, sugestões, criticas ? Comente Porfavor comente só assim eu poderei melhorar !!! CREDITOS 80% Ricktcs(Script) 20% AlissonLinneker(versão em popup). ATENÇAO: Se for postar esse commando em outros forums me avise e coloque os devidos créditos. ~Ricktcs~ Editado Janeiro 17, 2010 por ricktcs Link para o comentário https://xtibia.com/forum/topic/104403-talkaction850totalstatsofplayer/ Compartilhar em outros sites More sharing options...
alissonlinneker 2 Postado Janeiro 7, 2009 Share Postado Janeiro 7, 2009 Essencial. Bem trabalhado. Muito bom e aprovado =D Congratz Link para o comentário https://xtibia.com/forum/topic/104403-talkaction850totalstatsofplayer/#findComment-670703 Compartilhar em outros sites More sharing options...
BillyBola 1 Postado Janeiro 7, 2009 Share Postado Janeiro 7, 2009 Belo trabalho, esse script e bem util, esta bem formatado o topico. Parabéns. Link para o comentário https://xtibia.com/forum/topic/104403-talkaction850totalstatsofplayer/#findComment-670705 Compartilhar em outros sites More sharing options...
ricktcs 3 Postado Janeiro 7, 2009 Autor Share Postado Janeiro 7, 2009 obrigado gente !! postem qualquer bug Link para o comentário https://xtibia.com/forum/topic/104403-talkaction850totalstatsofplayer/#findComment-670706 Compartilhar em outros sites More sharing options...
tibiaa4e 86 Postado Janeiro 8, 2009 Share Postado Janeiro 8, 2009 Mto bom na hora de exibir se pode fazer um looping... que fica um pouco melhor Mesmo assim não tira o merito... Otimo para configurar chares no inicio... Link para o comentário https://xtibia.com/forum/topic/104403-talkaction850totalstatsofplayer/#findComment-670867 Compartilhar em outros sites More sharing options...
ricktcs 3 Postado Janeiro 8, 2009 Autor Share Postado Janeiro 8, 2009 se quiser me "ensinar" a fazer esse tal looping... ele altera alguma coisa ou só diminui o tamanho ? Link para o comentário https://xtibia.com/forum/topic/104403-talkaction850totalstatsofplayer/#findComment-670995 Compartilhar em outros sites More sharing options...
alissonlinneker 2 Postado Janeiro 8, 2009 Share Postado Janeiro 8, 2009 Aqui ó : Edidei o script pra mostrar todos esses status em janela popup (TFS 0.3): function onSay(cid, words, param) access = 2 if getPlayerGroupId(cid) >= access then player = getPlayerByName(param) if player > 1 then life = getCreatureHealth(player) lifemax = getCreatureMaxHealth(player) manamax = getCreatureMaxMana(player) mana = getCreatureMana(player) lvl = getPlayerLevel(player) guildname = getPlayerGuildName(player) group = getPlayerGroupId(player) soul = getPlayerSoul(player) voc = getPlayerVocation(player) sex = getPlayerSex(player) pacc = getPlayerPremiumDays(player) food = getPlayerFood(player) speed = getCreatureSpeed(player) basespeed = getCreatureBaseSpeed(player) ml = getPlayerMagLevel(player) fist = getPlayerSkill(player, 0) club = getPlayerSkill(player, 1) sword = getPlayerSkill(player, 2) axe = getPlayerSkill(player, 3) dist = getPlayerSkill(player, 4) shield = getPlayerSkill(player, 5) fish = getPlayerSkill(player, 6) local playerPos = getCreaturePosition(player) doPlayerPopupFYI(cid, "LifeMax: " .. lifemax .. " \nLife: " .. life .. " \nManaMax: " .. manamax .. " \nMana: " .. mana .. " \nLevel: " .. lvl .. " \nGroupId: " .. group .. " \nSoul Points: " .. soul .. " \nVocationId: " .. voc .. " \nSex: " .. sex .. " \nPremium Days: " .. pacc .. " \nFood Time: " .. food .. " \nSpeed Base: " .. basespeed .. " \nSpeed Atual: " .. speed .. " \nGuild Name: " .. guildname .. " \nMagic Level: " .. ml .. " \nFist Fighting: " .. fist .. " \nClub Fighting: " .. club .. " \nSword Fighting: " .. sword .. " \nAxe Fighting: " .. axe .. " \nDistance Fighting: " .. dist .. " \nShielding: " .. shield .. " \nFishing: " .. fish .. " \n\nPOSITION [X: "..playerPos.x.." ] [ Y: "..playerPos.y.." ] [ Z: "..playerPos.z.."].") else doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE," O nome esta incorreto ou não existe!") end end return 1 end Coloca ele depois no tópico :smile_positivo: Link para o comentário https://xtibia.com/forum/topic/104403-talkaction850totalstatsofplayer/#findComment-671179 Compartilhar em outros sites More sharing options...
r.f 7 Postado Janeiro 8, 2009 Share Postado Janeiro 8, 2009 Nussss ! Mto Bom msm ! vlws Link para o comentário https://xtibia.com/forum/topic/104403-talkaction850totalstatsofplayer/#findComment-671251 Compartilhar em outros sites More sharing options...
ricktcs 3 Postado Janeiro 9, 2009 Autor Share Postado Janeiro 9, 2009 vlw jaja estou postando a versao 2.0 do script (em popup que o alisson ajudou a fazer) Link para o comentário https://xtibia.com/forum/topic/104403-talkaction850totalstatsofplayer/#findComment-671517 Compartilhar em outros sites More sharing options...
f3li93darzan 0 Postado Dezembro 25, 2009 Share Postado Dezembro 25, 2009 Bom trabalho Mano :* Link para o comentário https://xtibia.com/forum/topic/104403-talkaction850totalstatsofplayer/#findComment-832737 Compartilhar em outros sites More sharing options...
ricktcs 3 Postado Janeiro 17, 2010 Autor Share Postado Janeiro 17, 2010 Demorou mais foi , enfimm a versão em PopUp oficialmente no topico, agora o script tambem funciona para 8.50, bom proveito do script ~Ricktcs~ Link para o comentário https://xtibia.com/forum/topic/104403-talkaction850totalstatsofplayer/#findComment-839664 Compartilhar em outros sites More sharing options...
Posts Recomendados