Jump to content

Emistry

Forum Moderator
  • Posts

    10018
  • Joined

  • Days Won

    408

Everything posted by Emistry

  1. query_sql( "SELECT `name`,`zeny` FROM `char` WHERE `account_id` NOT IN ( SELECT `account_id` FROM `login` WHERE `group_id` > 0 ) ORDER BY `zeny` DESC LIMIT 5",.@char$,.@zeny ); .@size = getarraysize( .@char$ ); for( .@i = 0; .@i < .@size; .@i++ ) mes .@char$[.@i]+" - "+.@zeny[.@i]; close; something like this... didnt test.
  2. O__O Annie back alive. ....

    1. AnnieRuru

      AnnieRuru

      come play a round of dota with me

      *devilish smile*

    2. Emistry

      Emistry

      didnt have DotA in my laptop. O__O

      *sry* >.<

  3. payout are handle by admin maybe you can try pm the admin about your payout request ?
  4. if not mistaken, just change your langtype in clientinfo.xml it should be able to fix your problem
  5. change .@s = select( "Red", "Green", "Blue", "Yellow" ) -1; .@r = rand(4); .@loop = .@r + 4*5 +1; // 4 choices * 10 loops for ( .@i = 0; .@i < .@loop; .@i++ ) { to set .@s,select( "Red", "Green", "Blue", "Yellow" ) -1; set .@r,rand(4); set .@loop,( .@r + 4*5 +1 ); // 4 choices * 10 loops for ( set .@i,0; .@i < .@loop; set .@i,.@i + 1 ) { illust folder
  6. content in post#3 already illustrate how it can be written. exactly the same thing that you want. and same as i mentioned in post#3 your last exmple, still same, problem when writing the menu part =='' select doesnt support 2 parameter
  7. mes "Select Element"; .@i = select( implode( .element_name$,":" ) ) - 1; callfunc( "getBonusLevel",.element_value[.@i] ); close; OnInit: setarray .element_name$,"Fire","Water","Earth","Wind"; setarray .element_value,100,200,300,400; end; I have no idea what you actually want. your first method, almost correct except the missing index to link to your array.. your second method, wrong at menu selection.
  8. to be honest .... I rarely visit the main page of rAthena, probably once in a week or even longer .. O__O I alway using View New Content , even the bookmark that I made in my browser also using the same link. EDIT: ** Merged both topic
  9. for( set .@i,0; .@i < .item_list_size; set .@i,.@i + 1 ){ change to for( set .@i,0; .@i < .item_list_size; set .@i,.@i + 2 ){
  10. enter the IP that you want to ban into the ipbanlist sql table.
  11. loop .. variable .... http://en.wikipedia.org/wiki/For_loop
  12. something like this. prontera,155,181,5 script Sample#array 757,{ // loop + check item for( .@i = 0; .@i < .item_size; .@i++ ) if( countitem( .item[.@i] ) < .amount[.@i] ){ mes "You need "+.amount[.@i]+"x "+getitemname( .item[.@i] ); close; } // loop again to delete item for( .@i = 0; .@i < .item_size; .@i++ ) delitem .item[.@i],.amount[.@i]; // done, get item getitem 607; mes "Done."; close; OnInit: // initialize items setarray .item,501,502,503,504,505; setarray .amount,1,2,3,4,5; .item_size = getarraysize( .item ); end; }
  13. Emistry

    Query_SQL

    query( "SELECT `my_column` FROM `char` WHERE `name` = '"+escape_sql( strcharinfo(0) )+"'",.@my_column_data$ );
  14. yes, each kill for each players..
  15. @Maki welcome to the party ..O__O
  16. thx.... feel like having another birthday again xD
  17. killedrid // OnNPCKillEvent return mob id retrieve specific mob id ? you already have the answer.. O__O
  18. if( .@aid[.@i] != .@self_id ){ change to if( .@aid[.@i] != .@self_id && !checkvending( .@name$[.@i] ){
  19. npc folder > custom > quest > quest_shop
  20. if( Job == Job_Whitesmith ) // only whitesmith if( BaseClass == Job_Merchant ) // all merchant classes, include blacksmith/whitesmith/creator
  21. - script Sample#bgmannounce -1,{ OnClock0600: OnClock1320: OnClock1635: OnClock1930: OnClock2035: announce "Announced + BGM",bc_all; playbgm "bgm_name"; end; }
  22. certain class = Class if( Class == Job_WhiteSmith ){ bonus }
×
×
  • Create New...