Jump to content

Elsa Mist

Members
  • Posts

    387
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Elsa Mist

  1. They are just started for 5 days ago and cant expect everything is 100% working. But yeah, rAthena is moving foward!
  2. Elsa Mist

    idRO NPC

    sbnernya sih bisa tigl copas + edit dikit script WOE yg udah ada, tigl tambahin mapflag utk TE, trus label AgitTE. tp males nyobanya. haha Can you do that Cydh?
  3. Elsa Mist

    2015

    As i see, there is a commit for full support for client 2015. Really? Cant wait...!
  4. - script dualbgclientkicker -1,{ OnPCLoadMapEvent: set .@charmap$, strcharinfo(3); if(!compare(.tmp$,.@charmap$)) end; set .@len, query_sql("select account_id from `char` right join login on login.account_id = `char`.account_id where `char`.online = 1 and login.last_mac = '"+ getcharip() +"'",.@a ); if(.@len-1) { for(set(.@d,0);.@d<.@len;set(.@d,.@d+1)) { getmapxy(.@map$,.@x,.@y,0,rid2name(.@a[.@d])); if(.@charmap$==.@map$&&rid2name(.@a[.@d])!=strcharinfo(0)) { dispbottom "Dual is not allowed in Battleground."; warp "pronter",0,0; } } } end; OnInit: setarray .maps$ , "BG map 1", "BG map 2", "BG map 3", "BG map 4"; // add more mpas if you have more BG maps set .lens , getarraysize(.maps$) ; for(set(.a,0);.a<.lens;set(.a,.a+1)) { setmapflag .maps$[.a], mf_loadevent ; set .tmp$ ,.tmp$+.maps$[.a]+","; } } This script is not mine, but use it 3+ years ago save on my external storage. not tested yet with current git.
  5. Try this, modified with remove changelook and afk timeout. atcommand.c #include "../custom/atcommand.inc" +/*========================================== +* @afk +*------------------------------------------*/ +ACMD_FUNC(afk) { + + nullpo_retr(-1, sd); + + if(sd->bl.m == map_mapname2mapid("prontera")) { + clif_displaymessage(fd, "@afk is not allowed on this map."); + return 0; + } + + if( pc_isdead(sd) ) { + clif_displaymessage(fd, "Cannot @afk if you are dead."); + return -1; + } + + if( map[sd->bl.m].flag.autotrade == battle_config.autotrade_mapflag ) + { + + if(map[sd->bl.m].flag.pvp || map[sd->bl.m].flag.gvg){ + clif_displaymessage(fd, "You may not use the @afk maps PVP or GVG."); + return -1;} + + sd->state.autotrade = 1; + sd->state.monster_ignore = 1; + pc_setsit(sd); + skill_sit(sd,1); + clif_sitting(&sd->bl); + clif_specialeffect(&sd->bl, 234,AREA); + clif_authfail_fd(fd, 15); + } else + clif_displaymessage(fd, "@afk is not allowed on this map."); + return 0; +} + ACMD_DEF(channel), ACMD_DEF(fontcolor), ACMD_DEF(langtype), + ACMD_DEF(afk), #ifdef VIP_ENABLE ACMD_DEF(vip), ACMD_DEF(showrate),
  6. https://github.com/rathena/rathena/blob/master/doc/item_bonus.txt
  7. - script Sample -1,{ OnInit: set .Time,300; setarray .News$[0], "Your Message here.", "Your Message here.", "Your Message here."; // Add more if you like. remember, at the last message you must put ';'! while( 1 ) { announce .News$[ rand( getarraysize( .News$ ) ) ], bc_all, 0xDA70D6; sleep ( .Time * 3000 ); } end; }
  8. search on the forum, you'll find one.
  9. https://rathena.org/board/topic/53424-weemapcache/
  10. rebuild your mapcache with the new prontera files.
  11. setarray .@card[1], getequipcardid ( .slot, 0 ), getequipcardid ( .slot, 1 ), getequipcardid ( .slot, 2 ), getequipcardid ( .slot, 3 ); set .@refine, getequiprefinerycnt ( .slot ); delitem .@e, 1 ; getitem2 getd ( ".a1"+ ( .@w + 1 ) +"_"+ ( .@id + 1 ) ) , 1, 1, .@refine, 0, .@card[1], .@card[2], .@card[3], .@card[4] ; equip getd ( ".a1"+ ( .@w + 1 ) +"_"+ ( .@id + 1 ) ) ; this is for you to auto equip and replace the old armor. You can try it as base.
  12. Edit you data/texture/basic_interface/
  13. There is ton guides if you GOOGLE. https://rathena.org/board/topic/84746-tutorial-how-to-create-ragnarok-offline-2013-client-tutorial/ also with GOOGLE https://rathena.org/board/topic/102572-kro-full-client-last-update-10212015/
  14. Replace your Lub files with this https://github.com/ROClientSide/Translation/tree/master/data/luafiles514/lua%20files
  15. You mean you are now using pre-re but the skill cast is using renewal?
  16. Thanks jezznar...! But i think it is not work since even <ITEMLINK> in script does not work for 20130807.
  17. You can try to figure it out yourself since i already pointed you at the correct files. Good luck!
  18. https://github.com/rathena/FluxCP/blob/master/themes/default/item/index.php remove this line... <label for="equip_loc">Equip Locations:</label> <select name="equip_loc"> <option value="-1"<?php if (($equip_loc=$params->get('equip_loc')) === '-1') echo ' selected="selected"' ?>> Any </option> <?php foreach (Flux::config('EquipLocationCombinations')->toArray() as $locId => $locName): ?> <option value="<?php echo $locId ?>"<?php if (($equip_loc=$params->get('equip_loc')) === strval($locId)) echo ' selected="selected"' ?>> <?php echo htmlspecialchars($locName) ?> </option> <?php endforeach ?> </select> </p> <p> <label for="npc_buy">NPC Buy:</label> <select name="npc_buy_op"> <option value="eq"<?php if (($npc_buy_op=$params->get('npc_buy_op')) == 'eq') echo ' selected="selected"' ?>>is equal to</option> <option value="gt"<?php if ($npc_buy_op == 'gt') echo ' selected="selected"' ?>>is greater than</option> <option value="lt"<?php if ($npc_buy_op == 'lt') echo ' selected="selected"' ?>>is less than</option> </select> <input type="text" name="npc_buy" id="npc_buy" value="<?php echo htmlspecialchars($params->get('npc_buy')) ?>" /> ... <label for="npc_sell">NPC Sell:</label> <select name="npc_sell_op"> <option value="eq"<?php if (($npc_sell_op=$params->get('npc_sell_op')) == 'eq') echo ' selected="selected"' ?>>is equal to</option> <option value="gt"<?php if ($npc_sell_op == 'gt') echo ' selected="selected"' ?>>is greater than</option> <option value="lt"<?php if ($npc_sell_op == 'lt') echo ' selected="selected"' ?>>is less than</option> </select> <input type="text" name="npc_sell" id="npc_sell" value="<?php echo htmlspecialchars($params->get('npc_sell')) ?>" /> ... <label for="weight">Weight:</label> <select name="weight_op"> <option value="eq"<?php if (($weight_op=$params->get('weight_op')) == 'eq') echo ' selected="selected"' ?>>is equal to</option> <option value="gt"<?php if ($weight_op == 'gt') echo ' selected="selected"' ?>>is greater than</option> <option value="lt"<?php if ($weight_op == 'lt') echo ' selected="selected"' ?>>is less than</option> </select> <input type="text" name="weight" id="weight" value="<?php echo htmlspecialchars($params->get('weight')) ?>" /> </p> <p> <label for="range">Range:</label> <select name="range_op"> <option value="eq"<?php if (($range_op=$params->get('range_op')) == 'eq') echo ' selected="selected"' ?>>is equal to</option> <option value="gt"<?php if ($range_op == 'gt') echo ' selected="selected"' ?>>is greater than</option> <option value="lt"<?php if ($range_op == 'lt') echo ' selected="selected"' ?>>is less than</option> </select> <input type="text" name="range" id="range" value="<?php echo htmlspecialchars($params->get('range')) ?>" /> ... <label for="slots">Slots:</label> <select name="slots_op"> <option value="eq"<?php if (($slots_op=$params->get('slots_op')) == 'eq') echo ' selected="selected"' ?>>is equal to</option> <option value="gt"<?php if ($slots_op == 'gt') echo ' selected="selected"' ?>>is greater than</option> <option value="lt"<?php if ($slots_op == 'lt') echo ' selected="selected"' ?>>is less than</option> </select> <input type="text" name="slots" id="slots" value="<?php echo htmlspecialchars($params->get('slots')) ?>" /> ... <label for="defense">Defense:</label> <select name="defense_op"> <option value="eq"<?php if (($defense_op=$params->get('defense_op')) == 'eq') echo ' selected="selected"' ?>>is equal to</option> <option value="gt"<?php if ($defense_op == 'gt') echo ' selected="selected"' ?>>is greater than</option> <option value="lt"<?php if ($defense_op == 'lt') echo ' selected="selected"' ?>>is less than</option> </select> <input type="text" name="defense" id="defense" value="<?php echo htmlspecialchars($params->get('defense')) ?>" /> </p> <p> <label for="attack">Attack:</label> <select name="attack_op"> <option value="eq"<?php if (($attack_op=$params->get('attack_op')) == 'eq') echo ' selected="selected"' ?>>is equal to</option> <option value="gt"<?php if ($attack_op == 'gt') echo ' selected="selected"' ?>>is greater than</option> <option value="lt"<?php if ($attack_op == 'lt') echo ' selected="selected"' ?>>is less than</option> </select> <input type="text" name="attack" id="attack" value="<?php echo htmlspecialchars($params->get('attack')) ?>" /> ... <?php if($server->isRenewal): ?> <label for="matk">MATK:</label> <select name="matk_op"> <option value="eq"<?php if (($matk_op=$params->get('matk_op')) == 'eq') echo ' selected="selected"' ?>>is equal to</option> <option value="gt"<?php if ($matk_op == 'gt') echo ' selected="selected"' ?>>is greater than</option> <option value="lt"<?php if ($matk_op == 'lt') echo ' selected="selected"' ?>>is less than</option> </select> <input type="text" name="matk" id="matk" value="<?php echo htmlspecialchars($params->get('matk')) ?>" /> ... <?php endif ?> <label for="refineable">Refineable:</label> <select name="refineable" id="refineable"> <option value=""<?php if (!($refineable=$params->get('refineable'))) echo ' selected="selected"' ?>>All</option> <option value="yes"<?php if ($refineable == 'yes') echo ' selected="selected"' ?>>Yes</option> <option value="no"<?php if ($refineable == 'no') echo ' selected="selected"' ?>>No</option> </select> ... <label for="for_sale">For Sale:</label> <select name="for_sale" id="for_sale"> <option value=""<?php if (!($for_sale=$params->get('for_sale'))) echo ' selected="selected"' ?>>All</option> <option value="yes"<?php if ($for_sale == 'yes') echo ' selected="selected"' ?>>Yes</option> <option value="no"<?php if ($for_sale == 'no') echo ' selected="selected"' ?>>No</option> </select> ... <label for="custom">Custom:</label> <select name="custom" id="custom"> <option value=""<?php if (!($custom=$params->get('custom'))) echo ' selected="selected"' ?>>All</option> <option value="yes"<?php if ($custom == 'yes') echo ' selected="selected"' ?>>Yes</option> <option value="no"<?php if ($custom == 'no') echo ' selected="selected"' ?>>No</option> </select> ... <input type="submit" value="Search" /> <input type="button" value="Reset" onclick="reload()" /> </p> </form>
  19. Im sorry. Just notice this script using sql query...
  20. prontera,155,188,0 script MVP Rank 910,{ // get database names, for join query_sql "SELECT DATABASE()", .@rag_db$; query_logsql "SELECT DATABASE()", .@log_db$; query_sql "SELECT `name`,COUNT(mvp_id) FROM "+.@log_db$+".mvplog " + "LEFT JOIN "+.@rag_db$+".`char` ON mvplog.kill_char_id=`char`.char_id " + "GROUP BY kill_char_id ORDER BY COUNT(mvp_id) DESC LIMIT 10", .@name$, .@kills; mes "[MVP Rank Top 10]"; for( set .@i,0; .@i<getarraysize(.@name$); set .@i,.@i + 1 ){ mes "Top ^FF0000"+(.@i+1)+"^000000 "+.@name$[.@i]+" with ^FF0000"+.@kills[.@i]+"^000000 MVPs killed."; } close; } Not tested yet, perhaps you can test it and report here if there is any error.
  21. Hi, tbh, can you guys help me? Tell me which client can i use <ITEMLINK> in item description without client crash? Currently, im using client 2013-12-23cRagexe and it crashed my client. Thanks !!!
×
×
  • Create New...