Ir para conteúdo

Alissow

Conde
  • Total de itens

    689
  • Registro em

  • Última visita

  • Dias Ganhos

    57

Tudo que Alissow postou

  1. Vou te explicar como funciona o comando de ban com um exemplo /ban Zyron, 10 Vermelho: Nome do player que você quer banir. Azul: Quantidade de dias que você quer que o player seja banido.
  2. Link: Meu OTs :positive:
  3. Daqui a pouco posto 'uma parte' da nova Ver :smile_positivo:
  4. Arrumei um comando pra banir, quando terminar tudo vou estar postando aqui, ou posto um patch antes? De qualquer modo você pode banir na janela do distro do ot, em server/players management, escolhe o player e clica em ban.
  5. Nem faço idéia de onde veio esse bug. se tiver alguem aí pra ajudar já que nem sou muito bom nisso :smile_positivo:
  6. Hum. Gostei das suas sujestões e tem muita coisa pra melhorar mesmo, ai vai. 1: NPCs em barcos já estou colocando 2: + 2 Andares? + um só já basta, fica muitos :smile_positivo: 3: Aquilo não é svargrond, mas vou reformar ela, tá bem feinha né, principalmente aquela parte que só tem frost dragon 4: Arenas vão ser feitas 5: Dreamer challenge é aquela que tem que jogar num tabuleiro? :lol: 6: As magias novas vão depender do que o pessoal votar na enquete 7: E os addons tambem 8: Gostei da idéia do lord of clothes na Poi, vou colocar lá mesmo :smile_positivo: 9: Vou escolher outro local pra o orshabaal, pode dar uma opinião? 10: Como já disse vou fazer mais quests, aumentar a dificuldade de umas e diminuir de outras. 11: A annihi está completamente o que? 12: Mais areas de hunt? Clarooo 13: Vou tentar consertar isso... 14: O tempo de clean vai depender do pc e de quanto lixo tem no chão, aqui não demora muito 15: Tambem amo o Dorion :lol: 16: Ah. A demon helmet nem tá tãaao dificil assim vai, e a poi dá o necromancer shield porcausa da dificuldade dela, os bosses e tal, Ghazbaran já tirei, Orshabaal tambem, mas coloquei outros. 17: E não é que esqueci da quest da firewarker boots? Vou colocar tambem. 18: Ajuda sempre é bom né. Se quiser adicionar :person: speed_on_blood@hotmail.com vai vendo mais bugs, no mapa, entre outros e me fala 19: Vou entrar no seu server e dar uma olhada lá. 20: Spells tambem vou arrumar.
  7. Obrigado por reportar, já estou arrumando.
  8. Usei no começo o SimOne depois passei pra Rme. O problema é que tá tudo normal,à 2 semanas quando eu abri o ot pra fazer testes não tinha esse erro. Vou aumentar o tempo pra aparecer essas raids. E a próxima versão vai vir quando acabar minhas provas
  9. Os comandos eu mudei, é assim agora. /i = cria itens com nome ou com id /npc = cria npc Quando ao god vou dar uma olhada. Vlw ai. A poi tambem tem bastante gente reclamando desses bichos ai, vou fazer 2 boss exclusivos pra ela, claro que mais fracos que o Ghaz e o orsha. Ps: Pode me passar o Ip do ot? pra eu dar uma conferida, ver se a galera aprova, as opiniões :positive: Valeu pela força
  10. Voce tá criando o God? se sim deve ter algo errado, modifica o God Alissow
  11. :ouch: Sério? Aqui fica tudo normal mas de qualquer jeito vou ver se identifico esse problema.
  12. É, tava pensando em fazer npc de barco msm, e por mais houses mas as raids automaticas dão uma certa emoção :lol: no jogo. E as quests tambem vou adicionar bastante. Vlw pelas sujestões
  13. As magias estou tentando fazer elas funcionarem e quanto à Yalahar a cidade completa pesa muitoo, e estou tentando fazer uma map leve e com bastante coisa, que não passe de 20 mb, mas vou adicionar mais algumas áreas em yalahar.
  14. Galera, da umas sujestões ae :idea: pra proxima atualização.
  15. Pqp, tu ainda tá com receio? pesquisa mais um pouquinho vai...
  16. Vai na pasta do OT em data\creaturescripts\scripts, abre o login.lua vai ter algo assim local message = [[[color="#FF0000"]Seja bem vindo ao Alissow OTs! Utilize o canal help para maiores informações. Enjoy xD[/color]]] function onLogin(cid) doPlayerPopupFYI(cid, message) registerCreatureEvent(cid, "PlayerDeath") --registerCreatureEvent(cid, "MEDALS") This is Nahruto's Metal System for killing someone, Dont add this unless you use it.-- return TRUE end Você pode mudar o que tá em vermelho :smile_positivo:
  17. :withstupidsmiley: Não fala o que não sabe OK? :smile_positivo: To colocando mais houses, na prox atualização vai ter as de yalahar e mais umas em outras citys :positive:
  18. As raids são automáticas, mas vc pode editar na pasta data/raids... :smile_positivo:
  19. Scan no virus total http://www.virustotal.com/pt/analisis/2582...64234fdcdedaa90 Quer que eu prove que não coloquei virus? faz o download do Tfs 0.3b3 e faz scan, depois veja se dá no mesmo.
  20. Alissow Ots 3.3.2 (2ª revisão de erros) Map dorion 90% editado Sobre o OT/Mapa Principais quests: -Annihilator -Inquisition Quest -Pits of inferno -Demon Oak -Solar axe quest -HOTA -MPA quest Monstros: -Total monstros: 10990+ -Total spawn: 5587+ Cidades: -11 Cidades -200 Houses+- Raids/Invasões: -Rat -Orshabaal -Ghazbaran -Giant spider/The old window -Ferumbras Spells: -Magias editadas para balanceamento das vocações Alissow OTS V3.3 Atualizado 05/05/2009 Bem, esta é a ultima versão para Tibia 8.4x, as próximas versões em 8.4x serão apenas para correção de bugs, claro se vocês reportarem. OBS: Quando o server tiver abrindo e aparecer aquela janelinha clique em Yes. Aquilo é para avisar que já tem uma nova versão do tfs disponivel. O que tem de novo: - Adicionado inquisition quest. - Adicionado distro compilado by Applez. Prós: Ele disse que tinha arrumado o bug do server ficar caindo. Contras: Só funciona no Tibia 8.42, mas se quiser pode trocar o distro para a versão 0.3.3 (crying damson) original do TFS. - Algumas mudanças na cidade principal, Dorion. - Bugs achados em yalahar, arrumados. - Arrumado bug de clonar char. Na verdade era só mudar uma coisa no config.lua, mas tinha gente que não sabia. - Reformada area de Black knights e beholders em Saari. (Vale a pena conferir) - Novos monstros, murderess spider, Feromous, Green Phantom e outros sem muita importancia. - Adicionado quest da greenwood coat. You see a greenwood coat (Arm:15, protection energy -41%, earth +41%). It can only be wielded properly by druids of level 75 or higher. It weighs 28.50 oz. - Adicionado inquisition quest. - Concluido Blood Castle. Abre a cada 2 horas. Não testado sistema de fechamento do castelo. =o - Adicionada yalahari set quest, dá o item de acordo com a vocação. - Adicionado todas as casas em yalahar. - Caves mais detalhadas. - Várias caves de dragons revisadas, mais detalhadas. estavam muito feias. - Respawn dos bosses retirados, agora só aparecem em invasões. - Quest da boh movida para a nova área de Hydras. - Removida quest da Demon armor, agora só pode ser obtida através da Annihilator Quest. - Adicionado nova area de warlocks e banshees, onde antes ficava o respawn de Ferumbras. Alissow OTS V3.3.1 (1ª revisão de erros) Atualizado 09/05/2009 Vocês reportaram e eu arrumei, continuem reportando. - Distro trocado para versão nova do TFS. - Arrumado bug no npc, do Tower shield. - Agora são 2 npcs para venda de items, a Soya para venda de armas e o Mad para venda de Armaduras. Troquei para diminuir o numero de items no script no npc, alguns items não apareciam porque o script era muito grande. - Onde tem um Mad há sempre uma Soya e vice versa. - Arrumado bug no aol, Testei uma vez com um lvl 10. O aol Caiu. ATENÇÃO Estou sabendo do bug do ot cair, o problema é no distro (executavel do ot), como não sei compilar para ver onde fica o erro fica dificil, então se tiver alguem que possa me ajudar a compilar, pra mecher no interno do OT agradeceria muito. Msn: speed_on_blood@hotmail.com, se quiser tambem dou suporte Alissow OTS V3.3.2 (2ª revisão de erros) Atualizado 16/05/2009 Não adicionei nada de mais, apenas corrigi alguns bugs reportados. - Bug do ot cair, segundo o Elf, arrumado - Trocado distro para nova versão do TFS - diminuido ataque do Eye of the seven - Ice rapier agora quebra (não testado) - arrumado bug no holy orchid da bulma - Trocado script da annihilator (não testado) - Re-arrumado vocations.xml - compra de potions por alavanca temporariamente indisponivel. Você pode comprar Bps de potions atraves do sistema "Buy with backacks" no npc Dark Rodo. OBS: Com o novo distro TFS criou-se um bug que o Otservlist bloqueia o OT, eu coloquei um arquivo que não vem na nova versão do TFS no ot pra ver se continuava bugando, mas não testei. OBS2: Com a atualização do TFS tive que mudar várias coisas no ot então peço que reportem os bugs que eu irei arrumar o mais rápido possivel. OBS3: Isso tudo eu fiz só hoje, é o motivo de várias coisas não serem testadas mas estão funcionando corretamente. DOWNLOAD Alissow OTs 3.3.2 Servidor: 4shared Tamanho: 11.00 MB Link protegido: http://lix.in/-4b7ec7 Scan VirusTotal: http://www.virustotal.com/pt/analisis/f335c39526070b34d9cb2593f04d51c0 OBS: É o scan da versão anterior do otserv, então se achar que tem virus e não confiar no scan do 4shared não baixe, ou faça você mesmo o seu scan. Links importantes Videotutorial colocando o ot online: http://www.youtube.com/watch?v=gcyscdsHxSY Videotutorial, configurando o Vocations.xml: http://www.youtube.com/watch?v=eu5QDXxCnwM Tutorial como mudar ou criar acc de GOD/GM : http://www.xtibia.com/forum/sqlitecomo-Criar-Ou-Trocar-Senha-Um-God-gamema-t96660.html Sobre problema da dll infectada e virus em alguns ots: http://www.xtibia.com/forum/Sobre-Problema-Dll-Infectada-virus-Em-Alguns-Ot-t71583.htm Se não conseguir extrair baixe o peazip: http://www.baixaki.com.br/download/peazip.htm Comentem E reportem os bugs Para quem quer baixar versões anteriores do Alissow OTs. (A mais nova é a 3.3.2 atualizado 16/5/2009) Pasta de compartilhamento do 4shared. Contém quase todas as versões do ot, desde a 2.5. Link da pasta de compartilhamento: http://www.4shared.com/dir/14048551/841cbc0b/sharing.html
  21. Errm esperando ficar "perfeito".
  22. Tem certeza que não tem? procure por essa linha removeChargesFromRunes = "yes" e coloque "no"
  23. Ele funciona sim, eu testei e funcionou em tfs 0.3, siga o topico que funciona.
  24. Quero deixar bem claro que o script do npc não é meu é de outro fórum e todos os créditos vão para Gesior. Em config.lua verifique a linha Deixe "yes" Crie um arquivo com nome bank.xml em \data\npc e cole isto: <?xml version="1.0" encoding="UTF-8"?> <npc name="Bank" script="data/npc/scripts/bank.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="134" head="78" body="88" legs="0" feet="88" addons="3"/> </npc> Agora crie um em bloco de notas com nome bank em \data\npc\scripts e adicione este codigo: function getCount(msg) local ret = -1 local b, e = string.find(msg, "%d+") if b ~= nil and e ~= nil then ret = tonumber(string.sub(msg, b, e)) end return ret end function msgcontains(message, keyword) local a, b = string.find(message, keyword) if a == nil or b == nil then return false end return true end function addCoin(cid, itemid, count) if count > 100 then while(count > 100) do cash = doCreateItemEx(itemid, 100) doPlayerAddItemEx(cid, cash, 1) count = count - 100 end end if count > 0 then cash = doCreateItemEx(itemid, count) doPlayerAddItemEx(cid, cash, 1) end end function doPlayerExist(name) local result = db.getResult("SELECT `name` FROM `players` WHERE `name` = " .. db.escapeString(name)) if (result:getID() ~= -1) then local return_name = result:getDataString("name") result:free() return return_name end return 0 end GOLD_COIN = 2148 PLATINUM_COIN = 2152 CRYSTAL_COIN = 2160 local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) talk_state[cid] = 0 npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end npcHandler:setMessage(MESSAGE_GREET, "Greetings |PLAYERNAME|. I'm banker.") talk_state = {} last_count = {} last_name = {} function creatureSayCallback(cid, type, msg) orginal_msg = msg msg = string.lower(msg) if(not npcHandler:isFocused(cid)) then talk_state[cid] = 0 return false end if talk_state[cid] == nil then talk_state[cid] = 0 last_count[cid] = 0 last_name[cid] = "" end -- select action if msgcontains(msg, 'change') and talk_state[cid] ~= 41 then talk_state[cid] = 10 npcHandler:say('We exchange gold, platinum and crystal coins.', cid) elseif msgcontains(msg, 'balance') and talk_state[cid] ~= 41 then talk_state[cid] = 0 local balance = getPlayerBalance(cid) if balance == 0 then npcHandler:say('Your bank account is empty.', cid) elseif balance <= 100000 then npcHandler:say('Your account balance is ' .. balance .. ' gold coins.', cid) elseif balance <= 1000000 then npcHandler:say('Your account balance is ' .. balance .. ' gold coins.', cid) else npcHandler:say('Your account balance is ' .. balance .. ' gold coins.', cid) end elseif msgcontains(msg, 'deposit') and talk_state[cid] ~= 41 then talk_state[cid] = 20 npcHandler:say('How much gold you would like to deposit?', cid) elseif msgcontains(msg, 'withdraw') and talk_state[cid] ~= 41 then talk_state[cid] = 30 npcHandler:say('How much gold you would like to withdraw?', cid) elseif msgcontains(msg, 'transfer') and talk_state[cid] ~= 41 then talk_state[cid] = 40 npcHandler:say('How much gold you would like to transfer?', cid) end -- change if talk_state[cid] == 10 then if msgcontains(msg, 'platinum') then talk_state[cid] = 12 npcHandler:say('Do you want to change your platinum coins to gold or crystal?', cid) elseif msgcontains(msg, 'gold') then talk_state[cid] = 11 npcHandler:say('How many platinum coins do you want to get?', cid) elseif msgcontains(msg, 'crystal') then talk_state[cid] = 13 npcHandler:say('How many crystal coins do you want to change to platinum?', cid) end end if talk_state[cid] >= 11 and talk_state[cid] <= 13 then if talk_state[cid] == 11 and getCount(msg) > 0 then talk_state[cid] = 14 last_count[cid] = getCount(msg) npcHandler:say('So I should change ' .. getCount(msg) * 100 .. ' of your gold coins to ' .. getCount(msg) .. ' platinum coins for you?', cid) elseif talk_state[cid] == 12 then if msgcontains(msg, 'gold') then talk_state[cid] = 15 npcHandler:say('How many platinum coins do you want to change to gold?', cid) elseif msgcontains(msg, 'crystal') then talk_state[cid] = 16 npcHandler:say('How many crystal coins do you want to get?', cid) end elseif talk_state[cid] == 13 and getCount(msg) > 0 then talk_state[cid] = 17 last_count[cid] = getCount(msg) npcHandler:say('So I should change ' .. getCount(msg) .. ' of your crystal coins to ' .. getCount(msg)*100 .. ' platinum coins for you?', cid) end end if talk_state[cid] >= 14 and talk_state[cid] <= 17 then if talk_state[cid] == 14 and getCount(msg) <= 0 then if msgcontains(msg, 'yes') then if math.floor(getPlayerItemCount(cid, GOLD_COIN) / 100) >= last_count[cid] then doPlayerRemoveItem(cid, GOLD_COIN, last_count[cid] * 100) addCoin(cid, PLATINUM_COIN, last_count[cid]) npcHandler:say('Here you are.', cid) else npcHandler:say('You don\'t have ' .. last_count[cid] * 100 .. ' gold coins.', cid) end else npcHandler:say('Well, can I help you with something else?', cid) end talk_state[cid] = 0 elseif talk_state[cid] == 15 and getCount(msg) > 0 then talk_state[cid] = 18 last_count[cid] = getCount(msg) npcHandler:say('So I should change ' .. getCount(msg) .. ' of your platinum coins to ' .. getCount(msg) * 100 .. ' gold coins for you?', cid) elseif talk_state[cid] == 16 and getCount(msg) > 0 then talk_state[cid] = 19 last_count[cid] = getCount(msg) npcHandler:say('So I should change ' .. getCount(msg) * 100 .. ' of your platinum coins to ' .. getCount(msg) .. ' crystal coins for you?', cid) elseif talk_state[cid] == 17 and getCount(msg) <= 0 then if msgcontains(msg, 'yes') then if getPlayerItemCount(cid, CRYSTAL_COIN) >= last_count[cid] then doPlayerRemoveItem(cid, CRYSTAL_COIN, last_count[cid]) addCoin(cid, PLATINUM_COIN, last_count[cid] * 100) npcHandler:say('Here you are.', cid) else npcHandler:say('You don\'t have ' .. last_count[cid] .. ' crystal coins.', cid) end else npcHandler:say('Well, can I help you with something else?', cid) end talk_state[cid] = 0 end end if talk_state[cid] >= 18 and talk_state[cid] <= 19 then if talk_state[cid] == 18 and getCount(msg) <= 0 then if msgcontains(msg, 'yes') then print(2) if getPlayerItemCount(cid, PLATINUM_COIN) >= last_count[cid] then doPlayerRemoveItem(cid, PLATINUM_COIN, last_count[cid]) addCoin(cid, GOLD_COIN, last_count[cid] * 100) npcHandler:say('Here you are.', cid) else npcHandler:say('You don\'t have ' .. last_count[cid] .. ' platinum coins.', cid) end else npcHandler:say('Well, can I help you with something else?', cid) end talk_state[cid] = 0 elseif talk_state[cid] == 19 and getCount(msg) <= 0 then if msgcontains(msg, 'yes') then if math.floor(getPlayerItemCount(cid, PLATINUM_COIN) / 100) >= last_count[cid] then doPlayerRemoveItem(cid, PLATINUM_COIN, last_count[cid] * 100) addCoin(cid, CRYSTAL_COIN, last_count[cid]) npcHandler:say('Here you are.', cid) else npcHandler:say('You don\'t have ' .. last_count[cid] * 100 .. ' platinum coins.', cid) end else npcHandler:say('Well, can I help you with something else?', cid) end talk_state[cid] = 0 end end --deposit if talk_state[cid] == 20 and getCount(msg) > 0 then talk_state[cid] = 21 last_count[cid] = getCount(msg) npcHandler:say('Would you really like to deposit ' .. last_count[cid] .. ' gold coins?', cid) elseif talk_state[cid] == 20 and msgcontains(msg, 'all') then if getPlayerMoney(cid) <= 0 then talk_state[cid] = 0 npcHandler:say('You don\'t have any money.', cid) else talk_state[cid] = 21 last_count[cid] = getPlayerMoney(cid) npcHandler:say('Would you really like to deposit your all money, ' .. last_count[cid] .. ' gold coins?', cid) end elseif talk_state[cid] == 21 and getCount(msg) <= 0 then if msgcontains(msg, 'yes') then if doPlayerDepositMoney(cid, last_count[cid]) == TRUE then npcHandler:say('You deposited ' .. last_count[cid] .. ' gold coins. Now your account balance is ' .. getPlayerBalance(cid) .. ' gold coins.', cid) else npcHandler:say('You don\'t have ' .. last_count[cid] .. ' gold coins.', cid) end else npcHandler:say('Well, can I help you with something else?', cid) end talk_state[cid] = 0 end --withdraw if talk_state[cid] == 30 and getCount(msg) > 0 then talk_state[cid] = 31 last_count[cid] = getCount(msg) npcHandler:say('Would you really like to withdraw ' .. last_count[cid] .. ' gold coins?', cid) elseif talk_state[cid] == 30 and msgcontains(msg, 'all') then talk_state[cid] = 31 last_count[cid] = getPlayerBalance(cid) npcHandler:say('Would you really like to withdraw your all money, ' .. last_count[cid] .. ' gold coins?', cid) elseif talk_state[cid] == 31 and getCount(msg) <= 0 then if msgcontains(msg, 'yes') then if doPlayerWithdrawMoney(cid, last_count[cid]) == TRUE then npcHandler:say('You withdrawed ' .. last_count[cid] .. ' gold coins. Now your account balance is ' .. getPlayerBalance(cid) .. ' gold coins.', cid) else npcHandler:say('You don\'t have ' .. last_count[cid] .. ' gold coins on your account. You account balance is ' .. getPlayerBalance(cid) .. '.', cid) end talk_state[cid] = 0 else npcHandler:say('Well, can I help you with something else?', cid) end talk_state[cid] = 0 end -- transfer if talk_state[cid] == 40 and getCount(msg) > 0 then if getPlayerBalance(cid) >= getCount(msg) then talk_state[cid] = 41 last_count[cid] = getCount(msg) npcHandler:say('To who would you like transfer ' .. last_count[cid] .. ' gold coins from your account? Tell me his or her name.', cid) else talk_state[cid] = 0 npcHandler:say('You don\'t have ' .. getCount(msg) .. ' gold coins on your account.', cid) end elseif talk_state[cid] == 41 then local toPlayer = doPlayerExist(msg) if toPlayer ~= 0 then last_name[cid] = toPlayer talk_state[cid] = 42 npcHandler:say('So you would like to transfer ' .. last_count[cid] .. ' gold coins to ' .. last_name[cid] .. '?', cid) else talk_state[cid] = 0 npcHandler:say('I don\'t know player with name ' .. orginal_msg .. '.', cid) end elseif talk_state[cid] == 42 then if msgcontains(msg, 'yes') then if doPlayerTransferMoneyTo(cid, last_name[cid], last_count[cid]) == TRUE then npcHandler:say('You have transfered ' .. last_count[cid] .. ' gold coins to bank account of player ' .. last_name[cid] .. '. Now your account balance is ' .. getPlayerBalance(cid) .. '.', cid) else npcHandler:say('You don\'t have ' .. last_count[cid] .. ' gold coins on your bank account or player with name ' .. last_name[cid] .. ' doesn\'t exist. Money not transfered.', cid) last_name[cid] = "" end else npcHandler:say('Well, can I help you with something else?', cid) end talk_state[cid] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Exemplo de conversa com o npc: Só funciona bem em TFS 0.3b2+ Faça bom uso.
  25. Vai no seu script de online (data\talkactions\scripts\online.xml) e troque por este, mas faça um backup antes. local config = { showGamemasters = getConfigInfo('displayGamemastersWithOnlineCommand') } function onSay(cid, words, param) local players = getPlayersOnline() local strings = {} local pos = 1 local count = 0 local tmp = TRUE for i, pid in ipairs(players) do local line = ", " if(tmp == TRUE) then if(i > pos * 7) then pos = pos + 1 end if(strings[pos] == nil) then strings[pos] = "" line = "" end end tmp = TRUE if((getBooleanFromString(config.showGamemasters) == FALSE and getPlayerCustomFlagValue(pid, PlayerCustomFlag_GamemasterPrivileges) == TRUE and getPlayerCustomFlagValue(cid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) or (isPlayerGhost(pid) == TRUE and getPlayerAccess(pid) > getPlayerAccess(cid))) then count = count + 1 tmp = FALSE else strings[pos] = strings[pos] .. line .. getCreatureName(pid) .. " [" .. getPlayerLevel(pid) .. "]" end end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, (#players - count) .. " player(s) online:") for i, string in ipairs(strings) do if(string ~= "") then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, string .. ".") end end return TRUE end O mesmo com deathlist: function onSay(cid, words, param) local target = db.getResult("SELECT `name`, `id` FROM `players` WHERE `name` = " .. db.escapeString(param) .. ";") if(target:getID() ~= -1) then local targetName = target:getDataString("name") local targetGUID = target:getDataInt("id") target:free() local str = "" local deaths = db.getResult("SELECT `time`, `level`, `killed_by`, `altkilled_by` FROM `player_deaths` WHERE `player_id` = " .. targetGUID .. " ORDER BY `time` DESC;") if(deaths:getID() ~= -1) then local breakline = "" while(true) do if(str ~= "") then breakline = "\n" end local time = os.date("%d %B %Y %X ", deaths:getDataInt("time")) local level = deaths:getDataInt("level") local killed = "" local lastHitKiller = deaths:getDataString("killed_by") local mostDamageKiller = deaths:getDataString("altkilled_by") if(tonumber(lastHitKiller)) then killed = getPlayerNameByGUID(tonumber(lastHitKiller)) else killed = getArticle(lastHitKiller) .. " " .. string.lower(lastHitKiller) end if(mostDamageKiller ~= "") then if(tonumber(mostDamageKiller)) then killed = killed .. " and by " .. getPlayerNameByGUID(tonumber(mostDamageKiller)) else killed = killed .. " and by " .. getArticle(mostDamageKiller) .. " " .. string.lower(mostDamageKiller) end end str = str .. breakline .. " " .. time .. " Died at Level " .. level .. " by " .. killed .. "." if not(deaths:next()) then break end end deaths:free() else str = "No deaths recorded." end doPlayerPopupFYI(cid, "Deathlist for player: " .. targetName .. ".\n\n" .. str) else doPlayerSendCancel(cid, "A player with that name does not exist.") end return TRUE end Se não funcionar mande o script de ambos pra eu analizar.
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...