Leaderboard
Popular Content
Showing content with the highest reputation on 11/14/20 in all areas
-
1 point
-
<!-- Messages --> <?php if ($message=$session->getMessage()): ?> <p class="message"><?php echo htmlspecialchars($message) ?></p> <?php endif ?> put these code on header of your template.1 point
-
Search: - Id: 434 Name: SG_HATE Description: Hatred of the Sun Moon and Stars MaxLevel: 3 Type: Magic TargetType: Attack DamageFlags: NoDamage: true Range: 9 Hit: Single HitCount: 1 CastCancel: true CastTime: 1000 Requires: SpCost: 100 Replace: - Id: 434 Name: SG_HATE Description: Hatred of the Sun Moon and Stars MaxLevel: 3 Type: Magic TargetType: Attack DamageFlags: NoDamage: true Flags: TargetEmperium: true Range: 9 Hit: Single HitCount: 1 CastCancel: true CastTime: 1000 Requires: SpCost: 1001 point
-
1 point
-
Someone recently requested this from me so I figure I'd share it with the community. Be very careful about randomly throwing this on your own real server please, and warn your players about it. - script PERMANENTDEATH -1,{ end; OnPCDieEvent: set .@deadplayer,getcharid(0); message strcharinfo(0),"Game Over"; atcommand "@kick "+strcharinfo(0); set .@j, getarraysize( .char_delete$ ); for (.@i = 0; .@i < .@j; .@i++) { query_sql("DELETE FROM `"+ .char_delete$[.@i] +"` WHERE `char_id` = '"+ .@deadplayer +"'"); } query_sql "DELETE FROM `party` WHERE `leader_char` = '"+.@deadplayer+"'"; end; OnInit: setarray .char_delete$[0],"bonus_script","char","cart_inventory","elemental","friends","global_reg_value","guild","guild_member","homunculus","hotkey","inventory","memo","mercenary","mercenary_owner","pet","quest","sc_data","skill","skillcooldown"; end; } I was thinking about adding an NPC that would set a character variable to select if they wanted to opt-in to "Hardcore" mode, and give them benefits for doing so, and having people without the character variable not be affected by it, but that should be easy to add. The only detail is I get a "[Error]: chrif_ack_login_req failed - player not online." but I believe it might be because I have other OnPCDieEvent labels that are attempting to run, didn't have time to confirm if this was the problem or not. But the deletion goes through just fine and the server doesn't seem to be affected by it at all. Enjoy! (Yay my first public release) Edit: Thanks to my friend Tokei for making me use better loops. Here's the version for the upgraded script engine: - script PERMANENTDEATH -1,{ end; OnPCDieEvent: set .@deadplayer,getcharid(0); message strcharinfo(0),"Game Over"; atcommand "@kick "+strcharinfo(0); set .@j, getarraysize( .char_delete$ ); for (.@i = 0; .@i < .@j; .@i++) { query_sql("DELETE FROM `"+ .char_delete$[.@i] +"` WHERE `char_id` = '"+ .@deadplayer +"'"); } query_sql "DELETE FROM `party` WHERE `leader_char` = '"+.@deadplayer+"'"; end; OnInit: setarray .char_delete$[0],"bonus_script","char","cart_inventory","elemental","friends","char_reg_str","char_reg_num","guild","guild_member","homunculus","hotkey","inventory","memo","mercenary","mercenary_owner","pet","quest","sc_data","skill","skillcooldown"; end; } Have not tested this one, but it should work fine :]1 point
-
Version v0.2
5555 downloads
Hello everyone this is my GRF Explorer tool, So why another GRF Tool you ask? well here are the reasons The current ones are old The current ones are un-maintained (not all of them) The current ones are written in C X_X; I want to make my own So what are the features gonna be? GRF Merge Fast GRF Filter and Search Open Multiple GRFs in another tab Transfer files between tabs Live preview of files in the grf ( even sprite , map , acts ) On the spot editing of grf files (no need to extract, edit , put it back, just double click edit and save ) Open sourced Well documented Its C#! So faster development speed( I made the UI 2 hours ago ) It works on Linux , Mac and Windows Notes: It only supports 0x200 GRF version and the DES Decryption algorithm is still broken ( that means its not able to extract some files in data.grf yet , coming soon) Ok let me tell you the truth! This is a part of an effort called "Managed Athena Project or mAthena" the goal is to port the existing eAthena software and the Open-Ragnarok https://gitorious.org/open-ragnarok/ into managed C#/.NET/Mono Code This is just the beginning , I am not expecting to do this by myself. That is the reason I am posting this. To let everyone know about the project. And if your a skilled but totally bored programmer and want to build your own stuff for RO. then this is our chance I honestly dont think it will replace our beloved eAthena project, but this will be an alternative and hopefully a competition for eA in the future Credits: ROInt Project - https://gitorious.or...bs/master/grf.c(GRF Engine) KeyWorld for explaining to me the GRF File structure, DES Encryption and everything else scriptor has forked it on git hub and added the support for the following file formats. (SPR, PAL, TGA) https://github.com/s...45...a8317caba4 @GreenBox for adding "file save support" don't forget to rate it 5 starts if you like it Git Hub: https://github.com/Mercurial/mAthena What are you waiting for? fork it now!Free1 point -
Well i dont know if is working, i hve found it in brAthena, so you can test it: SQL addons: ALTER TABLE `guild` ADD `pontos` INT(11) NOT NULL DEFAULT '0'; BTW is in Portuguese //====Changelog: //====Script criador por Pixel //====Adicionado comandos adicionais por Duka //====Adicionado tabela SQL na tabela guild por Duka //====Adicionado npc Saída e Entrada por Duka //====Adicionado barricadas , Rank por Duka //==================TREASURE WAR============================ prontera,0,0,0 script War of Treasure -1,{ OnClock0950: OnClock1350: OnClock1550: OnClock1750: OnClock1950: OnClock2150: OnClock2350: initnpctimer; announce "[Guerra do Tesouro] Os Báus surgirão em 10 minutos !",bc_all,0xADD8E6; set .morto,0; setcell "arena",140,140,160,160,cell_walkable,1; setcell "arena",140,140,160,160,cell_walkable,1; end; OnTimer15000: announce "[Guerra do Tesouro] Portal para salas dos Baús ao Norte de Izlude ! Corra",bc_all,0xADD8E6; end; OnTimer300000: announce "[Guerra do Tesouro] Apressem-se os Báus aparecerão em 5 minutos !",bc_all,0xADD8E6; disablenpc "exit"; end; OnTimer540000: announce "[Guerra do Tesouro] Em 1 minutos os Báus do Tesouro surgirão , apressem-se !",bc_all,0xADD8E6; stopnpctimer; end; OnClock1000: OnClock1400: OnClock1600: OnClock1800: OnClock2000: OnClock2200: OnClock0000: set .@bau,1324; //id Bau da Wot announce "[Guerra do Tesouro] Os Báus do tesouro apareceram !",bc_all,0xADD8E6; monster "prt_are_in",178,140,"Bau do Tesouro",.@bau,1,"War of Treasure::OnThisMobDeath"; monster "prt_are_in",22,89,"Bau do Tesouro",.@bau,1,"War of Treasure::OnThisMobDeath"; end; OnThisMobDeath: set .morto,.morto+1; announce "[Guerra do Tesouro] O Jogador "+strcharinfo(0)+" do clã "+strcharinfo(2)+" acaba de destruir um dos Baús!",bc_all,0xADD8E6; Query_sql "UPDATE `guild` SET `pontos`=`pontos`+1 WHERE `guild_id`='"+getcharid(2)+"'"; if (.morto == 2) { enablenpc "exit#tw"; } end; } //Muros prt_are_in,105,21,3,3 monster Muro 1905,1,30,60,"War of Treasure::OnInit"; prt_are_in,92,23,5,5 monster Muro 1905,1,30,60,"War of Treasure::OnInit"; prt_are_in,87,12,2,2 monster Muro 1905,1,30,60,"War of Treasure::OnInit"; prt_are_in,107,12,4,4 monster Muro 1905,1,30,60,"War of Treasure::OnInit"; prt_are_in,100,16,6,6 monster Muro 1905,1,30,60,"War of Treasure::OnInit"; prt_are_in,97,19,3,3 monster Muro 1905,1,30,60,"War of Treasure::OnInit"; //Portais //izlude,128,225,0 warp War Of Treasure1 1,1,arena_room,100,25 prt_are_in,55,13,0 warp War Of Treasure#1 1,1,prt_are_in,177,129 prt_are_in,177,127,0 warp War Of Treasure#2 1,1,prt_are_in,57,13 prt_are_in,21,75,0 warp War Of Treasure#3 1,1,prt_are_in,140,13 prt_are_in,142,13,0 warp War Of Treasure#4 1,1,prt_are_in,21,77 arena_room,76,87 warp WarOfTreasure#5 1,1,prt_are_in,97,30 izlude,128,225,1 script entrada 45,2,2,{ OnTouch: if (getcharid(2) > 0 ) { warp "arena_room",100,25; end; } else { mes "^FF0000 Você precisa estar em um Clã para participar desse evento. ^000000"; close; } end; } prt_are_in,97,6,1 script exit#tw 45,2,2,{ OnTouch: warp "izlude",128,113; end; } arena_room mapflag gvg arena_room mapflag nowarp arena_room mapflag nowarpto arena_room mapflag noreturn prt_are_in mapflag gvg prt_are_in mapflag nowarp prt_are_in mapflag nowarpto prt_are_in mapflag noreturn izlude,132,220,4 script Guerra do Tesouro 857,{ mes "^3366FF[Rank Guerra do Tesouro]^000000"; mes "^999999Posição^000000 : ^339966Guild ^000000: ^000080Pontos^000000"; for(set .@i,0; .@i < 10; set .@i,.@i+1){ query_sql "select `name`,`pontos` from `guild` where `pontos` > 0 ORDER BY `pontos` DESC LIMIT 20",.@n$,.@p; mes "^999999"+(.@i+1)+"^000000 : ^339966"+.@n$[.@i]+"^000000 : ^000080"+.@p[.@i]+"^000000"; if(.@p == 0) break; } close; } Hope is useful for you n.n. Regards.1 point