-
Total de itens
42 -
Registro em
-
Última visita
Tudo que BenitZz postou
-
1- Oque acham da nova equipe? E do fórum? R- A nova equipe 1 moderador ativo, e a antiga tinha mais gente ativa no forum mais tambem nao ajudava tanto assim. 2- Oque tem que melhorar? R- o Forum em si em perfeito porem o template faz com que o forum fique desorganizado, muita coisa tumultuada teria que ser um visual mais limpo. 3- Oque tem que retirar? R - Como disse acima trocar o visual por um mais limpo ate por que esse visual e antigo tambem. rsrs 4- Oque gostariam de ver no fórum? R - Coisas novas, por exemplo uma area vip com conteudo exclusivo seria uma boa. 5- Qual o motivo das críticas? R - Para melhoria do forum 6- Qual a diferença da equipe atual e da antiga?Porque tantas críticas? R- A atual tem 1 ativo no forum que ajuda os player e a antiga tinha mais entao tem que melhorar um pouco 7- Oque acham da aplicação de regras? É correto? Oque deveria mudar? R- As regras estao ai pra manter a orden do forum porem alguma axo que sao severas demais ou talves seja quem aplica elas que seja severo demais e minha opnião.
-
esse script naop funciona da o seguinte erro: [12:45:49.901] [Error - LuaInterface::loadFile] data/movements/scripts/whitheggs.lua:1: unexpected symbol near '�' [12:45:49.901] [Error - Event::checkScript] Cannot load script (data/movements/scripts/whitheggs.lua) [12:45:49.901] data/movements/scripts/whitheggs.lua:1: unexpected symbol near '�' alguem saberia me dizer oq e?
-
executa isso no terminal pra instalar todas as depedencias: apt-get install libboost1.42-dev libboost-system1.42-dev libboost-filesystem1.42-dev libboost-date-time1.42-dev libboost-regex1.42-dev libboost-thread1.42-dev libgmp3-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 lua5.1 libsqlite0-dev libsqlite3-dev sqlite3 libmysql++-dev libmysqlclient-dev mysql-client-5.1 mysql-common libxml2-dev libxml++2.6-dev cpp gcc g++ make automake autoconf pkg-config subversion liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite3-dev zlib1g-dev mysql-client zlib1g libcrypto++-dev libcrypto++8
-
dúvida [Encerrado] Erros de house e Item ao ligar servidor (8.60)
tópico respondeu ao Thayna de BenitZz em Tópicos Sem Resposta
muito facil so olhar no erro ai que mostra a posição e o items que ta bugado e so prestar um pouquinho mais de atenção, entra no map editor vai nas posição que ta mostrando ai ex do primeiro erro: pos: 162,67,7 e remove o items type:3836 ai vc vai fazendo isso nos outros erro que aparecerem. -
muito bom rep+ prati
-
simples e objetivo, otimo topico parabens.
-
depois nao precisa ficar vendo 1 por 1 nao e so pegar o id do items que ta bugando vai em Edit/Other Option/Remover item By ID coloca o id do item bugado e clica em ok remove todos de uma so vez salva o mapa e reabre.
-
Crazy Global War Account: http://crazy-global.servegame.com ip: crazywar.sytes.net versão: 8.80/9.81/9.82/9.83 - Runas e Munição infinitas - Features: • Ganhe 2 dias VIP e um addon doll para começar ( por conta ). • Servidor Dedicado USA. • Sem Ping / Latência • Equipe / Staff séria (Não Joga) • Vocações Balanceadas • Guild Points e Guild Shop com Guild Items Editados • Guild Wars (Escudos) • Task 100% Global • Quests Global 100% • Website seguro e com recursos inéditos - Recompensas: • Ao logar-se pela primeira vez ganhe 2 dias de VipAccount e 1 addon doll. • Ao atingir level 45 use !50k ganhe 50k. - Rates: • XP: 300x (Stages) • Skills: 60x • Magic: 40x • Loot: 4x
-
rsrsr vi que nao tinha e era importante proxima versão tu posta =D
-
sistema Guild Shop System 100% automatico [ModernACC]
tópico respondeu ao BenitZz de BenitZz em Lixeira Pública
@Bump- 8 respostas
-
- guild shop
- guild shop modernacc
- (e 4 mais)
-
sistema GuildShop system+gesior reformulado
tópico respondeu ao eder009009 de BenitZz em Tutoriais de Websites
ja tem este sistema no forum: Guild Shop System [WebSite + Scripts] -
sistema Guild Shop System 100% automatico [ModernACC]
tópico respondeu ao BenitZz de BenitZz em Lixeira Pública
Obrigado tamo nessa tamo junto. @up Adicionado Painel Guild Shop agora remove e adiciona items, adiciona e remove gild points.- 8 respostas
-
- guild shop
- guild shop modernacc
- (e 4 mais)
-
sistema Guild Shop System 100% automatico [ModernACC]
um tópico no fórum postou BenitZz Lixeira Pública
Testado: Versao: 8.60 ate 9.82 Painel guildshop admin: Adiciona items Remove items Add e Remove guild points Como funciona? É um sistema Guild Points, onde há uma Loja EXCLUSIVA para Guilds no Website, [ModernACC] assim Doadores e Guilds tem seu shop separado. Primeiramente faça o Download: GuildShop Depois de baixados coloque a pasta guildshop no: xampp: c:\xampp\htdocs Linux: /var/www apos feito isso vamos executar as seguintes querys em sua database: ALTER TABLE `accounts` ADD `guild_points` INT( 11 ) NOT NULL DEFAULT '0'; CREATE TABLE IF NOT EXISTS `guild_donation_history` ( `id` int(11) NOT NULL AUTO_INCREMENT, `method` varchar(256) NOT NULL, `receiver` varchar(256) NOT NULL, `buyer` varchar(256) NOT NULL, `account` varchar(256) NOT NULL, `points` int(11) NOT NULL, `date` int(10) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; CREATE TABLE IF NOT EXISTS `guild_history` ( `id` int(11) NOT NULL AUTO_INCREMENT, `product` int(11) NOT NULL, `session` varchar(256) NOT NULL, `player` varchar(256) NOT NULL, `date` int(10) NOT NULL, `processed` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=35 ; CREATE TABLE IF NOT EXISTS `guild_offer` ( `id` int(11) NOT NULL AUTO_INCREMENT, `points` int(11) NOT NULL DEFAULT '0', `category` int(11) NOT NULL DEFAULT '1', `type` int(11) NOT NULL DEFAULT '1', `item` int(11) NOT NULL DEFAULT '0', `count` int(11) NOT NULL DEFAULT '0', `description` text NOT NULL, `name` varchar(256) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=81 ; INSERT INTO `guild_offer` (`id`, `points`, `category`, `type`, `item`, `count`, `description`, `name`) VALUES (3, 5, 1, 1, 0, 15, '', '15 days of VIP'), (6, 3, 2, 5, 2160, 100, '', '100 Crystal Coins'), (7, 2, 2, 5, 8266, 1, 'Protection holy -50%, death +8%.', 'Koshei''s Ancient Amulet'), (8, 4, 2, 5, 11393, 1, 'Increases loot rate by 0.5% while using.', 'Lucky Clover Amulet'), (10, 2, 3, 5, 8871, 1, 'Arm:9, magic level +1.<br>It can only be wielded properly by sorcerers and druids.', 'Focus Cape'), (78, 7, 2, 5, 2366, 1, 'Recupera imediatamente toda sua stamina, pode ser usado uma vez.', 'Sweet Recovery Elixir'), (79, 5, 2, 5, 9693, 1, 'Addon Doll(Escolha o Addon que você quiser). Digite !addon first(ou second) nomedoaddon.', 'Addon Doll 1x'); lembrando execute 1 de cada vez de preferencia para nao ter nenhum bug. logo em seguida vamos criar a page do shop no modernacc entra com sua conta de admin no site entre e administration [Painel Admin] vai em pages e clique em Create Page depois em Page Name coloque guildshop e clica em Create na proxima page adicione: <?php include("guildshop/gifts.php"); ?> e cliqe em Edit Page para salvar, pronto shop system instalado, agora vamos pra parte para entregar o item automaticamente ao player, basta entrar em seu ot na pasta /data/globalevents/scripts crie um arquivo guildshop.lua e adicionar: function onThink(interval, lastExecution, thinkInterval) local result = db.getResult("SELECT * FROM guild_history WHERE `processed` = 0;") if(result:getID() ~= -1) then while(true) do cid = getCreatureByName(tostring(result:getDataString("player"))) product = tonumber(result:getDataInt("product")) itemr = db.getResult("SELECT * FROM guild_offer WHERE `id` = "..product..";") if isPlayer(cid) then local id = tonumber(itemr:getDataInt("item")) local tid = tonumber(result:getDataInt("id")) local count = tonumber(itemr:getDataInt("count")) local tipe = tonumber(itemr:getDataInt("type")) local productn = tostring(itemr:getDataString("name")) if isInArray({5,8},tipe) then if getPlayerFreeCap(cid) >= getItemWeightById(id, count) then if isContainer(getPlayerSlotItem(cid, 3).uid) then received = doAddContainerItem(getPlayerSlotItem(cid, 3).uid, id,count) if received then doItemSetAttribute(received, "description", 'Bought by ' .. getCreatureName(cid) .. ' [iD:' .. id .. '].') doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have received >> "..productn.." << from our guild shop system") db.executeQuery("UPDATE `guild_history` SET `processed`='1' WHERE id = " .. tid .. ";") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Sorry, you don't have enough space on container to receive >> "..productn.." <<") end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Sorry, you don't have a container to receive >> "..productn.." <<") end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Sorry, you don't have enough capacity to receive >> "..productn.." << (You need: "..getItemWeightById(id, count).." Capacity)") end elseif isInArray({6,7},tipe) then if tipe == 6 then bcap = 8 bid = 1987 elseif tipe == 7 then bcap = 20 bid = 1988 end if isItemRune(id) then count = 1 end if getPlayerFreeCap(cid) >= (getItemWeightById(1987, 1) + getItemWeightById(id,count * bcap)) then local bag = doCreateItemEx(bid, 1) for i = 1,bcap do doAddContainerItem(bag, id, count) end received = doPlayerAddItemEx(getPlayerSlotItem(cid, 3).uid, bag) if received == RETURNVALUE_NOERROR then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have received >> "..productn.." << from our guild shop system") db.executeQuery("UPDATE `guild_history` SET `processed`='1' WHERE id = " .. tid .. ";") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Sorry, you don't have enough space to receive >> "..productn.." <<") end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Sorry, you don't have enough capacity to receive >> "..productn.." << (You need: "..getItemWeightById(id, count).." Capacity)") end end end itemr:free() if not(result:next()) then break end end result:free() end return true end em seguida entre em globalevents.xml e adicione a linha: <globalevent name="guildshop" interval="15000" event="script" value="guildshop.lua"/> e logo em seguida vamo por o talkactions para as guild pegarem seus guild points, entre em /data/talkactions/scripts e crie uma arquivo com nome guildpoints.lua e adicione: local playersNeeded = 8 local ipsNeeded = 6 local minimumLevel = 50 local storageId = 41578 local pointsForPlayer = 20 local function sendPlayersList(cid, list) for i, pid in ipairs(list) do local level = getPlayerLevel(pid) < minimumLevel and " - " .. getPlayerLevel(cid) .. " level " or "" local valid = getCreatureStorage(pid, storageId) > 1 and " - already received!" or "" doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getCreatureName(pid) .. level) end end function onSay(cid, words, param, channel) if(getPlayerGuildLevel(cid) == 3) then local leaderGuild = getPlayerGuildId(cid) local players = getPlayersOnline() local guildMembersValid = {} local guildMembersInvalid = {} for i, pid in ipairs(players) do if(leaderGuild == getPlayerGuildId(pid)) then if(getPlayerLevel(pid) >= minimumLevel and tonumber(getCreatureStorage(pid, storageId)) < 2) then table.insert(guildMembersValid, pid) else table.insert(guildMembersInvalid, pid) end end end if(#guildMembersValid >= playersNeeded) then local IPs = {} for i, pid in ipairs(guildMembersValid) do local ip = getPlayerIp(pid) if(IPs[ip] == nil) then IPs[ip] = ip end end if(#IPs >= ipsNeeded) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Players that received points:") sendPlayersList(cid, guildMembersValid) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Players that did not receive points:") sendPlayersList(cid, guildMembersInvalid) local accounts = {} for i, pid in ipairs(guildMembersValid) do table.insert(accounts, getPlayerAccountId(pid)) doCreatureSetStorage(pid, storageId, os.time()) end db.executeQuery("UPDATE `accounts` SET `guild_points` = `guild_points`+" .. pointsForPlayer .. " WHERE `id` IN (" .. table.concat(accounts, ',') .. ");") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, #guildMembersValid .. " players from your guild are valid (" .. playersNeeded .. " required), but you have together only " .. #IPs .. " IPs (" .. ipsNeeded .. " required)") doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Valid players:") sendPlayersList(cid, guildMembersValid) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Invalid players:") sendPlayersList(cid, guildMembersInvalid) end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, #guildMembersValid .. " players from your guild are valid, " .. playersNeeded .. " required. Minimum level required is " .. minimumLevel) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Valid players:") sendPlayersList(cid, guildMembersValid) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Invalid players:") sendPlayersList(cid, guildMembersInvalid) end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Only guild leader can request points.") end return true end depois em talkactions.xml adicione a linha: <talkaction log="yes" words="!guildpoints" script="guildpoints.lua" /> e pronto fim do tutorial qualquer duvida so perguntar e nao esqueça de agradecerem Creditos: A mim: Por ter quebrado a cabeça pra editar o shop para postar aqui HastlerHost: Pelo Talkactions- 8 respostas
-
- guild shop
- guild shop modernacc
- (e 4 mais)
-
dúvida [Encerrado] Erro ao compra wands e rods nos npcs!
tópico respondeu ao shuzin de BenitZz em Tópicos Sem Resposta
Abra o npc Chuckles.xml e troque por este <?xml version="1.0" encoding="UTF-8"?> <npc name="Chuckles" script="default.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="99" head="0" body="0" legs="0" feet="1" addons="0"/> <voices> <voice text="My old bones feel a storm approaching. chuckles" interval2="90" margin="1" yell="no"/> <voice text="chuckles!" interval2="90" margin="1" yell="no"/> </voices> <parameters> <parameter key="module_shop" value="1"/> <parameter key="message_greet" value="Hello |PLAYERNAME|. I sell potions, runes, rods and wands!"/> <parameter key="shop_buyable" value="spellbook,2175,150;magic lightwand,2163,400;small health,8704,20;health potion,7618,45;mana potion,7620,50;strong health,7588,60;strong mana,7589,60;great health,7591,80;great mana,7590,80;great spirit,8472,150;ultimate health,8473,210;antidote potion,8474,50;blank rune,2260,10;animate dead,2316,375;antidote,2266,65;avalanche,2274,180;chameleon,2291,210;convince creature,2290,80;desintegrate,2310,80;destroy field,2261,45;energy bomb,2262,325;energy field,2277,115;energy wall,2279,340;explosion,2313,190;fire bomb,2305,235;fire field,2301,85;fire wall,2303,245;fireball,2302,150;great fireball,2304,180;heavy magic missile,2311,120;holy missile missile,2295,80;icicle,2271, 50;intense healing,2265,95;light magic missile,2287,40;magic wall,2293,200;paralyze,2278,250;poison bomb,2286,170;poison field,2285,65;poison wall,2289,210;soulfire,2308,140;stalagmite,2292,120;stone shower,2288,150;sudden death,2268,50;thunderstorm,2315,150;ultimate healing,2273,175;wild growth,2269,320;wand of vortex,2190,500;wand of dragonbreath,2191,1000;wand of decay,2188,2000;wand of draconia,8921,3000;wand of cosmic energy,2189,4000;wand of inferno,2187,5000;wand of starstorm,8920,6000;wand of voodoo,8922,7000;shimmer wand,13880,15000;snakebite rod,2182,500;moonlight rod,2186,1000;necrotic rod,2185,2000;northwind rod,8911,3000;terra rod,,2181,4000;hailstorm rod,2183,5000;springsprout rod,8912,6000;underworld rod,8910,7000;shimmer rod,13872,15000;"/> <parameter key="shop_sellable" value="normal potion flask,7636,5;strong potion flask,7634,10;great potion flask,7635,15;wand of vortex,2190,250;wand of dragonbreath,2191,500;wand of decay,2188,1000;wand of draconia,8921,2000;wand of cosmic energy,2189,3000;wand of inferno,2187,4000;wand of starstorm,8920,5000;wand of voodoo,8922,6000;shimmer wand,13880,13000;snakebite rod,2182,250;moonlight rod,2186,500;necrotic rod,2185,1000;northwind rod,8911,2000;terra rod,,2181,3000;hailstorm rod,,2183,4000;springsprout rod,8912,5000;underworld rod,8910,6000;shimmer rod,13872,13000;"/> </parameters> </npc> -
Coloquei meus proprio creditos KKK se alguem souber criar coluna no sqlite me fale para eu adicionar no post que eu adiciono os creditos. vamos que vamos galera.
-
Desculpe nao me recordo da pessoa que fizeram algo parecido so do Smyllodon que era eu apenas organizei o topico melhor se tiver mais alguem por favor me informe que eu coloco os creditos. Funciona em mysql e sqlite estou fazendo a querry pra executar no sqlite e edito o topico.
-
Esse sistema usa premium points, bom para otserv que nao tem site baiak, mapa proprio daria pra usar com global tambem fica a escolha de quem usar. Testado em: TFS 0.3.6 e 0.4 Vamos instalar o sistema, primeiro entre em data/libs e abra o arquivo 050-function.lua e adicione: depois de ter feito isso vamos criar a talkactions que comprará o item e removerá os pontos da conta, entre em data/talkactions/scripts e crie o arquivo vipsword.lua e adicione: function onSay(cid, words, param) if ChecarPontos(cid) >= 2 then doPlayerAddItem(cid,2400,1) RemoverPontos(cid, 2) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce compro uma vip sword por 2 pontos!") else doPlayerSendCancel(cid, "Voce nao tem pontos suficiente!") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) end return TRUE end Configurando: ChecarPontos(cid) >= 2 doPlayerAddItem(cid,2400,1) RemoverPontos(cid, 2) No Verde e Laranja coloca quantos pontos quer remover da conta. No Azul id do item. No Vermelho quantidade do item. apos te configurado abra o talkactions.xml e adicione a seguinte linha: <talkaction words="!vipsword" event="script" value="vipsword.lua"/> para cada item que vc quizer adiciona basta crar um novo arquivo lua por o script e editar com o items desejado e adicionando em talkactions.xml. Os adms que quizerem por os pontos para vender por crystal coin o script e esse abaixo, entre em data/talkactions/scripts e crie o arquivo buypontos.lua e adicione: function onSay(cid, words, param) if getPlayerItemCount(cid, 2160) >= 10 then doPlayerRemoveItem(cid, 2160, 10) AddPontos(cid, 5) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce comprou 10 pontos") else doPlayerSendCancel(cid, "Voce nao tem dinheiro suficiente para comprar pontos!") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) end return TRUE end Configurando: getPlayerItemCount(cid, 2160) >= 10 then doPlayerRemoveItem(cid, 2160, 10) AddPontos(cid, 5) No Marron coloca quantos crystal coin quer remover do player No Rosa quantidade de pontos para adicionar ao player. apos te configurado abra o talkactions.xml e adicione a seguinte linha: <talkaction words="!buypontos" event="script" value="buypontos.lua"/> para funcionar perfeitamente execute no mysql: Creditos: Smyllodon - EU. E ao demais que nao sei quem é.
-
talkaction [8.60+] Items para todos player online.
um tópico no fórum postou BenitZz Actions e Talkactions
POST REMOVIDO JA EXISTE NO FORUM -
Versão: 3.0 Versão de tibia: 9.7+ Descrição: Como muitos sabem na versão 9.7 a tfs removeu o rank system, e o tibia também adicionou os novos estilos de diálogos. Então eu resolvi fazer um novo rank system com esse sistema. Features: - Rank system em tempo real. - Janela personalisada. - Frags rank (Mock) TAG: a <talkaction words="!rank;/rank;!ranks;/ranks" event="script" value="rank.lua"/> Script: data/talkactions/scripts/rank.lua modaldialog2 = { title = "Rank", message = "Escolha o rank que você quer visualizar:", buttons = { { id = 1, value = "Ver" }, { id = 2, value = "Cancelar" }, }, buttonEnter = 1, buttonEscape = 2, choices = { { id = 1, value = "Fist" }, { id = 2, value = "Club" }, { id = 3, value = "Sword" }, { id = 4, value = "Axe" }, { id = 5, value = "Distance" }, { id = 6, value = "Shield" }, { id = 7, value = "Fish" }, { id = 8, value = "Magic" }, { id = 9, value = "Level" }, { id = 10, value = "Frags" } }, popup = false } function callback2(cid, button, choice) if (button == 1) then local str = "" local name_now if (choice == 1) then str = "--[ Fist Rank ]--\n" query = db.getResult("SELECT `player_id`, `value` FROM `player_skills` WHERE `skillid` = 0 ORDER BY `value` DESC;") if (query:getID() ~= -1) then k = 1 repeat if k > 20 then break end str = str .. "\n " .. k .. ". "..(getPlayerNameByGUID(query:getDataString("player_id"))).." - [" .. query:getDataInt("value") .. "]" k = k + 1 until not query:next() end elseif (choice == 2) then str = "--[ Club Rank ]--\n" query = db.getResult("SELECT `player_id`, `value` FROM `player_skills` WHERE `skillid` = 1 ORDER BY `value` DESC;") if (query:getID() ~= -1) then k = 1 repeat if k > 20 then break end str = str .. "\n " .. k .. ". "..(getPlayerNameByGUID(query:getDataString("player_id"))).." - [" .. query:getDataInt("value") .. "]" k = k + 1 until not query:next() end elseif (choice == 3) then str = "--[ Sword Rank ]--\n" query = db.getResult("SELECT `player_id`, `value` FROM `player_skills` WHERE `skillid` = 2 ORDER BY `value` DESC;") if (query:getID() ~= -1) then k = 1 repeat if k > 20 then break end str = str .. "\n " .. k .. ". "..(getPlayerNameByGUID(query:getDataString("player_id"))).." - [" .. query:getDataInt("value") .. "]" k = k + 1 until not query:next() end elseif (choice == 4) then str = "--[ Axe Rank ]--\n" query = db.getResult("SELECT `player_id`, `value` FROM `player_skills` WHERE `skillid` = 3 ORDER BY `value` DESC;") if (query:getID() ~= -1) then k = 1 repeat if k > 20 then break end str = str .. "\n " .. k .. ". "..(getPlayerNameByGUID(query:getDataString("player_id"))).." - [" .. query:getDataInt("value") .. "]" k = k + 1 until not query:next() end elseif (choice == 5) then str = "--[ Distance Rank ]--\n" query = db.getResult("SELECT `player_id`, `value` FROM `player_skills` WHERE `skillid` = 4 ORDER BY `value` DESC;") if (query:getID() ~= -1) then k = 1 repeat if k > 20 then break end str = str .. "\n " .. k .. ". "..(getPlayerNameByGUID(query:getDataString("player_id"))).." - [" .. query:getDataInt("value") .. "]" k = k + 1 until not query:next() end elseif (choice == 6) then str = "--[ Shield Rank ]--\n" query = db.getResult("SELECT `player_id`, `value` FROM `player_skills` WHERE `skillid` = 5 ORDER BY `value` DESC;") if (query:getID() ~= -1) then k = 1 repeat if k > 20 then break end str = str .. "\n " .. k .. ". "..(getPlayerNameByGUID(query:getDataString("player_id"))).." - [" .. query:getDataInt("value") .. "]" k = k + 1 until not query:next() end elseif (choice == 7) then str = "--[ Fish Rank ]--\n" query = db.getResult("SELECT `player_id`, `value` FROM `player_skills` WHERE `skillid` = 6 ORDER BY `value` DESC LIMIT 20;") if (query:getID() ~= -1) then k = 1 repeat if k > 20 then break end str = str .. "\n " .. k .. ". "..(getPlayerNameByGUID(query:getDataString("player_id"))).." - [" .. query:getDataInt("value") .. "]" k = k + 1 until not query:next() end elseif (choice == 8) then str = "--[ Magic Rank ]--\n" query = db.getResult("SELECT `maglevel`, `name` FROM `players` WHERE `group_id` < 3 ORDER BY `maglevel` DESC LIMIT 20;") if (query:getID() ~= -1) then k = 1 repeat if k > 20 then break end str = str .. "\n " .. k .. ". "..(query:getDataString("name")).." - [" .. query:getDataInt("maglevel") .. "]" k = k + 1 until not query:next() end elseif (choice == 9) then str = "--[ Level Rank ]--\n" query = db.getResult("SELECT `name`, `level`, `experience` FROM `players` WHERE `group_id` < 3 ORDER BY `experience` DESC LIMIT 20;") if (query:getID() ~= -1) then k = 1 repeat if k > 20 then break end str = str .. "\n " .. k .. ". "..(query:getDataString("name")).." - [" .. query:getDataInt("level") .. "]" k = k + 1 until not query:next() end elseif (choice == 10) then str = "--[ Kills Rank ]--\n" query = db.getResult("SELECT `p`.`name` AS `name`, COUNT(`p`.`name`) as `frags` FROM `killers` k LEFT JOIN `player_killers` pk ON `k`.`id` = `pk`.`kill_id` LEFT JOIN `players` p ON `pk`.`player_id` = `p`.`id` WHERE `k`.`unjustified` = 1 GROUP BY `name` ORDER BY `frags` DESC;") if query:getID() == -1 then str = str .. "\nNinguém matou ninguém." end if (query:getID() >= 0) then k = 1 repeat if k > 20 then break end name_now, l = query:getDataString("name"), string.len(query:getDataString("name")) str = str .. "\n " .. k ..". ".. name_now .." - [" .. query:getDataInt("frags") .. "]" k = k + 1 until not query:next() end end doShowTextDialog(cid, 2529, str) end end function onSay(cid, words, param) addDialog(modaldialog2, 1002, cid, callback2); return true end Como usar: No servidor digite /rank e selecione o tipo de rank ou skill que você deseja visualizar. Creditos: Comedinha Mock
-
Versão:1.0 Versão de tibia:9.7+ Descrição:Eu estava vendo as guilds do servidor quando achei que deveria fazer um script para o dono da guild usar e saber o que está acontecendo. Features: - Ver quem está online em sua guild - Ver os comandos em sua guild TAG: <talkaction words="!guild;/guild" event="script" value="guild.lua"/> Script: data/talkactions/guild.lua local commands = [[[ -- Guilds Commands -- ] /disband - Deleta a guild /invite - Invitar um membro na guild /leave - Sai da guild /revoke - Tira o convite de membro para a guild /promote - Promove o membro da guild /demote - Tira a promoção de um membro da guild /passleadership - Passa o lider para outro membro /kick - Kika o membro da guild /nick - Adiciona um "guildnick" ao membro /setrankname - Muda o nome de algum rank da guild /setmotd - Muda a mensagem inicial da guild /cleanmotd - Limpa a mensagem inicial da guild]] function CountGuildMembers(GuildName) -- function by vodkart local count = 0 local lista = db.getResult("SELECT `name`, `rank_id` FROM `players` WHERE `rank_id` IN (SELECT `id` FROM `guild_ranks` WHERE `guild_id` = " .. getGuildId(GuildName) .. ");") if(lista:getID() ~= -1) then repeat count = count + 1 until not lista:next() lista:free() return count end end modaldialog5 = { title = "Guild Help", message = "Escolha o que você quer visualizar:", buttons = { { id = 1, value = "Ver" }, { id = 2, value = "Cancelar" }, }, buttonEnter = 1, buttonEscape = 2, choices = { { id = 1, value = "Membros Online" }, { id = 2, value = "Comandos" } }, popup = false } function callback5(cid, button, choice) if (button == 1) then if (choice == 1) then local players,str,GuildName = {},'',getPlayerGuildName(cid) if getPlayerGuildId(cid) <= 0 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Você precisa estar em uma Guild.") return true end for _, cid in pairs(getPlayersOnline()) do if getPlayerGuildName(cid) == GuildName then table.insert(players, cid) end end str = str .. "Membros total da guild: "..CountGuildMembers(GuildName).." Players.\n\nExiste "..#players.." Players online na sua guild:\n\n" for i = 1, #players do str = str.."\n["..getPlayerName(players[i]).."]["..getPlayerGuildRank(players[i]).."]" end return doShowTextDialog(cid, 2533, str) elseif (choice == 2) then str = commands doShowTextDialog(cid, 2529, str) end end end function onSay(cid, words, param) if getPlayerGuildId(cid) <= 0 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Você não está em nenhuma guild.") return true end addDialog(modaldialog5, 1005, cid, callback5); return true end Como usar: Digite /guild e descubra. Créditos: Vodkart Comedinha
-
uping
-
dúvida [Encerrado] Account Manager 1/1 [NAO ENTRA]
tópico respondeu ao Alexclusive de BenitZz em Tópicos Sem Resposta
tanto faz a versão se o cara for inteligente nao importa -
Jvserver esta no caminho certo com proteção ddos e otimas maquinas.
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.