Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/28/13 in Posts

  1. View File Advanced Stylist Original idea of this script : http://www.eathena.ws/board/index.php?showtopic=148888 Well, this was my favourite stylist script in eAthena ....xD Since i got some time, and lately received a request on editing a stylist npc script. So i come with with the idea to add some minor features or enhance the original script. The script are written from scratch... A very quick and simple intro for the script, Able to nagivate styles easily ( Forward, Backward, Jump ). Able to blacklist certain style for each style group and separately by Gender. Removed save / load features since not really useful. Enable Zeny as payment for the services. Able to enable any of the 3 services. ( Hairstyle, Hair Color, Cloth Color ) Support multiple type of Currency Payment. ( Item , Cash Points , Zeny and etc ) Customizable. ( If any style was blacklisted, a default style will be displayed ) The script are rewrited and clean up some unecessary parts. Credits : AnnieRuru Hudelf Submitter Emistry Submitted 03/26/2013 Category Utilities Video Content Author Emistry  
    1 point
  2. File Name: Race Of The Day File Submitter: Emistry File Submitted: 29 Jul 2012 File Category: Utilities Content Author: Emistry This Script will provide players extra EXP , Item or Zeny to Players if they killed designed monsters for the day. Player will get extra EXP randomly everyday for each race of monster. Player might have chances to get some items from the ROTD when they killed the monsters. Click here to download this file
    1 point
  3. View File GM Online List This Script will display to players a list of GM in this server. Configuration : OnInit: .min_group_id = 1; .afk_second = 300; end; Submitter Emistry Submitted 07/29/2012 Category Utilities Video Content Author Emistry  
    1 point
  4. View File Random News This Script will auto Announce / Broadcast a Messages randomly every interval of times. Configuration : Delay to announce: OnTimer60000: // announce every 60 seconds. Announcement List: OnInit: // Random Message to be Announced setarray .news_list$, "Updated News 1 every X Minute", "Updated News 2 every X Minute", "Updated News 3 every X Minute", "Updated News 4 every X Minute", "Updated News 5 every X Minute", "Updated News 6 every X Minute", "Updated News 7 every X Minute"; Submitter Emistry Submitted 07/29/2012 Category Utilities Video Content Author Emistry  
    1 point
  5. View File Limited Items This script will limit the inventory of player if the player bring exceeded limitation items into the map. For Example : Configuration : // func_Add( <gm_level_to_bypass>, <map_name>, <item1>,<max_amount1>,....,<itemX>,<max_amountX> ); func_Add( 100,"prontera", 501,1,502,2,503,3,504,5 ); func_Add( 100,"payon", 501,1,502,2,503,3,504,5 ); func_Add( 100,"izlude", 501,1,502,2,503,3,504,5 ); func_Add( 100,"prt_fild08", 4001,1,4002,3,4003,0,504,5 ); Positive = Player can only bring Maximum of that amount of items. 0 = Totally Disabled, player cant bring any of it. Submitter Emistry Submitted 07/29/12 Category Utilities Content Author  
    1 point
  6. The rAthena Staff would like to wish everyone happy holidays and a good new year
    1 point
  7. Checkout the comment and the code, well your's will work fine, the only thing Ai4rei mentionned is that you didn't have to open the file at each action cause that is slower. (summerized). You could very well mimic C behaviour and specifically open(file) and close(file) and retain a reference Imagine doing .@i = 0; do { .@line$ = readline("rathena_db.txt".@i); .@i++; } while(.@line$ != ""); This is line parsing each line of your db and reading it, (idk maybe to found an ID then read the rest of the line) So in real that will open and close the file at each loop incrementation wich is quite ugly.. Now the issue about retain the pointer and expect people to close the file is that looking more and more of doing C, sure you won't have thread issues yet. (Like 2 people talking to the NPC it's still 1 execution at the time (that what he was saying)) but they could very well forget to close it and/or try to reopen it with or timer and such so it's an issue. (sorry if I may sound to look down but a good % of people scripting ain't expert of file descriptor issues). I think a ok solution would be to retain the FH in a pointer but to limit is life to a scope {}. //he will auto close the file when he's leaving it (a bit like perl). But to begin I'm sure the think you have done is fine. You may want to add a split function tought In src what Emistry started to quote is : sv_readdb( db_path, "rathena_db.txt",char_delimiter$,min_col_number, max_col_number, max_line_number, &parse_function); parse_function(char* fields[], int columns, int current){ //fields data in each field //current is the line number //colunms is the number of col in that line }
    1 point
  8. your script will end up failed... variable is not saved as string login table dont have char_id column it should be like this query_sql( "SELECT `last_mac` FROM `login` WHERE `account_id` = "+getcharid(3), .@lastmac$ ); then to check if the MAC address is empty or not.. if( .@lastmac$[.@i] == "" ){ // mac address is empty }
    1 point
  9. prontera,156,185,5 script kjhdfkjshf 100,{ end; OnInit: sleep 1; // ..... for some stupid reason, when logging out needs to sleep <.< query_sql "select count(1) from login left join `char` on `char`.account_id = login.account_id where group_id > 0 and online = 1", .@count; waitingroom .@count +"", 0; end; OnPCLoginEvent: OnPCLogoutEvent: if ( getgmlevel() >= 1 ) { delwaitingroom strnpcinfo(0); goto OnInit; } end; }EDIT:hmm ... wait, you are not using query_sql ... let's see .... ok done prontera,156,185,5 script kjhdfkjshf 100,{ end; OnInit: if ( !getusers(1) ) // preserve through @reloadscript $gm_online_count = 0; waitingroom $gm_online_count +"", 0; // debugmes $gm_online_count +" "+ getusers(1); end; OnPCLoginEvent: if ( getgmlevel() >= 1 ) { $gm_online_count++; delwaitingroom; waitingroom $gm_online_count +"", 0; } end; OnPCLogoutEvent: if ( getgmlevel() >= 1 ) { $gm_online_count--; delwaitingroom; waitingroom $gm_online_count +"", 0; } end; }
    1 point
  10. File Name: Coin Exchanger File Submitter: Emistry File Submitted: 15 Feb 2013 File Category: Utilities Content Author: Emistry A NPC that enable players to change Zeny & Coins easily... Available Exchange Options : Zeny to CoinsCoins to Zeny Configurations : // server max zeny.max_zeny = 1000000000;// coin list + name + valuesetarray .coin_name$,"Silver","Gold","Mithril";setarray .coin_id,675,671,674;setarray .value,10000,1000000,100000000; Credits : @AnnieRuru Click here to download this file
    1 point
×
×
  • Create New...