Tudo que Wakon postou
-
(Resolvido)[PEDIDO] Aumentar número de caracters dentro do tibia.exe
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"
- outfit wodbo volta
-
Items iniciais
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"
-
Como fazer a avalanche ter o dano diminuido em player?
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"
- outfit wodbo volta
-
Alterar storage por comando: /storage, key, value
[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.
-
Duvida Sobre NPC ( Como Girar ) ! POKETIBIA
Quando alguém começar um diálogo, ele vai virar para o player.
- [TFS 1.X] Ninja Vocation Spells
- [TFS 1.X] Ninja Vocation Spells
-
outfit wodbo volta
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.
- outfit wodbo volta
- outfit wodbo volta
-
outfit wodbo volta
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.
- outfit wodbo volta
- outfit wodbo volta
- outfit wodbo volta
- [TFS 1.X] Ninja Vocation Spells
-
outfit wodbo volta
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.
-
(Resolvido)Diminuir rates de X vocation
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>
-
Erro Transparência OtClient (Dcx9 e OpenGL)
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"
-
(Resolvido)[PEDIDO] Ganhar tal item ao entrar no TP
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.
-
[CRACK] Magebot+Volume serial (Todas Versoes)
Estou usando no meu a 44445555, lembrando que as vezes as keys param de funcionar por muita gente usando, mais depois volta.
-
(Resolvido)[PEDIDO] Uma script que após matar a criatura aparecer um teleport
Que bom então, marque a melhor resposta para ficar como resolvido, caso tenha mais alguma dúvida é só perguntar.
-
(Resolvido)[PEDIDO] Uma script que após matar a criatura aparecer um teleport
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.
-
Erros Distro, por favor me ajudeem <3
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.