Ir para conteúdo

MySticaL

Membro
  • Registro em

  • Última visita

Tudo que MySticaL postou

  1. EDITADO RETIRADO A VERSÃO DA TFS 0.4 SE CASO QUISER 0.4 SÓ VER NO PERFIL DO ALEXY
  2. Se você ler o post você verá que eu coloquei para 0.3.6. tmb e não só o 0.4 Tu não conseguiu ler se você for no post dele só a para 0.4 eu apenas modifiquei algumas coisas para 0.3.6 tmb
  3. MySticaL postou uma resposta no tópico em Suporte Tibia OTServer
    Eu estava com esse problema mano a solução foi eu entrar em uma conta god e deletar a porta com /r tente fazer isto após dar /r reinicie o servidor.
  4. EDITADO REMOVIDO A VERSÃO 0.4 QUE CONTIA! SE QUISER A VERSÃO 0.4 SÓ VER NO PERFIL DO ALEXY. Oi, vim trazer a função doPlayerOpenChannel para tfs 0.3.6 Essa função nada mais é que quando o player loga abre os chat selecionado no login.lua automaticamente Essa função é para 0.3.6 Versões testada: 8.54 Vamos ao código em LuaScript.cpp Procure: //getChannelUsers(channelId) lua_register(m_luaState, "getChannelUsers", LuaScriptInterface::luaGetChannelUsers); Adicione em baixo: //doPlayerOpenChannel(cid, channelId) lua_register(m_luaState, "doPlayerOpenChannel", LuaScriptInterface::luaDoPlayerOpenChannel); Continuando procure: int32_t LuaScriptInterface::internalGetPlayerInfo(lua_State* L, PlayerInfo_t info) Acima adicione: int32_t LuaScriptInterface::luaDoPlayerOpenChannel(lua_State* L) { //doPlayerOpenChannel(cid, channelId) uint32_t channelId = popNumber(L); uint32_t cid = popNumber(L); ScriptEnviroment* env = getEnv(); Player* player = env->getPlayerByUID(cid); if(player) lua_pushnumber(L, g_game.playerOpenChannel(cid, channelId) ? true : false); else { errorEx(getError(LUA_ERROR_PLAYER_NOT_FOUND)); lua_pushnumber(L, false); } return 1; } Agora em LuaScript.h Procure por: static int32_t luaGetChannelUsers(lua_State* L); abaixo adicione: static int32_t luaDoPlayerOpenChannel(lua_State* L); Agora em data/creaturescripts/scripts/login.lua Antes do último return true Adicione: doPlayerOpenChannel(cid, 7) -- 7 é o número do channel para ver é em data/xml/channels.xml Rep não cai o dedo
  5. Eu também possuo a source de um PDA, você poderia dizer como arrumou o erro por gentileza ? aguardo respostas! ²
  6. MySticaL postou uma resposta no tópico em Suporte Tibia OTServer
    up
  7. Up, também valendo 3 rep meu
  8. MySticaL postou uma resposta no tópico em Playground (Off-topic)
    O universo vai mudar e ainda vai ter gente dizendo que PDA é melhor que Open Source
  9. Alguém sabe resolver o erro do otclient 0.6.7 no meu server ?Ex: eu uso um Alakazam fica de boa ai eu recolho ele para ball ele não volta base: kpdo
  10. Alguém sabe resolver o erro do otclient 0.6.7 no meu server ?Ex: eu uso um alakazam fica de boa ai eu recolho ele para ball ele não volta base: kpdo
  11. MySticaL postou uma resposta no tópico em Suporte Tibia OTServer
    Tenta usar este: elseif spell == "Meteor Smash" then local effD = getSubName(cid, target) == "Shiny Metagross" and 13 or 13 -- 13 é o efeito da "pedrinha" no caso é "missile" local eff = getSubName(cid, target) == "Shiny Metagross" and 100 or 100 -- 100 é o efeito "Meteor" - no caso é "effect" local master = isSummon(cid) and getCreatureMaster(cid) or cid ------------ local function doFall(cid) for rocks = 1, 62 do addEvent(fall, rocks*35, cid, master, ROCKDAMAGE, effD, eff) end end for up = 1, 10 do addEvent(upEffect, up*75, cid, effD) end addEvent(doFall, 450, cid) addEvent(doDanoWithProtect, 1400, cid, ROCKDAMAGE, getThingPosWithDebug(cid), waterarea, -min, -max, 0)
  12. Alguém sabe como faço para que apareça o tanto de PREMIUM POINTS que o player tem emcima do risco preto ? Qual a linha necessaria ? Uso: Modern Aac
  13. Tente usar este:
  14. MySticaL postou uma resposta no tópico em Suporte Tibia OTServer
    Obrigado Tem como fazer para catch ?
  15. MySticaL postou uma resposta no tópico em Suporte Tibia OTServer
    Alguém cria isto para min em modern acc ?
  16. no caso é um efeito para otclient certo ?
  17. deve ser em quest ou dando /i shiny legendary se caso for da staff gm +
  18. Tenta usar este: http://pastebin.com/RR8tBjFd Se não funcionar este: http://pastebin.com/ixWjTFzC
  19. Explicação curta: O jogador(a) clica no baú e ganha os premium points, ele só pode pegar o baú a cada 1 dia (24 horas). Vá em data/lib e adicione isto no 050-function.lua. function getPlayerVipPoints(cid) local Info = db.getResult("SELECT `premium_points` FROM `accounts` WHERE `id` = " .. getPlayerAccountId(cid) .. "") if Info:getID() ~= LUA_ERROR then local Points= Info:getDataInt("premium_points") Info:free() return Points end return LUA_ERROR end function doPlayerAddVipPoints(cid, points) local dif = getPlayerVipPoints(cid) + points if dif >= then db.executeQuery("UPDATE `accounts` SET `premium_points` = `premium_points` + " .. points .. " WHERE `id` = " .. getPlayerAccountId(cid) .. ";") return TRUE end return FALSE end function doPlayerRemoveVipPoints(cid, points) local dif = getPlayerVipPoints(cid) - points if dif >= then db.executeQuery("UPDATE `accounts` SET `premium_points` = `premium_points` - " .. points .. " WHERE `id` = " .. getPlayerAccountId(cid) .. ";") return TRUE end return FALSE end Agora em data/actions/scripts crie um arquivo chamado addp.lua e colo isto. function onUse(cid, item, frompos, item2, topos) local quantidade = 3 -- Quantidade de premium points que irá ganhar. local exausted = getPlayerStorageValue(cid,985439) -- Não modifique. local agora = os.time() -- Não modifique. local tempo = 24 -- Quantas horas ele vai poder pegar o baú. local config = tempo * (60*60) -- Não modifique. local somatempo = agora + config -- Não modifique. local msg1 = "Você já pegou seus Premium Points hoje!" -- Mensagem de quando tentar pegar em menos de 1 dia. local msg2 = "Você pegou seu(s) "..quantidade.." Premium Points!" -- Mensagem quando pegar os premium points. if exausted > agora then doPlayerSendTextMessage(cid,25,msg1) return true end if exausted <= agora then doPlayerSendTextMessage(cid,25,msg2) setPlayerStorageValue(cid,985439,somatempo) doPlayerAddVipPoints(cid,quantidade) return true end end e em data/actions/actions.xml adicione está tag: <action actionid="8745" event="script" value="addp.lua"/> Configurações: E PRONTO AGORA É SÓ IR NO R.M.E E COLOCAR A ACTION 8745 NO BAÚ Caso não funcionar execute isto no SQL: ALTER TABLE `accounts` ADD `premium_points` INT( 11 ) NOT NULL DEFAULT '0';
  20. MySticaL postou uma resposta no tópico em Suporte Tibia OTServer
    Eu apenas coloquei um ponto virgula no fim dá linha 447
  21. Créditos adicionados, obrigado por me alertar !
  22. MySticaL postou uma resposta no tópico em Suporte Tibia OTServer
    Tenta usar este amigo:

Informação Importante

Confirmação de Termo