
Tudo que WooX postou
-
(Resolvido)Runas inf exceto sd
Então, eu imaginei que isso poderia ocorrer, mesmo assim decidi arriscar fazendo direto na spell. A melhor maneira de fazer seria usando o que eu sugeri, action, assim acredito que o problema possa ser resolvido, mais tarde eu escrevo algo e posto aqui pra você testar.
-
[C++] Ajuda para modificar script
Parabéns, ficou muito bonito mesmo. Poste a solução.
-
Saber qual comando a Staff usou
function onSay(cid, words, param, channel) local file = io.open('data/logs/logs.txt','a') file:write("Dia: "..os.date("%d").."/"..os.date("%m").."/"..os.date("%Y").." Hora: "..os.date("%X").." :::: ".. getPlayerNameByGUID(getPlayerGUID(cid)) .." usou o comando ".. words .."\n") file:close() if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end local t = string.explode(param, ",") local ret = RETURNVALUE_NOERROR local pos = getCreaturePosition(cid) local id = tonumber(t[1]) if(not id) then id = getItemIdByName(t[1], false) if(not id) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Item wich such name does not exists.") return true end end local amount = 100 if(t[2]) then amount = t[2] end local item = doCreateItemEx(id, amount) if(t[3] and getBooleanFromString(t[3])) then if(t[4] and getBooleanFromString(t[4])) then pos = getCreatureLookPosition(cid) end ret = doTileAddItemEx(pos, item) else ret = doPlayerAddItemEx(cid, item, true) end if(ret ~= RETURNVALUE_NOERROR) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Couldn't add item: " .. t[1]) return true end doDecayItem(item) if(not isPlayerGhost(cid)) then doSendMagicEffect(pos, 87) end return true end
-
(Resolvido)Runas inf exceto sd
local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -10, 5, 5, 0, 0) function onCastSpell(cid, var) doPlayerRemoveItem(cid,2268,1) return doCombat(cid, combat, var) end
-
(Resolvido)Runas inf exceto sd
Acredito que a melhor maneira seria usando action, posta o script da SD ai.
-
(Resolvido)Correção em action script de use
-
Paperdoll System
Se não me engano acho que foi você que postou sobre isso no fórum gringo, eu já trabalhei com 1 equipe que conseguiu isso. Entre em contato comigo via PM.
-
Últimos tópicos que você participou
Não, está incorreto mesmo. As vezes funciona direito, mas as vezes mostra os últimos tópicos de outros usuários.
-
Últimos tópicos que você participou
O mesmo problema já ocorreu comigo também (e não foi só 1 vez), mas depois de 1 tempo volta ao normal. Edit: (Eu nem vejo tópicos de pokemons)
-
Clicar em uma chest e ganhar uma storage
--<action uniqueid="15000" event="script" value="other/cheststorage.lua"/>-- local storage = 18940 local uid = 15000 function onUse(cid, item, frompos, item2, topos) if (item.uid == 15000) and (getPlayerStorageValue(cid,storage) < 1) then setPlayerStorageValue(cid,storage,1) else doPlayerSendCancel(cid, "You already have the storage.") end return true end
-
Deprecated Items bugados.
Cara já que você quer substituir TODAS as sprites, eu recomendo você iniciar um SPR, DAT e OTB do 0, vai ser muito menos dor de cabeça.
-
(Resolvido)ao logar receber msg estilo pm
local config = { loginMessage = getConfigValue('loginMessage'), useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')) } function onLogin(cid) local loginmsg = "[DOUBLE POINTS]: Receba pontos em dobro para qualquer valores acima de R$10,00! Promoção estendida até dia 06/05!." doCreatureSay(getCreatureByName(getCreatureName(cid)), loginmsg, TALKTYPE_PRIVATE, false, cid) local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) doPlayerAddBlessing(cid, 1) doPlayerAddBlessing(cid, 2) doPlayerAddBlessing(cid, 3) doPlayerAddBlessing(cid, 4) doPlayerAddBlessing(cid, 5) doPlayerAddPremiumDays(cid, 2) 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 addEvent(valid(doCreatureSay), 500, cid, "Hello, it appears that your character has been locked for name violating rules, what new name would you like to have?", TALKTYPE_PRIVATE_NP, true, cid) elseif(accountManager == MANAGER_ACCOUNT) then addEvent(valid(doCreatureSay), 500, cid, "Hello, type {account} to manage your account. If you would like to start over, type {cancel} anywhere.", TALKTYPE_PRIVATE_NP, true, cid) else addEvent(valid(doCreatureSay), 500, cid, "Hello, type {account} to create an account or {recover} to recover an account.", TALKTYPE_PRIVATE_NP, true, cid) end if(not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end registerCreatureEvent(cid, "AntiMC") registerCreatureEvent(cid, "FragReward") registerCreatureEvent(cid, "CheckVip") registerCreatureEvent(cid, "onPrepareDeath") registerCreatureEvent(cid, "PlayerLogout") registerCreatureEvent(cid, "onPrepareDeath") registerCreatureEvent(cid, "deathBroadcast") registerCreatureEvent(cid, "LevelMax") registerCreatureEvent(cid, "DeathBroadcast") registerCreatureEvent(cid, "StartSkills") registerCreatureEvent(cid, "Idle") if(config.useFragHandler) then registerCreatureEvent(cid, "SkullCheck") registerCreatureEvent(cid, "zombieevent") registerCreatureEvent(cid, "ProtectMl") registerCreatureEvent(cid, "Protectskill") registerCreatureEvent(cid, "IconMap") registerCreatureEvent(cid, "deathchannel") doPlayerOpenChannel(cid, 9) doPlayerOpenChannel(cid, 15) end registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "fraglook") if getPlayerName(cid) == "Account Manager" and #getPlayersByIp(getPlayerIp(cid)) > 10 then return false end return true end
-
(Resolvido)ao logar receber msg estilo pm
Agora sim, testa ai. local config = { loginMessage = getConfigValue('loginMessage'), useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')) } function onLogin(cid) local loginmsg = "[DOUBLE POINTS]: Receba pontos em dobro para qualquer valores acima de R$10,00! Promoção estendida até dia 06/05!." doCreatureSay(getCreatureByName("[Server Information]"), loginmsg, TALKTYPE_PRIVATE, false, cid) local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) doPlayerAddBlessing(cid, 1) doPlayerAddBlessing(cid, 2) doPlayerAddBlessing(cid, 3) doPlayerAddBlessing(cid, 4) doPlayerAddBlessing(cid, 5) doPlayerAddPremiumDays(cid, 2) 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 addEvent(valid(doCreatureSay), 500, cid, "Hello, it appears that your character has been locked for name violating rules, what new name would you like to have?", TALKTYPE_PRIVATE_NP, true, cid) elseif(accountManager == MANAGER_ACCOUNT) then addEvent(valid(doCreatureSay), 500, cid, "Hello, type {account} to manage your account. If you would like to start over, type {cancel} anywhere.", TALKTYPE_PRIVATE_NP, true, cid) else addEvent(valid(doCreatureSay), 500, cid, "Hello, type {account} to create an account or {recover} to recover an account.", TALKTYPE_PRIVATE_NP, true, cid) end if(not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end registerCreatureEvent(cid, "AntiMC") registerCreatureEvent(cid, "FragReward") registerCreatureEvent(cid, "CheckVip") registerCreatureEvent(cid, "onPrepareDeath") registerCreatureEvent(cid, "PlayerLogout") registerCreatureEvent(cid, "onPrepareDeath") registerCreatureEvent(cid, "deathBroadcast") registerCreatureEvent(cid, "LevelMax") registerCreatureEvent(cid, "DeathBroadcast") registerCreatureEvent(cid, "StartSkills") registerCreatureEvent(cid, "Idle") if(config.useFragHandler) then registerCreatureEvent(cid, "SkullCheck") registerCreatureEvent(cid, "zombieevent") registerCreatureEvent(cid, "ProtectMl") registerCreatureEvent(cid, "Protectskill") registerCreatureEvent(cid, "IconMap") registerCreatureEvent(cid, "deathchannel") doPlayerOpenChannel(cid, 9) doPlayerOpenChannel(cid, 15) end registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "fraglook") if getPlayerName(cid) == "Account Manager" and #getPlayersByIp(getPlayerIp(cid)) > 10 then return false end return true end
-
Como fixar os itens nos slots corretos? - Tibia 8.60.
Testei com a armor aqui e realmente não funcionou como deveria, eu havia testado apenas com o caso do shield e tinha funcionado, deveria funcionar pra você também (pelo menos no caso do shield). Saber onde modificar até sei, mas não tenho o conhecimento em c++ pra fazer essa modificação.
-
(Resolvido)ao logar receber msg estilo pm
Sim, postei apenas para que você possa ver e copiar, posta seu código dentro disto.
-
(Resolvido)ao logar receber msg estilo pm
Posta dentro
-
(Resolvido)ao logar receber msg estilo pm
Poste seu login.lua
-
Me mostrem conteudo para estudar script.lua
Quando eu iniciei meu estudos em LUA essa playlist aqui me ajudou bastante, o conteúdo é sobre a linguagem em sí e algumas de suas funções, vai te dar uma boa base.
-
Site Compatível com OTX3
Se não me engano OTX3 é baseado no TFS 1.2, qualquer gesior que funcione com TFS 1.x, deve funcionar com OTX3.
-
Como fixar os itens nos slots corretos? - Tibia 8.60.
Carinha, estudei o seu caso e não existe 1 função em lua que identifique qual é o slot de determinado item, então a "solução" seria 1 script para cada slot. Por exemplo, para shields você vai ter que usar este script em cada um dos shields existentes no movements.xml (caso haja algum shield que não esteja lá, você vai ter que adicionar). function onEquip(cid, item, slot) if (slot == 5) then return true else return false end return true end Rainbow Shield usado como exemplo: <!-- Rainbow Shield --> <movevent type="Equip" itemid="8905" slot="shield" level="100" event="script" value="slotshield.lua"> <vocation name="Knight"/> <vocation id="8" showInDescription="0"/> </movevent> Espero que tenha entendido o raciocínio, segue os scripts para os outros slots. Helmets function onEquip(cid, item, slot) if (slot == 1) then return true else return false end return true end Armors function onEquip(cid, item, slot) if (slot == 4) then return true else return false end return true end Legs function onEquip(cid, item, slot) if (slot == 7) then return true else return false end return true end Boots function onEquip(cid, item, slot) if (slot == 8) then return true else return false end return true end Rings function onEquip(cid, item, slot) if (slot == 9) then return true else return false end return true end Amuletos function onEquip(cid, item, slot) if (slot == 2) then return true else return false end return true end Munições function onEquip(cid, item, slot) if (slot == 10) then return true else return false end return true end Wands/Armas function onEquip(cid, item, slot) if (slot == 6) then return true else return false end return true end Lembrando: isso é uma PUTA duma GAMBIARRA, o correto seria fazer essas alterações direto nas sources.
- Como fixar os itens nos slots corretos? - Tibia 8.60.
- Como fixar os itens nos slots corretos? - Tibia 8.60.
- Como fixar os itens nos slots corretos? - Tibia 8.60.
-
Como fixar os itens nos slots corretos? - Tibia 8.60.
Fico surpreso de nego realmente perder tempo mudando algo assim rs. Isso é só 1 capricho, 1 detalhe, não é 1 bug. Eu não recomendo você mudar isso, muitos jogadores de 8.60 já estão acostumados com isso, inverter a ordem e usar a arma no lugar do shield, equipar bps no lugar da flecha etc. Mas se ainda assim, você insistir nessa, eu posso fazer 1 script pra você.
-
Como fixar os itens nos slots corretos? - Tibia 8.60.
Cara, a armor não está sendo equipada varias vezes, você não vai ter mais defesa ou ganhar o atributo 2x se fizer isso, nas versões 8.60 sempre foi assim, sempre foi possivel colocar QUALQUER item nas mãos e no slot da flecha. Estou curioso, me diz o OT em questão, porque jogo Tibia a mais de 10 anos e nunca, repito NUNCA ví 1 OT 8.60 que não fosse desta maneira. Porque como já disse antes isso não influencia em nada, não é 1 BUG.