Geralt Posted April 27, 2020 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 108 Reputation: 0 Joined: 12/26/12 Last Seen: June 19, 2020 Share Posted April 27, 2020 (edited) can someone do a ranking for this script appears in fluxcp // ===== SQL ================================ // CREATE TABLE `gdt` ( // `guild_id` int(11) unsigned NOT NULL auto_increment, // `tesouros` int(11) unsigned NOT NULL default '0', // `pontos` int(11) unsigned NOT NULL default '0', // PRIMARY KEY (`guild_id`) // ) TYPE=MyISAM // Warps arena_room.gat,99,25,0 warp tesouro1 1,1,prt_are_in.gat,98,23 prt_are_in.gat,97,30,0 warp tesouro2 1,1,arena_room.gat,99,28 prt_are_in.gat,142,13,0 warp tesouro3 1,1,prt_are_in.gat,177,79 prt_are_in.gat,177,74,0 warp tesouro4 1,1,prt_are_in.gat,138,13 prt_are_in.gat,55,13,0 warp tesouro5 1,1,prt_are_in.gat,125,78 prt_are_in.gat,125,74,0 warp tesouro6 1,1,prt_are_in.gat,60,13 arena_room.gat,99,88,0 warp tesouro7 1,1,izlude.gat,128,222 prt_are_in.gat,74,127,0 warp tesouro8 1,1,prt_are_in.gat,98,10 prt_are_in.gat,97,7,0 warp tesouro9 1,1,prt_are_in.gat,74,129 izlude,127,225,0 script iz431 45,1,1,{ if(getcharid(2) == 0){ mes "[Guerra do Tesouro]"; mes "Desculpe, mas você precisa de um clã para participar da guerra do tesouro."; close; }else{ set @rand, rand(6); if(@rand == 0) warp "arena_room.gat",120,87; if(@rand == 1) warp "arena_room.gat",114,102; if(@rand == 2) warp "arena_room.gat",87,102; if(@rand == 3) warp "arena_room.gat",79,88; if(@rand == 4) warp "arena_room.gat",113,74; if(@rand == 5) warp "arena_room.gat",85,74; } end; } izlude.gat,130,258,0 duplicate(iz431) iz431#iz432 45,1,1,{ prt_are_in.gat,0,0,0 script TesouroEvent::TesouroKill -1,{ OnKilled: Tesouro: set @check, query_sql("SELECT tesouros,pontos FROM gdt WHERE guild_id='"+getcharid(2)+"' LIMIT 1", @tesouros, @pontos); set @check_p, query_sql("SELECT charkill,pontokill FROM chargdt WHERE char_idd ='"+getcharid(0)+"' LIMIT 1", @charkill, @pontokill); if(@check == 1){ set @tesouros, @tesouros + 1; set @pontos, @pontos + 150; query_sql("UPDATE gdt SET tesouros = '"+@tesouros+"' WHERE guild_id='"+getcharid(2)+"'"); query_sql("UPDATE gdt SET pontos = '"+@pontos+"' WHERE guild_id='"+getcharid(2)+"'"); if(@check_p == 1){ set @charkill, @charkill + 1; set @pontokill, @pontokill + 15; query_sql("UPDATE chargdt SET charkill = '"+@charkill+"' WHERE char_idd = '"+getcharid(0)+"'"); query_sql("UPDATE chargdt SET pontokill = '"+@pontokill+"' WHERE char_idd = '"+getcharid(0)+"'"); } if(@check_p == 0){ query_sql("INSERT INTO chargdt (char_idd,charkill,char_name,pontokill) VALUES ('"+getcharid(0)+"','1','"+strcharinfo(0)+"','15')"); } }else{ query_sql("INSERT INTO gdt (guild_id,tesouros,pontos) VALUES ('"+getcharid(2)+"','1','150')"); if(@check_p == 1){ set @charkill, @charkill + 1; set @pontokill, @pontokill + 10; query_sql("UPDATE chargdt SET charkill = '"+@charkill+"' WHERE char_idd = '"+getcharid(0)+"'"); query_sql("UPDATE chargdt SET pontokill = '"+@pontokill+"' WHERE char_idd = '"+getcharid(0)+"'"); } if(@check_p == 0){ query_sql("INSERT INTO chargdt (char_idd,charkill,char_name,pontokill) VALUES ('"+getcharid(0)+"','1','"+strcharinfo(0)+"','15')"); } } announce "Guerra do Tesouro: " +strcharinfo(0)+ " do Clã ["+ getguildname(getcharid(2)) +"] conquistou um dos baús.",0; end; } prt_are_in.gat,0,0,0 script TesouroEvent::TesouroEvent -1,{ end; OnClock1245: OnClock1445: OnClock1645: OnClock1845: OnClock2045: OnClock2245: OnClock0045: OnClock0245: OnClock0445: OnClock0645: OnClock0845: OnClock1045: announce "Guerra do Tesouro: Os tesouros vão surgir a qualquer momento!",0; end; OnHour13: OnHour15: OnHour17: OnHour19: OnHour21: OnHour23: OnHour01: OnHour03: OnHour05: OnHour07: OnHour09: OnHour11: killmonsterall "prt_are_in.gat"; set $@tesourocount, 1; announce "Guerra do Tesouro: Os tesouros acabaram de surgir!",0; set $@mob, 1324; monster "prt_are_in.gat",178,88,"Baú do Tesouro",$@mob,1,"TesouroKill::OnKilled"; set $@mob, 1324; monster "prt_are_in.gat",126,88,"Baú do Tesouro",$@mob,1,"TesouroKill::OnKilled"; set $@mob, 1324; monster "prt_are_in.gat",74,141,"Baú do Tesouro",$@mob,1,"TesouroKill::OnKilled"; end; } //==== Ranking ================================================ izlude,142,221,4 script Rankings G.d.T 857,{ //==== Nome do NPC ============================================ set @nome$,"[Rankings G.d.T]"; //============================================================= mes @nome$; mes "Olá "+strcharinfo(0)+"."; mes "O que procura?"; next; menu "Ver Rank WOT [Player-Guilda]",WOT_RANK; WOT_RANK: mes @nome$; mes "Qual exatamente?"; next; menu "Rank do meu clã!",MEU_CLA,"Meus pontos de WOT",MEU_WOT,"As 10 melhores Guildas!",TOP_DEZ,"Os 10 melhores Players",RANK_PLAY; MEU_WOT: mes @nome$; query_sql("SELECT charkill,pontokill FROM chargdt WHERE char_idd ='"+getcharid(0)+"'", @charkill, @pontokill); if(@charkill == 0) {mes "Você precisa participar da WOT para conseguir os pontos. Não perca tempo!"; close; } if(@pontokill == 0) { mes "Pelo que vejo você esta sem pontos. Participe da WOT para conquistar mais pontos!"; close; }else{ mes strcharinfo(0)+ ", você tem ^FF0000" +@pontokill+ "^000000 ponto(s) para gastar e você já conquistou " +@charkill+" baús."; mes "Participe da WOT e conquiste mais pontos para você e seu clã! Os pontos você podera trocar por itens e utilitarios dentro do jogo."; close; } MEU_CLA: if(getcharid(2)==0) goto SEM_CLA; query_sql "SELECT tesouros,pontos FROM gdt WHERE guild_id='"+getcharid(2)+"' LIMIT 1", @tesouros, @pontuacao; mes "[Informante rFOX]"; mes strcharinfo(0)+ ", seu clã possui ^FF0000" +@tesouros+ "^000000 tesouro(s), totalizando " +@pontuacao+ " pontos de WOT. Continue batalhando pelo seu clã!"; close; SEM_CLA: mes "[Informante rFOX]"; mes "Você não possui um Clã! Procure alguma guilda e junte-se a ela para se divertir na WOT!"; close; TOP_DEZ: mes "[Informante rFOX]"; mes "Este é nosso Ranking de WOT Guildas [TOP 10]"; next; // consulta query_sql("SELECT guild_id,tesouros FROM gdt ORDER BY tesouros DESC LIMIT 10", @guild_id, @tesouros); dispbottom "Ranking WOT Guildas [TOP 10]"; dispbottom " "; dispbottom "Posição <x> Nome <x> Tesouros Conquistados"; dispbottom " "; for(set @i,0;@i<=9;set @i,@i+1) { dispbottom "["+(@i+1)+"] <x> "+ getguildname(@guild_id[@i]) +" <x> "+@tesouros[@i]+""; } close; RANK_PLAY: mes @nome$; mes "Este é nosso Ranking de WOT Players [TOP 10]"; next; query_sql "SELECT char_idd,charkill,char_name FROM chargdt ORDER BY charkill DESC LIMIT 10",@char_idd,@charkill,@char_name$; dispbottom "Ranking WOT Players [TOP 10]"; dispbottom " "; dispbottom "Posição <x> Nome do Player <x> Baús"; dispbottom " "; for(set @i,0;@i<=9;set @i,@i+1) { dispbottom "["+(@i+1)+"] <x> "+@char_name$[@i]+" <x> "+@charkill[@i]+""; } close; } arena_room.gat mapflag nosave prt_are_in.gat mapflag nosave arena_room.gat mapflag noteleport prt_are_in.gat mapflag noteleport arena_room.gat mapflag nomemo prt_are_in.gat mapflag nomemo prt_are_in mapflag gvg arena_room mapflag gvg Edited April 28, 2020 by Emistry codebox Link to comment Share on other sites More sharing options...
Question
Geralt
can someone do a ranking for this script appears in fluxcp
codebox
Link to comment
Share on other sites
0 answers to this question
Recommended Posts