Alexandrite
-
Posts
54 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by Alexandrite
-
-
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?
-
worked fine now, THX! :3
-
-
Testing on 2 Account And It's worked fine! :3
Not able to test more tough > <
-
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?
-
The Code still change status to 1 even if i'm offline too lol... So if i'm not online it won't work > <"
-
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 minutes ago, Balfear said:
Do you have any error?
oh ok it's work now , but i wonder if this code can handle massive player online?
-
It still not working :V
-
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
-
-
Well I didn't have fluxcp install anymore, is it work on manual table if I made?
-
Well I didnt use fluxCP, i use my own web script
-
5 minutes ago, Balfear said:
Why you don`t want use script command or atcommand?
set #CASHPOINTS,#CASHPOINTS + XXX;
or
@cash XXX / #cash charnick XXXBecause I'm planing to make it as a script to php for make it as website donation :3 (Not sure im explaining well)
-
-
I mean if I edit acc_reg_num > #CASHPOINTS while i'm still logining in game
my #CASHPOINTS won't update until I relogin, I want it to refresh without re-login , is it possible? because I saw some server can do this without re login the game
-
I mean... aka example if Player login account to refil cash point in my webserver, I want the code to force logout any in game of that account to prevent bug or cheating, is it possible?
-
Ok i found it now.... it's my stupid lol
OnPCDieEvent:
sc_end sc_all; -
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 -
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
-
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
-
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
-
And how do I diff it?
-
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
How do I add extra SC Cash Food/Buff aka. INCAGI, Blessing?
in Source Support
Posted
it's work but that's not what i want....
I want to add manual SC_*