Jump to content

Capuche

Developer
  • Posts

    2407
  • Joined

  • Last visited

  • Days Won

    52

Everything posted by Capuche

  1. Capuche

    Stalker NPC

    Yes it's possible, you just need to save the index of the menu and the skill level for example in a variable.
  2. you can use insertchar to insert something in the string insertchar(<string>,<char>,<index>) like this function format_number; mes format_number( "100000", "," );// display 100,000 close; function format_number { .@num$ = getarg(0); .@format$ = getarg(1); .@len = getstrlen( .@num$ ); for ( .@i = ( .@len%3 ? .@len%3 : 3 ); .@i < .@len; .@i += 4 ) { .@num$ = insertchar( .@num$, .@format$, .@i ); .@len++; } return .@num$; } I forgot the function in the main repo.. ////////////////////////////////////////////////////////////////////////////////// // Returns a number with commas between every three digits. // -- callfunc "F_InsertComma",<number> // Examples: // callfunc("F_InsertComma",7777777) // returns "7,777,777" ////////////////////////////////////////////////////////////////////////////////// function script F_InsertComma { set .@str$, getarg(0); for (set .@i,getstrlen(.@str$)-3; .@i>0; set .@i,.@i-3) set .@str$, insertchar(.@str$,",",.@i); return .@str$; } it's better D:
  3. Maybe you updated your revision and forgot to recompile?
  4. if you just want to display the total you could store the value in a string variable (it's allowed) query_sql "SELECT SUM(`amount`) FROM `zenylog`", .@sum$; mes .@sum$ +" billion";
  5. http://rathena.org/board/topic/67416-ask-talking-npc/
  6. this? https://github.com/rathena/rathena/blob/master/npc/custom/etc/quest_warper.txt
  7. @Yonko createchatroom works as the following // createchatroom( <char|account|name>, <title>, <password>, {<limit>, <type>} ); the title is the 2nd parameter - script atcmd_example -1,{ OnInit: bindatcmd "question",strnpcinfo(3)+"::OnAtcommand"; end; OnAtcommand: warp "prontera",150,150; if ( .@atcmd_numparameters == 0 ) .@atcmd_parameters$[0] = "Question";// default value createchatroom( getcharid(3), .@atcmd_parameters$[0], "",5 ); sit; end; }
  8. You're welcome! I forgot, the source doesn't create a chat if the player doesn't have basic skill lvl 4 too, is near a npc or is mute
  9. there is a little bug when loading from another map, it could be your issue ie you see -- warp -- loading (create the chat when loading, don't display the chat) -- sit maybe add a sleep2 after the warp warp "prontera",150,150; sleep2 2000; createchatroom( getcharid(3), "Question", "",5 );
  10. Yes this gonna work for all characters. I don't know why there is a decimal in db stat however char.status_point will convert the entrie to integrer. EDIT I think it's because I used an old stat db
  11. If you use prere load [paste=cks0m5eejyj] and execute update `char` set status_point = ( ( select points from `status_points_prere` where `status_points_prere`.`base_level` = `char`.`base_level` ) + IF( `class` < 4001 or `class` > 4029 and `class` < 4109 , 48, 100 ) ), `str` = 1, `agi` = 1, `vit` = 1, `int` = 1, `dex` = 1, `luk` = 1 where online = 0 and account_id not in ( select account_id from login where group_id >= 60 ) If you use renewal stat, load [paste=79h03exenzoq] and execute EDIT : [paste=57mh2zxewaph] update `char` set status_point = ( ( select points from `status_points_re` where `status_points_re`.`base_level` = `char`.`base_level` ) + IF( `class` < 4001 or `class` > 4029 and `class` < 4109 , 48, 100 ) ), `str` = 1, `agi` = 1, `vit` = 1, `int` = 1, `dex` = 1, `luk` = 1 where online = 0 and account_id not in ( select account_id from login where group_id >= 60 )
  12. Use checkweight to make sure the total weight of the items does not exceed the character's carrying capacity and to check if he has a free 'inventory slot' (i.e. the quote)
  13. http://rathena.org/board/topic/76615-showevent-emotions-not-showing/
  14. are you using a quest system? (with custom quest id in db/quest_db.txt)
  15. izlude,100,100,4 script Test 844,5,5,{ percentheal 100,100; end; } heal from 5x5 around the npc
  16. what about questinfo command?
  17. Yours customs items script don't work on player since we dissociated RC_DemiHuman (previously working for player and monster) to RC_Player for player and RC_DemiHuman to monster
  18. you want to set last_week equal this_week and this_week equal 0 for all account right? what about OnSat1437: query_sql "UPDATE `char` SET `last_week` = `this_week`, `this_week` = 0"; end;
  19. I'm not active.. I'm not busy.. I'm on holiday
  20. if ( Class != Job_Novice ) goto L_NotBaby; + change the message in L_NotBaby
×
×
  • Create New...