Jump to content

Capuche

Developer
  • Posts

    2,407
  • Joined

  • Last visited

  • Days Won

    49

Community Answers

  1. Capuche's post in help masters was marked as the answer   
    http://rathena.org/board/topic/76615-showevent-emotions-not-showing/
  2. Capuche's post in Change Baby PVP Room into Novice PVP Room was marked as the answer   
    if ( Class != Job_Novice ) goto L_NotBaby; + change the message in L_NotBaby
  3. Capuche's post in @itemfloor command? was marked as the answer   
    - script item_floor -1,{ OnInit: bindatcmd "itemfloor",strnpcinfo(3)+"::OnAtcommand",99,99; end; OnAtcommand: [email protected]_id = atoi([email protected]_parameters$[0]); [email protected] = ( [email protected] = atoi([email protected]_parameters$[1]) ) ? [email protected] : 1; if ( getiteminfo( [email protected]_id,0 ) == -1 ) { message strcharinfo(0), "non existent item id"; message strcharinfo(0), "usage "+ [email protected]_command$ +" <item_id> {<amount>}"; end; } getmapxy [email protected]$, [email protected], [email protected], 0; freeloop 1; while ( [email protected] < [email protected] ) { do { [email protected] = rand( -200, 200 ); [email protected] = rand( -200, 200 ); } while( !checkcell( [email protected]$,([email protected][email protected]),([email protected][email protected]),cell_chkpass ) ); makeitem [email protected]_id, 1, [email protected]$, ([email protected] + [email protected]), ([email protected] + [email protected]); [email protected]++; } end; } [email protected]_id typo error
  4. Capuche's post in Script itemall excluding vendors was marked as the answer   
  5. Capuche's post in rAthena shop which takes whichever item is available. was marked as the answer   
    prontera,150,180,5 script excahnger 56,{
    if ( countitem(7828) ) {// valor
    getitem 522, countitem(7828);
    delitem 7828, countitem(7828);
    }
    else if ( countitem(7829) ) {// bravery
    getitem 522, countitem(7829);
    delitem 7829, countitem(7829);
    }
    end;
    }

  6. Capuche's post in Optimzing Help was marked as the answer   
    getitemname(getd(".Tier"+ [email protected] +"["+ [email protected] +"]")) or
    getitemname( getelementofarray( getd(".Tier"+ [email protected]), [email protected] ) )
  7. Capuche's post in SQL table resetter script was marked as the answer   
    prontera,150,150,5 script jopijip 75,{
    setarray [email protected]$, "zenylog", "picklog";
    [email protected] = select( "truncate zenylog", "truncate picklog" ) -1;
    query_logsql "truncate table `"+ [email protected]$[[email protected]] +"`";
    mes "you truncate table "+ [email protected]$[[email protected]];
    close;
    }

  8. Capuche's post in Card Seller Questio, was marked as the answer   
    It doesn't work because npcshopdelitem was here to delete the default item in the shop, then npcshopadditem added the cards in the shop. You need to put npcshopdelitem after npcshopadditem
    [email protected] = query_sql( "SELECT `"+ [email protected]_db$ +"`.`id` FROM `"+ [email protected]_db$ +"` RIGHT JOIN `"+ [email protected]_db$ +"` ON `"+ [email protected]_db$ +"`.`id` = `"+ [email protected]_db$ +"`.`dropcardid` WHERE ~(`MODE`) & 32 AND `type` = 6 AND LEFT( `name_japanese`, 1 ) = '"+ .alphabet$[[email protected]] +"' GROUP BY `name_japanese` ORDER BY `name_japanese` LIMIT 128;", [email protected] ); for ( [email protected] = 0; [email protected] < [email protected]; [email protected]++ ) npcshopadditem "card_mob#"+ .alphabet$[[email protected]], [email protected][[email protected]], 1000000; npcshopdelitem "card_mob#"+ .alphabet$[[email protected]],501,4055,4035,4058; }
  9. Capuche's post in How to show the value of a var in a NPC message? was marked as the answer   
    mes "Available Amount : "+ValueConvert( getd(#DONATIONPOINTS) )+"^000000"; You make thing too hard. To display the value of #DONATIONPOINTS, it's.. well..
    mes "Available Amount : "+ #DONATIONPOINTS +"^000000"; Also you miss a step in your script.
    player input amount you check the input ([email protected] == 0) check if the player have the amount of eKoin - you forgot this part etc..
  10. Capuche's post in mob_skill_db.sql to txt was marked as the answer   
    it's in inter_athena.conf not login_athena.conf
     
    it's all or nothing (or ask for a source mod)
  11. Capuche's post in How can I make a tag on a player? was marked as the answer   
    a sample, you attached the var to the character
    train: if ( attach_variable > 0 ) { mes "you already get the items"; close; } mes "That's Great!"; mes "I am giving you these equipments so you can start your adventure!"; getitem 1243,1; getitem 569,100; attach_variable = 1; close; to attach the var to the account, use the prefix # (attach_variable become #attach_variable in our sample)
  12. Capuche's post in Instant rebirth sceipt was marked as the answer   
    - script auto_job -1,{
    OnPCBaseLvUpEvent:
    OnPCJobLvUpEvent:
    if ( BaseLevel != 99 || JobLevel != 50 ) end;
    if ( roclass(eaclass()|EAJL_UPPER) != -1 )
    jobchange Job_Novice_High;
    }

  13. Capuche's post in Forbidden player to hit monster. was marked as the answer   
    make a new group in conf/group.conf and add the perm disable_pvm for this group
    https://github.com/rathena/rathena/blob/master/doc/permissions.txt#L95
  14. Capuche's post in Requesting map effect script was marked as the answer   
    hmm maybe using OnTouch is a bit buggy well, try
    prt_fild01,1,1,0 script #dummy_light 111,{ end; OnAttach: addrid 1; getmapxy [email protected]_npc$,[email protected]_npc,[email protected]_npc,1; getmapxy [email protected]$,[email protected],[email protected],0; if ( distance( [email protected]_npc,[email protected]_npc,[email protected],[email protected] ) < 2 ) unitkill getcharid(3); end; } - script main_bolt -1,{ OnInit: while(1) { do { [email protected] = rand(1,400); [email protected] = rand(1,400); } while( !checkcell( "prt_fild01",[email protected],[email protected],cell_chkpass ) ); movenpc "#dummy_light",[email protected],[email protected]; enablenpc "#dummy_light"; specialeffect EF_LIGHTBOLT,AREA,"#dummy_light";// seems doesn't work with sprite -1 disablenpc "#dummy_light"; if ( getareausers( "prt_fild01",([email protected]),([email protected]),([email protected]+1),([email protected]+1) ) > 0 ) donpcevent "#dummy_light::OnAttach"; sleep 30000; } }
  15. Capuche's post in Job changer was marked as the answer   
    this one is not the last one, there is an issue with this version.
    Whatever, just search jobchange :
    if ([email protected]==4001 && .LastJob) set lastJob, Class; jobchange [email protected]; if ([email protected]==4001 || [email protected]==4023) resetlvl(1); add resetstatus;
    if ([email protected]==4001 && .LastJob) set lastJob, Class; jobchange [email protected]; resetstatus; if ([email protected]==4001 || [email protected]==4023) resetlvl(1);
  16. Capuche's post in requesting for Some Script was marked as the answer   
    try
    prt_fild01,170,322,5 script sdfg 56,{ setarray [email protected], getequipid( EQI_COSTUME_HEAD_LOW ), getequipid( EQI_COSTUME_HEAD_MID ), getequipid( EQI_COSTUME_HEAD_TOP ), getequipid( EQI_COSTUME_GARMENT ); [email protected] = select( ( [email protected][0] > 0 ? "Deslot costume low" : "" ), ( [email protected][1] > 0 ? "Deslot costume mid" : "" ), ( [email protected][2] > 0 ? "Deslot costume top" : "" ), ( [email protected][3] > 0 ? "Deslot costume garment" : "" ) ) -1; getinventorylist; for ( [email protected] = 0; [email protected] < @inventorylist_count; [email protected]++ ) if ( [email protected][[email protected]] == @inventorylist_id[[email protected]] && @inventorylist_equip[[email protected]] > 1000 && @inventorylist_equip[[email protected]] < 9000 ) break; if ( [email protected]_card1[[email protected]] && [email protected]_card1[[email protected]] && [email protected]_card1[[email protected]] && [email protected]_card1[[email protected]] ) { mes "none card inserted"; close; } delequip ([email protected]); getitem2 [email protected][[email protected]],1,1,@inventorylist_refine[[email protected]],@inventorylist_attribute[[email protected]],0,0,0,0; for ( [email protected] = 1; [email protected] <= 4; [email protected]++ ) if ( getd( "@inventorylist_card"+ [email protected] +"["+ [email protected] +"]" ) > 0 ) getitem getd( "@inventorylist_card"+ [email protected] +"["+ [email protected] +"]" ),1; end; }
  17. Capuche's post in Named Weapon was marked as the answer   
    Read getitem2 in docs/script_commands to enchant an item
     
    to check if an item is made by someone, same thing as above
    check if @card4 > 150000, if so it's an item named
    [email protected]_id = @card3 + ( @card4 << 16 ) to retrieve the char id
  18. Capuche's post in command off on map was marked as the answer   
    setarray .Map$[0],"n_pvp","ufc_pvp2","ufc_pvp3","aldeg_cas01","aldeg_cas02","aldeg_cas03","aldeg_cas04","aldeg_cas05","gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05","payg_cas01","payg_cas02","payg_cas03","payg_cas04","payg_cas05","prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05";
    [email protected]$ = implode( .Map$, "|" );
    if( compare( [email protected]$, strcharinfo(3) ) == 0 ){
    message strcharinfo(0),"This Command goes here not !";

  19. Capuche's post in How to disable PINK MOB HP BAR was marked as the answer   
    /monsterhp
  20. Capuche's post in pc_bonus: max number of spells is only 10. What to do? was marked as the answer   
    Try to increase in pc.h
    #define MAX_PC_BONUS 10
  21. Capuche's post in bindatcmd Help was marked as the answer   
    - script Haze2 -1,{
    Onitemrain:
    [email protected] = atoi( [email protected]_parameters$ );
    [email protected] = atoi( [email protected]_parameters$[1] );
    if ( getitemname( [email protected] ) == "null" ) {
    message strcharinfo(0), "Invalid Item ID";
    end;
    }
    if ( [email protected] <= 0 || [email protected] > 100 )
    [email protected] = 100;
    [email protected] = getbattleflag("area_size");
    getmapxy [email protected]$, [email protected], [email protected], 0;
    while ( [email protected] < [email protected] ) {
    do {
    [email protected] = rand( [email protected], [email protected] );
    [email protected] = rand( [email protected], [email protected] );
    } while( !checkcell( [email protected]$,([email protected][email protected]),([email protected][email protected]),cell_chkpass ) );
    makeitem [email protected], 1, [email protected]$, [email protected] + [email protected], [email protected] + dy;
    [email protected]++;
    }
    end;
    OnInit:
    bindatcmd "itemrain", strnpcinfo(0) +"::Onitemrain", 60,100;
    end;
    }

  22. Capuche's post in R> if @autotrade can't get exp and item anymore was marked as the answer   
    there is a conf about autoloot
    https://github.com/rathena/rathena/blob/master/conf/battle/player.conf#L150
  23. Capuche's post in Refiner script that has no safe limit was marked as the answer   
    Then don't put a limit in the refiner
    prontera,150,150,3 script Refiner 56,{ for( [email protected] = 1; [email protected] < 11; [email protected]++ ) if( getequipisequiped([email protected]) && getequipisenableref([email protected]) ) successrefitem( [email protected],( 10- getequiprefinerycnt([email protected]) ) ) }
  24. Capuche's post in Unique Item Signer was marked as the answer   
    Our system take all the slots to signed the item so
    It's not possible
  25. Capuche's post in baby woe loadevent was marked as the answer   
    It doesn't work because of
    if (.Maps$[[email protected]] != strcharinfo(3)) end; - script babywoe -1,{ OnPCLoadMapEvent: if ( compare( "gefg_cas04|aldeg_cas04",strcharinfo(3) ) != 0 && eaclass()&EAJL_BABY == 0 ) {// "gefg_cas04|aldeg_cas04" yours woe maps warp "celerian",33,73;// just a custom map 'Celerian' dispbottom "Only Baby Class is allowed to enter."; } end; } aldeg_cas04 mapflag loadevent gefg_cas04 mapflag loadevent
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.