Jump to content

buda

Members
  • Posts

    36
  • Joined

  • Last visited

Posts posted by buda

  1. Hello master scripters,

    is it possible to DISABLE this script for the players that are "overweight" ?

    Merry xmas master scripters!

    
    - script YggPsdsssdssddrize -1,{
    OnMinute00:
    OnMinute10:
    OnMinute20:
    OnMinute30:
    OnMinute40:
    OnMinute50:
    set .@num, query_sql("SELECT `account_id` FROM `char` WHERE `online` = '1'",.@j);
    for(set .@i,0; .@i<.@num; set .@i,.@i+1) {
    attachrid(.@j[.@i]);
    if (!checkvending() && !checkchatting())
    getitem 607,1;
    dispbottom "You received a f*king ygg";
    detachrid;
    }
    end;
    }

  2. Masters, i need your help, can we make this happen?

    The script for now is not working.... i need your powerful scripting energy!!!!

    thanks master scripters!!! Advance MErry Xmas!

    - script 15mins -1,{

    OnMinute15:

    OnMinute30:

    OnMinute45:

    OnMinute00:

    if ( checkvending() != 2 ) { // Skip autotrade

    getitem 607, 1;

    dispbottom "You received 1 Yggdrasil Berry by staying for 15 minutes.";

    }

    }

    Credit to: Master Keyworld

  3. Guys, can we convert the hourly points into ygg every 10 minutes?

    This is for Active Players and Idle Players

    But NOT for Vending players

    Merry Christmas Master Scripters!

    //===== Hourly Points Script =========================================
    //===== By: ==========================================================
    //= nostafu
    //===== Current Version: =============================================
    //= 1.3
    //===== 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 12 hours consecutively
    //= or without logging out of the game. If the player is vending
    //= the script will then stop.
    //====================================================================
    - script Hourly Points -1,{
    
    //--Start of the Script
    OnPCLoginEvent:
    attachnpctimer ""+strcharinfo(0)+"";
    initnpctimer;
    end;
    
    OnTimer30000:
    //Check if Vending (normal or @at)
    if(checkvending() >= 1 || checkchatting() == 1) {
    dispbottom "Your Hourly Points have stopped because you were vending / chatting. Please relog if you wish to start again.";
    stopnpctimer;
    end;
    }
    //Check if Idle
    getmapxy( .@map$, .@x, .@y, 0 );
    if(@map$ == .@map$ && @x == .@x && @y == .@y) {
    set @afk, @afk + 1;
    }
    //If move timer resets
    else {
    set @afk, 0;
    }
    set @map$, .@map$; set @x, .@x; set @y, .@y;
    //Idle Check for 30 Minutes
    if(@afk == 30) {
    dispbottom "Your Hourly Points have stopped because you were idle for 30 minutes. Please relog if you wish to start again.";
    stopnpctimer;
    end;
    }
    end;
    
    OnTimer60000:
    set #minute, #minute + 1;
    //Check for 1 Minute
    if(#minute == 60){
    set #minute,0;
    set .@point_amt, 10; //Points to get every hour (default: 10)
    set #KAFRAPOINTS, #KAFRAPOINTS + .@point_amt;
    dispbottom "You received "+.@point_amt+" Hourly Points by staying in Rychi Infinity Ragnarok Online Server for 1 hour.";
    dispbottom "Current Balance = "+#KAFRAPOINTS+" Hourly Points";
    set @consecutive_hour, @consecutive_hour + 1;
    }
    //Check for 12 hours consecutive
    if(@consecutive_hour == 12) {
    set @consecutive_hour,0;
    set .@cpoint_amt, 50; //Points to get for 12 Consecutive hours (default: 50)
    set #KAFRAPOINTS, #KAFRAPOINTS + .@cpoint_amt;
    dispbottom "You received "+.@cpoint_amt+" Hourly Points in playing for 12 consecutive hours.";
    dispbottom "Current Balance = "+#KAFRAPOINTS+" Hourly Points";
    }
    stopnpctimer;
    initnpctimer;
    end;
    
    }
    //--End of the Script
    
  4. Thanks Master Anie and Master Ocean... Please come at my house on December 25! i will treat you both! hahaahahah

    thanks for your efforts, i hope we can fix the final script, cuz it is not working

    I have a thought, can we convert the hourly points to ygg berry every 15 minutes?

    Includes: online players and AFK player

    Excludes: Vending players

    //===== Hourly Points Script =========================================
    //===== By: ==========================================================
    //= nostafu
    //===== Current Version: =============================================
    //= 1.3
    //===== 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 12 hours consecutively
    //= or without logging out of the game. If the player is vending
    //= the script will then stop.
    //====================================================================
    - script Hourly Points -1,{
    
    //--Start of the Script
    OnPCLoginEvent:
    attachnpctimer ""+strcharinfo(0)+"";
    initnpctimer;
    end;
    
    OnTimer30000:
    //Check if Vending (normal or @at)
    if(checkvending() >= 1 || checkchatting() == 1) {
    dispbottom "Your Hourly Points have stopped because you were vending / chatting. Please relog if you wish to start again.";
    stopnpctimer;
    end;
    }
    //Check if Idle
    getmapxy( .@map$, .@x, .@y, 0 );
    if(@map$ == .@map$ && @x == .@x && @y == .@y) {
    set @afk, @afk + 1;
    }
    //If move timer resets
    else {
    set @afk, 0;
    }
    set @map$, .@map$; set @x, .@x; set @y, .@y;
    //Idle Check for 30 Minutes
    if(@afk == 30) {
    dispbottom "Your Hourly Points have stopped because you were idle for 30 minutes. Please relog if you wish to start again.";
    stopnpctimer;
    end;
    }
    end;
    
    OnTimer60000:
    set #minute, #minute + 1;
    //Check for 1 Minute
    if(#minute == 60){
    set #minute,0;
    set .@point_amt, 10; //Points to get every hour (default: 10)
    set #KAFRAPOINTS, #KAFRAPOINTS + .@point_amt;
    dispbottom "You received "+.@point_amt+" Hourly Points by staying in Rychi Infinity Ragnarok Online Server for 1 hour.";
    dispbottom "Current Balance = "+#KAFRAPOINTS+" Hourly Points";
    set @consecutive_hour, @consecutive_hour + 1;
    }
    //Check for 12 hours consecutive
    if(@consecutive_hour == 12) {
    set @consecutive_hour,0;
    set .@cpoint_amt, 50; //Points to get for 12 Consecutive hours (default: 50)
    set #KAFRAPOINTS, #KAFRAPOINTS + .@cpoint_amt;
    dispbottom "You received "+.@cpoint_amt+" Hourly Points in playing for 12 consecutive hours.";
    dispbottom "Current Balance = "+#KAFRAPOINTS+" Hourly Points";
    }
    stopnpctimer;
    initnpctimer;
    end;
    
    }
    //--End of the Script

  5. hmmmmm,, so this will be our final script master scripters?

    - script itemall -1,{

    OnMinute00:

    OnMinute15:

    OnMinute30:

    OnMinute45:

    freeloop 1;

    while ( getusers(1) > .@count ) {

    .@nb = query_sql("select account_id, name from `char` where online = 1 limit 128 offset "+ .@count, .@aid,.@name$ );

    .@i = 0;

    while ( .@i < .@nb ) {

    if ( !checkvending( .@name$[.@i] ) && !checkchatting( .@name$[.@i] )

    getitem "Yggdrasilberry_Box", 1,.@aid[.@i];

    .@i++;

    }

    .@count += 128;

    }

    freeloop 0;

    end;

    }

  6. guys, the script below is a lucky pick for every 15 mins for only one person,

    but how can i edit it into all the online players?

    thanks master scripters!!!

    - script AutoFunEvent -1,{
    
    
    OnMinute15:
    OnMinute30:
    OnMinute45:
    OnMinute00:
    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) +" has won the Rychi Lucky Pick Event!!!", 0;
     getitem 607,1
     break;
    }
    end;
    }


    dear master scripters,

    how can i have an auto reward to all the players online every 5 minutes except for the vendors?

  7. Thanks Master scripters for granting 100% of my requests!!!!

    now i would like to request this:

    1/3 chance to multiply a selected item from their inventory to 3.

    ________________________________________________

    Details:

    1. the player should know the ID for the item that he/she wants to bet that is located in their inventory, therefore, auto @itemlist when clicking the npc.

    2. They will input the ID... (the bet)..and its triple or nothing time!!!

    3. Advance merry xmas to all of you master scripters!!! thanks and goodluck!

  8. Master Euphy's Script is Super Duper Correct and it meets 101% of my expectation....

    The only problem i encounter is the 10M limit.

    huhuhuhu,,

    i hope we can bypass it

    So master scripters, how can we exceed it into 10M ?

    you mean the input amount ?

    trunk/conf/script_athena.conf

    // Default value of the 'max' argument of the script command 'input'.
    // When the 'max' argument isn't provided, this value is used instead.
    // Defaults to INT_MAX.
    //input_max_value: 2147483647
    input_max_value: 10000000
    


    EDIT :

    btw...

    Condition: 20% chance to multiply the player's bet by 5 times.

    it should be something similar to euphy post above...or

    zeny = zeny + (( !rand(5) )? ( .@i * 5 ):.@i );
    

    input_max_value: 10000000

    so, the 10m came from this one...

    of i change it to

    input_max_value: 100000000 (100m)

    this will be ok?

    input_max_value: 100000000 (100m)

    done! case closed! thanks master scripters!!!!!

  9. So master scripters, how can we exceed it into 10M ?

    I hope we can do it!

    The future is within us!

    WTF !!!!

    I also got tricked by the definition from the request !

    http://en.wikipedia....betting_system)

    The strategy had the gambler double his bet after every loss, so that the first win would recover all previous losses plus win a profit equal to the original stake. The martingale strategy has been applied to roulette as well, as the probability of hitting either red or black is close to 50%.

    https://rathena.svn....c/blackjack.txt

    L_Play:
    mes "[Dealer]";
    mes "Please place your bets...";
    next;
    menu "2z",M_1a, "10z",M_1b, "20z",M_1c, "100z",M_1d, "Too rich for my blood....",M_End;
    
    M_1a:
    if(Zeny < 2) goto sL_NotEnuf;
    set @bet, 2;
    goto L_Cont0;
    M_1b:
    if(Zeny < 10) goto sL_NotEnuf;
    set @bet, 10;
    goto L_Cont0;
    M_1c:
    if(Zeny < 20) goto sL_NotEnuf;
    set @bet, 20;
    goto L_Cont0;
    M_1d:
    if(Zeny < 100) goto sL_NotEnuf;
    set @bet, 100;
    goto L_Cont0;
    .....
    sL_Win:
    mes "[Dealer]";
    mes "Congratulations, you've won!";
    next;
    set Zeny, Zeny + @bet;
    goto L_Play;
    sL_Lose:
    mes "[Dealer]";
    mes "I'm sorry but you've lost.";
    set Zeny, Zeny - @bet;
    next;
    goto L_Play;

    rep_up.png up your post <3

    prontera,158,177,5	script	kdjfhkshf2	100,{
    if ( !zeny ) {
    	mes "you don't have any zeny left to bet <3";
    	close;
    }
    input .@i, 1, zeny;
    mes "are you sure you want to bet "+ .@i +" zeny ?";
    next;
    if ( select ( "yes", "no" ) == 2 ) close;
    if ( .@i *5 + zeny > 1000000000 ) { // prevent zeny lost
    	mes "you can't bet more than the amount of zeny you can carry";
    	close;
    }
    if ( zeny < .@i )
    	mes "don't cheat me by using @mail";
    else if ( !rand(1) ) {
    	mes "you win";
    	zeny = zeny + ( .@i *5 );
    }
    else {
    	mes "you lose";
    	zeny -= .@i;
    }
    close;
    }

    EDIT:

    suddenly feel like making Roulette script ... can be fun XD

    but nah ... no time atm, better make battleground script

    EDIT2:

    totally forgotten about @mail again ... damn

    http://www.goodbonus...heory-myth.html

    http://wizardofodds....etting-systems/

    ... fun article

    can learn something new even with simple script

    My nose is bleeding while reading this

×
×
  • Create New...