Ir para conteúdo

Wakon

Héroi
  • Registro em

  • Última visita

Tudo que Wakon postou

  1. Dá uma olhada nesse tópico: http://www.tibiaking.com/forum/topic/55103-custom-cliente-todas-as-vers%C3%B5es-qualquer-ip/ O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de OTServ Geral" Para: "OTServ → Suporte OTServ → Suporte de Clients"
  2. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    É realmente não tem nada interferindo, eu fiz uma pequena alteração nos scripts, pode ser que funcione (não tenho certeza). http://www.mediafire.com/download/ceyio1w214evkei/creaturescripts.rar
  3. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    Abra o creaturescripts.xml e veja se tem a tag do firstitems.xml. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → OTServ Geral" Para: "OTServ → Suporte OTServ → Suporte de OTServ Geral"
  4. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Scripting → Geral" Para: "OTServ → Suporte OTServ → Suporte de Scripts"
  5. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    troquei o voclogout.lua pelo que vc passou. entrei no Gm e fiz ate o comando para a storage... aii reloguei o char e ele ainda continua a perder a outfit =\ Passa sua pasta creaturescripts para verificar se não tem algum outro script interferindo, por favor.
  6. [Comando testado em TFS 0.4] Fala ai pessoal, estou trazendo hoje um comando pra vocês alterarem a storage do player sem precisar acessar a database. Esse comando já vem em algumas bases, mas percebi que algumas não tem e resolvi trazer pra vocês, vamos lá. Vá em "Data/talkactions/scripts" copie e cole um arquivo.lua e renomeie para storage.lua, apague tudo e cole isso: function onSay(cid, words, param) local t = string.explode(param, ",") if(not t[2]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") return true end local tid = getPlayerByNameWildcard(t[1]) if(not tid or (isPlayerGhost(tid) and getPlayerGhostAccess(tid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " not found.") return true end if(not t[3]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, " [" .. t[1] .. " - " .. t[2] .. "] = " .. getPlayerStorageValue(tid, t[2])) else setPlayerStorageValue(tid, t[2], t[3]) end return true end Agora em "Data/talkactions" abra o arquivo talkactions.xml e adicione a TAG: <talkaction log="yes" words="/storage" access="4" event="script" value="storage.lua"/> Você pode configurar os groups que poderão usar o comando em acess="4", na tag está definido para GM + usar, caso queira apenas GOD coloque 6. Comando: /storage Wakon, 25005, 1 Em vermelho é o nome do personagem. Em verde é a storage que será alterada. Em roxo é o valor que a storage terá. É isso, qual quer dúvida ou erro é só comentar.
  7. Quando alguém começar um diálogo, ele vai virar para o player.
  8. Tópico aprovado, movido para a área de correta e você ganhou um rep pela contribuição, obrigado por contribuir.
  9. Aprovarei o tópico caso você adicione o XML e o tutorial pelo menos.
  10. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    Tenta trocar o voclogout.lua por esse: function onLogout(cid) local vocations = { ["Tapion"] = {voc = 5, storage = 210000}, ["Kame"] = {voc = 8, storage = 210001} } for k, v in pairs(vocations) do if getPlayerVocation(cid) == v.voc then setPlayerStorageValue(cid, v.storage, 1) end end return true end Não esqueça de configurar as storage corretamente.
  11. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    Mesmo não aparecendo você tentou deslogar e logar para testar o esquema do outfit?
  12. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    Você tem que falar com uma conta GM +, ai você coloca o nome do personagem que quer alterar a storage, pode ser o seu mesmo. /storage jeanchess, 200003, 1
  13. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    Faz assim, adiciona o script de alterar storage no seu servidor, fica mais fácil de testar scripts. Em "Data/talkactions/scripts" copie e cole um arquivo .lua e renomeie para storage.lua, apague tudo e cole isso: function onSay(cid, words, param) local t = string.explode(param, ",") if(not t[2]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") return true end local tid = getPlayerByNameWildcard(t[1]) if(not tid or (isPlayerGhost(tid) and getPlayerGhostAccess(tid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " not found.") return true end if(not t[3]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, " [" .. t[1] .. " - " .. t[2] .. "] = " .. getPlayerStorageValue(tid, t[2])) else setPlayerStorageValue(tid, t[2], t[3]) end return true end Agora em "Data/talkactions" abra o arquivo talkactions.xml e adicione a tag: <talkaction log="yes" words="/storage" access="4" event="script" value="storage.lua"/> Ai é só usar o comando /storage Wakon, 200003, 1 -- Nome do seu personagem, storage, valor da storage. Depois que você usar isso deslogue e logue o personagem e veja se manteve a vocação e o outfit.
  14. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    É só um teste, mudou certinho? Aquele script que te passei é para fazer isso, mais se deu certo mudando ai o script não está mudando a storage.
  15. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    Uai amigo, você encontra na database do servidor '-'. Se estiver usando SQL pelo sql editor, se for mySQL muda pelo phpmyadmin.
  16. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    Amigo, esse é o modo que eu coloquei, perceba que nos scripts tem uma função onLogin e uma onLogout . Sobre a storage, você pode mudar pela database em player_storage e também em alguns servidores tem o comando: /storage Wakon, 200001, 1 -- Nome, storage, valor da storage.
  17. Amigo seu conteúdo é muito bom mais poderia melhorar um pouco o tópico, adicionando um pequeno tutorial de como adicionar as spells e colocar os códigos em spoiler, pois tem muitos.
  18. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    Creio que apenas em scripts onLogin/onLogout ou alteração nas sources( não sei mexer ), faça um teste para ver se tem problema no script. Pegue uma storage citada, tipo a do tapion3 e altere o valor dela para 1 e relogue o char, se estiver realmente funcionando a outfit e a vocation irá mudar para tapion3.
  19. Tente trocar o shielding para 3.0: <vocation id="0" name="None" description="none" needpremium="0" gaincap="5" gainhp="5" gainmana="5" gainhpticks="3" gainhpamount="2" gainmanaticks="1" gainmanaamount="4" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="yes"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="3.0" fishing="1.1" experience="1.0"/> </vocation>
  20. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Aprovação de Tópicos de Conteúdos" Para: "OTServ → Suporte OTServ → Suporte de Clients"
  21. Em "Data/movements/scripts" adicione newtpitem.lua: local t = { storage = 23444, -- Só mexa se estiver em uso. tp = { x = 32338, y = 32225, z = 7 }, -- Local onde irá levar. item = 2472 -- Item que irá ganhar. } function onStepIn(cid, item, position, fromPosition) if getPlayerFreeCap(cid) < getItemWeight(t.item, 1) and getPlayerStorageValue(cid, t.storage) <= 0 then doPlayerSendCancel(cid, "You not have ".. getItemWeight(t.item, 1) .." cap.") doTeleportThing(cid, fromPosition) return doSendMagicEffect(getCreaturePosition(cid), 13) end if getPlayerStorageValue(cid, t.storage) <= 0 then doPlayerAddItem(cid, t.item, 1) doTeleportThing(cid, t.tp) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) setPlayerStorageValue(cid, t.storage, 1) else doTeleportThing(cid, t.tp) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end return true end Agora em "Data/movements" abra o movements.xml e adicione: <movevent event="StepIn" actionid="8594" script="newtpitem.lua"/> Ai é só colocar a actionid no teleport.
  22. Estou usando no meu a 44445555, lembrando que as vezes as keys param de funcionar por muita gente usando, mais depois volta.
  23. Que bom então, marque a melhor resposta para ficar como resolvido, caso tenha mais alguma dúvida é só perguntar.
  24. Não posso dar suporte via PM, vamos continuar no tópico. Você ao adicionar o script e adicionar a tag no login.lua deslogou e logou o char para atualizar? O event adicionado no login.lua deve ter exatamente o nome do evento citado em creaturescripts.xml. Eu creio que seja algum problema na instalação mesmo, pois testei o script e está funcionando TFS 1.0.
  25. Olha tente assim: local config = { loginMessage = getConfigValue('loginMessage') } function onLogin(cid) local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) end local accountManager = getPlayerAccountManager(cid) if(accountManager == MANAGER_NONE) then local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage if(lastLogin > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "." else str = str .. " Please choose your outfit." doPlayerSendOutfitWindow(cid) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) elseif(accountManager == MANAGER_NAMELOCK) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?") elseif(accountManager == MANAGER_ACCOUNT) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.") end if(not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end registerCreatureEvent(cid, "Outfit") registerCreatureEvent(cid, "Mail") registerCreatureEvent(cid, "GuildMotd") registerCreatureEvent(cid, "Idle") registerCreatureEvent(cid, "SkullCheck") registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "LevelProtection") registerCreatureEvent(cid,"Saga") registerCreatureEvent(cid, "Arena") registerCreatureEvent(cid, "ArenaKill") registerCreatureEvent(cid, "advanced") -- if he did not make full arena 1 he must start from zero if getPlayerStorageValue(cid, 42309) < 1 then for i = 42300, 42309 do setPlayerStorageValue(cid, i, 0) end end -- if he did not make full arena 2 he must start from zero if getPlayerStorageValue(cid, 42319) < 1 then for i = 42310, 42319 do setPlayerStorageValue(cid, i, 0) end end -- if he did not make full arena 3 he must start from zero if getPlayerStorageValue(cid, 42329) < 1 then for i = 42320, 42329 do setPlayerStorageValue(cid, i, 0) end end if getPlayerStorageValue(cid, 42355) == -1 then setPlayerStorageValue(cid, 42355, 0) -- did not arena level end setPlayerStorageValue(cid, 42350, 0) -- time to kick 0 setPlayerStorageValue(cid, 42352, 0) -- is not in arena return true end Verifique se está salvando corretamente o script pois ele está perfeito, está tudo fechado corretamente ao meu ver.

Informação Importante

Confirmação de Termo