Jump to content

* Blaze *

Members
  • Content Count

    110
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by * Blaze *


  1.  

     
    -    script    hourly_point_main    -1,{
        
        OnInit:
            .max_hour = 8;
            .duration = 3600;
            .npc_name$ = strnpcinfo(3);
            bindatcmd "hourly", .npc_name$ + "::OnCheck";
            end;
            
        OnClock0000:
            deletearray $@hourly_tick;
            
        OnUpdate:
            .@aid = getcharid(3) & 0xFFFF;
            deltimer .npc_name$+"::OnUpdate";
            $@hourly_ticks[.@aid]++;
            #KAFRAPOINTS += $@hourly_ticks[.@aid] * 10;
            
        OnPCLoginEvent:
            .@aid = getcharid(3) & 0xFFFF;
            if ( $@hourly_ticks[.@aid] < .max_hour ) {
                @timer = gettimetick(2) + .duration;
                addtimer ( .duration * 1000 ), .npc_name$+"::OnUpdate";
            } else {
                dispbottom "[ Hourly Rewards ] You've reached the daily maximum of "+.max_hour+" hours played, well done!",0x9ae2d7;
                end;
            }
            if ( #reward && $@hourly_ticks[.@aid] )
                dispbottom "[ Hourly Rewards ] " + $@hourly_ticks[.@aid] + "/" + .max_hour + " hours played, "+#reward+" point(s)!",0x9ae2d7;
            end;
            
        OnCheck:
            .@min = (@timer - gettimetick(2))/60;
            .@sec = (@timer - gettimetick(2))%60;
            dispbottom "[ Hourly Rewards ] Your next reward will be achieved in " +
                        ((.@min)?            "[ " + .@min + " ] minute"         + ((.@min > 1)?"s":""):"") +
                        ((.@min && .@sec)?    " and ":"") +
                        ((.@sec)?            "[ " + .@sec + " ] second"    + ((.@sec > 1)?"s":""):"") +
                        "!",0x9ae2d7;
            end;            
    }

     

    Allows players who afk and pubbing to gain points except players who use @autotrade or Vending I see this script any one help me??

     


  2. Hina

     

    Hi guys,

     

    Ask ko lang sa mga experienced server owners dito, ano kaya ang pinakamagandang pakulo para mapasikat ang server?

     

    Bakit kaya nasa classic lahat ng player ng 99/70?

     

    Salamat sa mga sasagot.

     


    Also, if meron interested I'm looking for a person na makakapag manage ng server. Like game content, community management, etc.

     

    Hinahanap kasi nila sa isang server classic 99/70 no MVP/Mini boss card / No healer / No warper yan po hanap nila midrate or lowrate style 


  3.  

    What kind of event do you want?

     

    What will be it's goals?

     

     

    Sample of hourly event:

     

    prontera,150,150,4	script	Hide and Seek::hourly_event	1_M_01,{
    	
    	if ( .STATUS ) {
    		mes("[^FFA500Hide and Seek^000000]");
    		mes("Oh! You found me!");
    		mes("Here's your reward!");
    		announce(sprintf("[Hide and Seek] %s found me! Thank you all for participating.", strcharinfo(0)), bc_all);
    		#CASHPOINTS += 75; // Adds 75 Cash Points
    		close2();
    		donpcevent("hourly_event::OnStopEvent");
    	}
    	end();
    
    	OnInit:
    		hideonnpc("hourly_event");
    		.STATUS = 0;
    		end();
    
    	OnMinute00: //Every hour at this minute the event will begins
    		donpcevent("hourly_event::OnStartEvent");
    		end();
    
    	OnStartEvent:
    		initnpctimer();
    
    		setarray(
    			.COORDINATES[0],
    			// x, y (just for prontera)
    			119, 311,
    			105,  74,
    			129, 261,
    			188, 330,
    			241,  76,
    			205, 238,
    			 60, 335,
    			240, 292
    		);
    
    		.@i = rand(getarraysize(.COORDINATES));
    		.@x = .COORDINATES[.@i];
    		.@y = .COORDINATES[.@i + 1];
    
    		movenpc("hourly_event", .@x, .@y);
    
    		.STATUS = 1;
    
    		announce("[Hide and Seek] The event has begun! Try to find me in Prontera!", bc_all);
    
    		hideoffnpc("hourly_event");
    
    		end();
    
    	OnStopEvent:
    		stopnpctimer();
    		.STATUS = 0;
    		hideonnpc("hourly_event");
    		end();
    
    	OnTimer1800000:
    		donpcevent("hourly_event::OnStopEvent");
    		end();
    }
    

    Goal: Find the NPC in Prontera.

    i wanted that like 

    LMS

    Disguise

    Mushroom Hunting

    Dice

    Jumper

    Poring Catcher

    Etc i know its too much hope you had it and the price is 1 Cashpoint XD thank you mate

     

    -    script    AutoPickEvent    -1,{
     
    OnClock2000:
     
    while(1)
    {
      query_sql "select account_id from `char` where online = 1 order by rand() limit 1", .@aid;
      attachrid .@aid;
      if(CheckVending())
      {
       DetachRID();
       continue;
      }
      announce strcharinfo(0) +" won in Lucky Pick Event.", 0;
     #CASHPOINTS += 25; // Adds 25 Cash Points Rewards
      break;
    }
    end;
    }

    Lucky pick event try this Every 2hrs 


  4.  

     

    Do you want to make players pay some fee when talking in #main channel?

     

    I think channel system hasn't any feature like that (have no idea, has it?), so it will need some src edits.

     

    @edit

     

    Oh, I'll make a plugin, It's a very good idea! Thank you @Blaze!

     

    Yes bio to avoid spam #main chat thanks up for this 

     

    Here's the plugin:

     

    Download Link

     

    How to configure it:

    // FIXME: make a better way to add fee on channels (directly on channels.conf)
    const struct {
    	char name[HCS_NAME_LENGTH];
    	int zeny;
    	int nameid;
    	int amount;
    } channels_fee[] = {
    	// -- Add channels with fee like the example: {"name", zeny, item id, item count};
    	{"main"    , 1000, 0  , 0}, // #main - 1000z and no item
    };

    Find "channels_fee[]" declaration and add an element just like de example above.

     

    It's already set to charge 1000 zenys when trying to speak on #main channel, so just change if you want to add or remove a channel.

     

    Hope you enjoy it!

     

    Thanks Bio  ;)  ;)  ;)  ;)


  5. Do you want to make players pay some fee when talking in #main channel?

     

    I think channel system hasn't any feature like that (have no idea, has it?), so it will need some src edits.

     

    @edit

     

    Oh, I'll make a plugin, It's a very good idea! Thank you @Blaze!

     

    Yes bio to avoid spam #main chat thanks up for this 


  6.  

     

     

    setarray .@CoinID[0], 607;
     
    for (.@i = 0; .@i < getarraysize(.@CoinID); ++.@i)
        .@Menu$ += getitemname( .@CoinID[.@i] )+":";
    .@i = select(.@Menu$) - 1;
    if (#KAFRAPOINTS < 2) {
        mes "Sorry but you didnt have 2 Reward Points.";
    } else {
        mes "How many ^339FFFArrow Quiver^000000";
        mes "you want to purchase?";
        mes "Amount : 1 ~ " + (#KAFRAPOINTS / 2);
        input .@Amount, 0, (#KAFRAPOINTS / 2);
        if (.@Amount) {
    		if (!checkweight(Knife, 1) || MaxWeight - Weight < 1000) {
    			mes "- You're over weight or you dont have enough space in your inventory -";
    			close;
    		}
            #KAFRAPOINTS -= .@Amount * 2;
            getitem .@CoinID[.@i], .@Amount;
            mes "Done";
        }
    }
    close;
    

     

    hello i got error line 763tG5cGJ.png

    it seems like you're not using hercules  -_-

     

    Hello im using rAmod sorry old revision

    Fixed thanks


  7.  

    setarray .@CoinID[0], 607;
     
    for (.@i = 0; .@i < getarraysize(.@CoinID); ++.@i)
        .@Menu$ += getitemname( .@CoinID[.@i] )+":";
    .@i = select(.@Menu$) - 1;
    if (#KAFRAPOINTS < 2) {
        mes "Sorry but you didnt have 2 Reward Points.";
    } else {
        mes "How many ^339FFFArrow Quiver^000000";
        mes "you want to purchase?";
        mes "Amount : 1 ~ " + (#KAFRAPOINTS / 2);
        input .@Amount, 0, (#KAFRAPOINTS / 2);
        if (.@Amount) {
    		if (!checkweight(Knife, 1) || MaxWeight - Weight < 1000) {
    			mes "- You're over weight or you dont have enough space in your inventory -";
    			close;
    		}
            #KAFRAPOINTS -= .@Amount * 2;
            getitem .@CoinID[.@i], .@Amount;
            mes "Done";
        }
    }
    close;
    

     

    hello i got error line 763tG5cGJ.png


  8.  
    Any idea how add checkweight here thanks 
     

     

    setarray .@CoinID[0],607;
     
    for( set .@i,0; .@i < getarraysize( .@CoinID ); set .@i,.@i + 1 )
        set .@Menu$,.@Menu$ + getitemname( .@CoinID[.@i] )+":";
    set .@i,( select( .@Menu$ ) - 1 );
    if( #KAFRAPOINTS < 2 ){
        mes "Sorry but you didnt have 2 Reward Points.";
    }else{
        mes "How many ^339FFFArrow Quiver^000000";
        mes "you want to purchase?";
        mes "Amount : 1 ~ "+( #KAFRAPOINTS / 2 );
        input .@Amount,0,( #KAFRAPOINTS / 2 );
        if( .@Amount ){
            set #KAFRAPOINTS,#KAFRAPOINTS - ( .@Amount * 2 );
            getitem .@CoinID[.@i],.@Amount;
            mes "Done";
        }
    }
    close;

     

     


  9.  

    Hercules > Conf / Map / Battle /Player.conf

     

    // The amount of HP a player will respawn with, 0 is default.
    // (Unit is in percentage of total HP, 100 is full heal of HP, 0 is respawn with 1HP total.)
    restart_hp_rate: 0  << Change to 50
     
    // The amount of SP a player will respawn with, 0 is default.
    // (Unit is in percentage of total SP, 100 is full heal of SP, 0 is respawn with 1SP total.)
    restart_sp_rate: 0  << Change to 50

     

     

     

    // The amount of HP a player will respawn with, 0 is default.
    // (Unit is in percentage of total HP, 100 is full heal of HP, 0 is respawn with 1HP total.)
    restart_hp_rate: 50
     
    // The amount of SP a player will respawn with, 0 is default.
    // (Unit is in percentage of total SP, 100 is full heal of SP, 0 is respawn with 1SP total.)
    restart_sp_rate: 50
     

    I did already bug 


  10. I try this script its not working any one help me

    The amount of HP a player will respawn with 50%HP and SP

     

    -    script    Heal    -1,{
    OnPCDieEvent:
    sleep2 1300;
    if(killerrid != getcharid(3)) {
       dispbottom "50% of Max HP/SP will be restored";
       if(HP == 0);
       percentheal 50,50;

    end;


  11. Player.conf setting

    // The amount of HP a player will respawn with, 0 is default.
    // (Unit is in percentage of total HP, 100 is full heal of HP, 0 is respawn with 1HP total.)
    restart_hp_rate: 50

    // The amount of SP a player will respawn with, 0 is default.
    // (Unit is in percentage of total SP, 100 is full heal of SP, 0 is respawn with 1SP total.)
    restart_sp_rate: 50

    How to set On respawn, 50% of Max HP/SP will be restored.??

    When i try to set restart_hp_rate: 50  the formula not working any idea how fix restart_hp_rate & restart_sp_rate? im using old revision thanks

    hlUBRb7.png


  12. Any idea?

    Every Hour you get reward points
    After 8 consecutive hours, rewarding will start all over again
    Rewards without Voting Events Triggered
    First Hour: 10 Rewards Points
    Second Hour: 20 Reward Points
    Third Hour: 30 Reward Points
    Fourth Hour: 40 Reward Points
    Fifth Hour: 50 Reward Points
    Sixth Hour: 60 Reward Points
    7th Hour: 70 Reward Points
    8th Hour: 80 Reward Points

    I thought this is script not working any posible script please help me.. thanks??  B) 

     

    //===== Hourly Points Script =========================================
    //===== By: ==========================================================
    //= GorthexTiger modified by Nibi
    //===== Current Version: =============================================
    //= 1.0
    //===== Compatible With: =============================================
    //= Any eAthena Version
    //===== Description: =================================================
    //= Get Points every successful hours of gameplay, you cannot get
    //= the points even if you miss a second or a minute. A player will
    //= get a very big bonus if they played 3 hours consecutively
    //= or without logging out of the game. If the player is vending
    //= the script will then stop.
    //===== Additional Comments: =========================================
    //= You can modify the script to your liking.
    //= The default points is Kafrapoints change it anyway if you like.
    //= 1.1 = Check Chatting too
    //= 1.2 = 5 Minute Idle Check & @at/@autotrade check.
    //= 1.3 = Corrected the current balance line on 12 Hours Consecutive
    //====================================================================
    -    script    hourlypoints    -1,{
    //--Start of the Script
    OnPCLoginEvent:
        addtimer .timer,"hourlypoints::OnPointGet";
        end;
        
    OnPointGet:
        //while(checkvending() >= 1 || checkchatting() == 1 || checkidle()>=.dlimit) {
            //sleep2 .delay;
            //if(.@mes$=="")
                //dispbottom set(.@mes$,"The hourly points event haulted because you were vending, chatting, or idle.");
        //}
        set #KAFRAPOINTS, #KAFRAPOINTS + .point_amt;
        dispbottom "You received "+.point_amt+" Reward Cash Points by staying ingame for 1 hour";
        dispbottom "Current Balance = "+#KAFRAPOINTS+" Reward Cash Points";
        set @consecutive_hour, @consecutive_hour + 1;

        //Check for 2 hours consecutive
        if(@consecutive_hour == 2) {
            set @consecutive_hour,0;
            set #KAFRAPOINTS, #KAFRAPOINTS + .2cpoint_amt;
            dispbottom "You received "+.2cpoint_amt+" Reward Cash Points due to playing for 2 consecutive hours";
            dispbottom "Current Balance = "+#KAFRAPOINTS+" Reward Cash Points";
        }
        addtimer .timer,"hourlypoints::OnPointGet";
        end;
        
        //Check for 3 hours consecutive
        if(@consecutive_hour == 3) {
            set @consecutive_hour,0;
            set #KAFRAPOINTS, #KAFRAPOINTS + .3cpoint_amt;
            dispbottom "You received "+.3cpoint_amt+" Reward Cash Points due to playing for 3 consecutive hours";
            dispbottom "Current Balance = "+#KAFRAPOINTS+" Reward Cash Points";
        }
        addtimer .timer,"hourlypoints::OnPointGet";
        end;
        
         //Check for 4 hours consecutive
        if(@consecutive_hour == 4) {
            set @consecutive_hour,0;
            set #KAFRAPOINTS, #KAFRAPOINTS + .4cpoint_amt;
            dispbottom "You received "+.4cpoint_amt+" Reward Cash Points due to playing for 4 consecutive hours";
            dispbottom "Current Balance = "+#KAFRAPOINTS+" Reward Cash Points";
        }
        addtimer .timer,"hourlypoints::OnPointGet";
        end;
        
        //Check for 5 hours consecutive
        if(@consecutive_hour == 5) {
            set @consecutive_hour,0;
            set #KAFRAPOINTS, #KAFRAPOINTS + .5cpoint_amt;
            dispbottom "You received "+.5cpoint_amt+" Reward Cash Points due to playing for 5 consecutive hours";
            dispbottom "Current Balance = "+#KAFRAPOINTS+" Reward Cash Points";
        }
        addtimer .timer,"hourlypoints::OnPointGet";
        end;
        
        //Check for 6 hours consecutive
        if(@consecutive_hour == 6) {
            set @consecutive_hour,0;
            set #KAFRAPOINTS, #KAFRAPOINTS + .6cpoint_amt;
            dispbottom "You received "+.6cpoint_amt+" Reward Cash Points due to playing for 6 consecutive hours";
            dispbottom "Current Balance = "+#KAFRAPOINTS+" Reward Cash Points";
        }
        addtimer .timer,"hourlypoints::OnPointGet";
        end;
        
        //Check for 7 hours consecutive
        if(@consecutive_hour == 7) {
            set @consecutive_hour,0;
            set #KAFRAPOINTS, #KAFRAPOINTS + .7cpoint_amt;
            dispbottom "You received "+.7cpoint_amt+" Reward Cash Points due to playing for 7 consecutive hours";
            dispbottom "Current Balance = "+#KAFRAPOINTS+" Reward Cash Points";
        }
        addtimer .timer,"hourlypoints::OnPointGet";
        end;
        
        //Check for 8 hours consecutive
        if(@consecutive_hour == 8) {
            set @consecutive_hour,0;
            set #KAFRAPOINTS, #KAFRAPOINTS + .8cpoint_amt;
            dispbottom "You received "+.8cpoint_amt+" Reward Cash Points due to playing for 8 consecutive hours";
            dispbottom "Current Balance = "+#KAFRAPOINTS+" Reward Cash Points";
        }
        addtimer .timer,"hourlypoints::OnPointGet";
        end;

    OnInit:
        set .timer, 1000*60*60; //Timer in milliseconds.
        set .2cpoint_amt, 20; //Points gained for consecutive time online.
        set .3cpoint_amt, 30; //Points gained for consecutive time online.
        set .4cpoint_amt, 40; //Points gained for consecutive time online.
        set .5cpoint_amt, 50; //Points gained for consecutive time online.
        set .6cpoint_amt, 60; //Points gained for consecutive time online.
        set .7cpoint_amt, 70; //Points gained for consecutive time online.
        set .8cpoint_amt, 80; //Points gained for consecutive time online.    
        set .point_amt, 10; //Normal points gained.
        //set .delay, 1000; //Delay for idle re-check check.
        //set .dlimit, 60*5; //Stop points if afk greater then in seconds.
    }

     

×
×
  • Create New...

Important Information

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