Jump to content

HD Scripts

Members
  • Posts

    183
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by HD Scripts

  1. put this script on your item ID 30100>

    callfunc "ItemBaseLevel";
    



    and add this script on server:

    function	script	ItemBaseLevel	{
    	// lvl 10-69 swordsman
    if(BaseLevel >= 10 && BaseLevel <= 69){
        if(BaseJob == Job_Swordman) end;
        jobchange Job_Swordman;
        dispbottom "Congrats! You become a Swordsman!";
        end;
    }
        
    // lvl 70-99 knight
    if(BaseLevel >= 70 && BaseLevel <= 99){
        if(BaseJob == Job_Knight) end;
        jobchange Job_Knight;
        dispbottom "Congrats! You become a Knight!";
        end;
    }
    // lvl 100–299 Lord Knight
    if(BaseLevel >= 100 && BaseLevel <= 299){
        if(BaseJob == Job_Lord_Knight) end;
        jobchange Job_Lord_Knight;
        dispbottom "Congrats! You become a Lord Knight!";
        end;
    }
        
    // lvl 300-999 rune knight
    if(BaseLevel >= 300 && BaseLevel <= 999){
        if(BaseJob == Job_Rune_Knight) end;
        jobchange Job_Rune_Knight;
        dispbottom "Congrats! You become a Rune Knight!";
        end;
        }
    }
    
  2. change to:
     

    25439,Protector,Protector,4,0,,0,,0,,0,0xFFFFFFFF,63,2,8192,,1,0,1004,{ callfunc "Func_godtier",0; },{},{}

    Script:

    -	script	Func_godtier	-1,{
    
    // Makes fuction SQL
    query_sql( "SELECT `points`, 1 + (SELECT COUNT(1) FROM `top_ranking` t1 WHERE t1.`points` > t2.`points`) FROM `top_ranking` t2 WHERE `char_id` = "+ getcharid(0), .@points, .@top);
    
    if (.@top == 1 && godtier >= 6) {
    	bonus bAtkRate,10;
    	 bonus bMatkRate,10;
    	  bonus bMdefRate,10;
    	   bonus bDefRate,10;
    	    bonus bMaxHPrate,10;
    	     bonus bMaxSPrate,10;
    	      bonus bAllStats,10;
    
    } else if (.@top == 1 && godtier >= 5) {
     bonus bAtkRate,10;
      bonus bMatkRate,10;
       bonus bMdefRate,10;
        bonus bDefRate,10;
         bonus bMaxHPrate,10;
          bonus bMaxSPrate,10;
    
    } else if (.@top == 1 && godtier == 4) {
     bonus bAtkRate,10;
      bonus bMatkRate,10;
       bonus bMdefRate,10;
        bonus bDefRate,10;
    
    } else if (.@top == 1 && godtier == 3) {
     bonus bAtkRate,10;
      bonus bMatkRate,10;
    
    } else if ( godtier == 6 ) {
     bonus bAtkRate,3;
      bonus bMatkRate,3;
       bonus bMdefRate,3;
        bonus bDefRate,3;
         bonus bMaxHPrate,3;
          bonus bMaxSPrate,3;
           bonus bAllStats,5;
    
     } else if ( godtier == 5 ) {
      bonus bAtkRate,5;
       bonus bMatkRate,5;
        bonus bMdefRate,5;
         bonus bDefRate,5;
          bonus bMaxHPrate,5;
           bonus bMaxSPrate,5;
    
    } else if ( godtier == 4 ) {
     bonus bAtkRate,5;
      bonus bMatkRate,5;
       bonus bMdefRate,5;
        bonus bDefRate,5;
    
       } else if ( godtier == 3 ) {
         bonus bAtkRate,5;
          bonus bMatkRate,5;
         }
    }


  3. just a simple code, you can fix it


     
    //===== rAthena Script ======================================= 
    //= Find the Mushroom
    //===== By: ================================================== 
    //= Mysterious
    //===== Current Version: ===================================== 
    //= 3.6a
    //===== Compatible With: ===================================== 
    //= rAthena Project
    //===== Description: ========================================= 
    //= Find the Mushroom - random amount of Mushrooms spawns in random maps.
    //= Players need to find these mushrooms and kill them to gain prizes!
    //===== Additional Comments: =================================
    //= 3.0 Fully Functional with Rewritten script. [Mysterious]
    //= 3.6a Slightly edited. [Euphy]
    //============================================================ 
    
    prontera,142,228,6	script	Find the Mushroom	1084,{
    
        mes "[Find The Mushroom]";
        if (.status == 1) {
            .@count = mobcount( .event_map$, strnpcinfo(0) + "::OnMobKilled" );
            if (.@count > 0) {
                mes "There are " + .@count + " Mushrooms left in " + .event_map$ + "!";
                mes "Find and kill the mushrooms to gain Cash Points!";
                close;
            }
            .event_map$ = "";
            .status = 0;
            mes "All the mushrooms are killed?";
        }
        mes "There is no event at the moment!";
        if (.status || getgmlevel() < .GM) close;
        mes "Start the event?";
        next;
        if (select("- No:- Yes") == 1) close;
        donpcevent strnpcinfo(0) + "::OnMinute10";
        mes "[ Find The Mushroom ]";
        mes "Event started!";
        close;
    
    OnInit:
        .amount = 10;    // Reward CASHPOINTS amount
        .GM = 60;        // GM level required to access NPC
        setarray .maps_list$[0],"izlude","geffen","morocc","prontera"; // Possible maps
        end;
    
    OnMinute10:    // Start time (every hour)
        if (.status) end;
        .status = 1;
        .@spawn = rand(1,10);    // How many Mushrooms should spawn?
        .event_map$ = .maps_list$[ rand(getarraysize(.maps_list$)) ];
        .@label$ = strnpcinfo(0) + "::OnMobKilled";
        killmonster .event_map$, .@label$;
        monster .event_map$,0,0,"Please don't kill me!",1084,.@spawn, .@label$;
        announce "Find the Mushroom : Total of " + .@spawn + " Mushrooms have been spawned in " + .event_map$ + "!",0;
        sleep 2500;
        announce "Find the Mushroom : Every Mushroom you kill will give you "+.amount+" Cashpoints!",0;
        end;
    
    OnMobKilled:
        if (playerattached() == 0)
            end;
        #CASHPOINTS+ = .amount;
        .@spawn = mobcount( .event_map$, strnpcinfo(0) + "::OnMobKilled" );
        if (.@spawn > 0)
            announce "[ " + strcharinfo(0) + " ] has killed a Mushroom. There are now " + .@spawn + " Mushroom(s) left.",bc_map;
        else {
            announce "The Find the Mushroom Event has ended. All the Mushrooms have been killed.",0;
            .status = 0;
            .event_map$ = "";
        }
        end;
    }


  4. .amount = 10;    // Reward CASHPOINTS amount

    and change

    announce "Find the Mushroom : Every Mushroom you kill will give you " + getitemname(.prize) + "!",0;

    to

     announce "Find the Mushroom : Every Mushroom you kill will give you " +.amount+ " Cashpoints!",0;

    and change

    getitem .prize, .amount;

    to

    #CASHPOINTS+ = .amount;

     

  5. Troque isso
     

    15 minutes ago, -Near- said:

    switch(select("200 Po├º├úo Branca Compacta:30 Poção Azul:3 Garrafas de Veneno:5 Bombas ├ücidas:30 Frascos de Revestimento:30 Teias de Aranha:30 Frascos
    *   18 : de Planta Carnivora:2 Tonico de Hwergelmir:2 Nove Caudas Cozidas:2 Lingua no Vapor:2 Coquetel Sopro do Dragrão:2 Cozido Imortal:2 Escorpiões do Deserto no Vapor:3
        19 : Poções do Vento") }{

    Por isso:
     

    switch(select("200 Poção Branca Compacta:30 Poção Azul:3 Garrafas de Veneno:5 Bombas Ácidas:30 Frascos de Revestimento:30 Teias de Aranha:30 Frascos de Planta Carnívora:2 Tônico de Hwergelmir:2 Nove Caudas Cozidas:2 Língua no Vapor:2 Coquetel Sopro do Dragão:2 Cozido Imortal:2 Escorpiões do Deserto no Vapor:3 Poções do Vento")) {

     

  6. hi '-'

    i have an *issue* (?!)
    i tryed to use command "message", but this not working, or my function is not correct.

    print:

     


    erncrn.jpg

     


    my script:


     
    morocc,163,94,5	script	Test Message	91,{
    
    	message strcharinfo(0),"Test message, dispbottom works :D";
    	end;
    }


     

×
×
  • Create New...