Jump to content

Alexandrite

Members
  • Posts

    54
  • Joined

  • Last visited

Posts posted by Alexandrite

  1. I know that there are 6 Type of Str - Luk Cash

    		sc_start SC_FOOD_STR_CASH, (@runtime*60000), 10;
    		sc_start SC_FOOD_AGI_CASH, (@runtime*60000), 10;
    		sc_start SC_FOOD_VIT_CASH, (@runtime*60000), 10;
    		sc_start SC_FOOD_INT_CASH, (@runtime*60000), 10;
    		sc_start SC_FOOD_DEX_CASH, (@runtime*60000), 10;
    		sc_start SC_FOOD_LUK_CASH, (@runtime*60000), 10;

    But there no CASH version of

    		sc_start SC_HITFOOD, (@runtime*60000),30;
    		sc_start SC_FLEEFOOD, (@runtime*60000),30;
    		sc_start SC_BATKFOOD, (@runtime*60000), 10;
    		sc_start SC_MATKFOOD, (@runtime*60000), 10;
    
    		sc_start SC_INCREASEAGI, (@runtime*60000) ,10;	
    		sc_start SC_BLESSING,(@runtime*60000),10;
    		sc_start SC_MAGNIFICAT,(@runtime*60000),5;		
    		sc_start SC_ANGELUS,(@runtime*60000),10;		
    		sc_start SC_GLORIA,(@runtime*60000),5;		

    I want HITFOOD FLEEFOOD BATKFOOD MATKFOOD INCREASEAGI BLESSING MAGNIFICAT ANGELUS GLORIA

    as a _CASH

     

    how do I add them

    I mean I want 9 later Buff with the effect that it won't lose upon death (CASH Version)

     

    at the moment this 9 buff are lost when u die , I want to add cash version of this 9 effect?

     

    Can anyone suggest me how to do it?

  2. 2 minutes ago, Balfear said:

    if (isloggedin($@account_id)) { // check if player online

    Yeah ! It's work perfectly fine now Thank you

    -	script	DonationUpdate	-1,{
    
    OnTimer1000:
    
    OnInit:
    
    	set $@nb2, query_sql("SELECT COUNT(*) FROM test_donation WHERE status=0", $@count);
    
    	if($@count != 0) {
    		set $@nb,query_sql("SELECT account_id,donate,status FROM test_donation WHERE status='0'",$@account_id,$@donate,$@status);
    
    		if (isloggedin($@account_id)) { // check if player online
    			atcommand "#cash "+rid2name($@account_id)+" "+$@donate;
    			query_sql("UPDATE test_donation SET status='1' WHERE account_id='"+$@account_id+"'");
    		}
    	}
    
    initnpctimer;
    end;
    
    }

     

    Still wonder if it's work on multiple donation? massive donation?

  3. It's also work now just like this

    -	script	DonationUpdate	-1,{
    
    OnInit:
    
    OnTimer1000:
    set $@nb2,query_sql("SELECT COUNT(*) FROM test_donation WHERE status=0",$@count);
    if($@count != 0) {
    	set $@nb,query_sql("SELECT account_id,donate,status FROM test_donation WHERE status='0'",$@account_id,$@donate,$@status);
    	atcommand "#cash "+rid2name($@account_id)+" "+$@donate;
    	query_sql("UPDATE test_donation SET status='1' WHERE account_id='"+$@account_id+"'");
    }
    
    initnpctimer;
    end;
    
    }

    But I'm not sure if this code can handle massive player online?

    Or is it check if player online or not?

  4. 14 minutes ago, Balfear said:

     

    Try use this script:

    
    //===== rAthena Script =======================================
    //= Donate converter
    //===== By: ==================================================
    //= Balfear
    //===== Last Updated: ========================================
    //= 20171207
    //===== Description: ========================================= 
    //= Automatic convert player balance("cp_credits") to cashpoint in game when player login.
    //============================================================
    -	script	balance2cashpoint	-1,{
    OnPCLoginEvent:
    	query_sql("select balance from `cp_credits` WHERE account_id = " + getcharid(3) + "", .@balance);
    	if (.@balance != 0) {
    		query_sql ("UPDATE `cp_credits` SET balance = 0 WHERE account_id = " + getcharid(3) + "");
    		set #CASHPOINTS,(#CASHPOINTS + .@balance);
    		announce "Gain cash point: "+.@balance+"",bc_self, 0xADFFC5, FW_BOLD;
    	}
    	end;
    }

    Read player ballance from `cp_credits` an converting to Cashpoints.

    from what i read, your code only work for new login

     

    I mean for player who actually logined for a long time and not even logout to get cash refresh > <

    I mean, I want #CASHPOINTS alway uptime whenever it get update from outside the game, while player still logined in game

  5. i use script

            // = STR / AGI / VIT / INT / DEX / LUK Food =
            sc_start SC_FOOD_STR_CASH, (@runtime*60000), 10;
            sc_start SC_FOOD_AGI_CASH, (@runtime*60000), 10;
            sc_start SC_FOOD_VIT_CASH, (@runtime*60000), 10;
            sc_start SC_FOOD_INT_CASH, (@runtime*60000), 10;
            sc_start SC_FOOD_DEX_CASH, (@runtime*60000), 10;
            sc_start SC_FOOD_LUK_CASH, (@runtime*60000), 10;

     

    and when i try get killed by monter or test @die my cash food now gone, is it bug?

    also

            sc_start SC_EXPBOOST, (@runtime*60000),300;
            sc_start SC_JEXPBOOST, (@runtime*60000),300;


    also gone too... that xp buff and jexp buff

  6. Can I add "delay circle" on "use item" delay ?

     

    Not sure if I make myself clear I mean example....

    607,5000,SC_REUSE_LIMIT_F    //Yggdrasil_Berry

     

    It's has 5 sec delay right?

     

    I also want to make the Item Icon of Yggdrasill Berry Show "Delay Cycle" too

    Like when you using skill and have a delay you'll see there a grey delay cycle until it non-grey then you can use it again

     

    Is it possible to do so?

    Example : Look at Endure Skill

    ro2.png

  7. Not sure if I make myself clear I mean example....

    607,5000,SC_REUSE_LIMIT_F    //Yggdrasil_Berry

     

    It's has 5 sec delay right?

     

    I also want to make the Item Icon of Yggdrasill Berry Show "Delay Cycle" too

    Like when you using skill and have a delay you'll see there a grey delay cycle until it non-grey then you can use it again

     

    Is it possible to do so?

    Example : Look at Endure Skill

    ro2.png

  8. Not sure if I make myself clear I mean example....

    607,5000,SC_REUSE_LIMIT_F    //Yggdrasil_Berry

     

    It's has 5 sec delay right?

     

    I also want to make the Item Icon of Yggdrasill Berry Show "Delay Cycle" too

    Like when you using skill and have a delay you'll see there a grey delay cycle until it non-grey then you can use it again

     

    Is it possible to do so?

    Example : Look at Endure Skill

    ro2.png

  9. Not sure if I make myself clear I mean example....

    607,5000,SC_REUSE_LIMIT_F    //Yggdrasil_Berry

     

    It's has 5 sec delay right?

     

    I also want to make the Item Icon of Yggdrasill Berry Show "Delay Cycle" too

    Like when you using skill and have a delay you'll see there a grey delay cycle until it non-grey then you can use it again

     

    Is it possible to do so?

    Example : Look at Endure Skill

    ro2.png

×
×
  • Create New...