Good day ^_^ ! Today , Im trying to make an NPC that work just like the normal floating rates .. The only modification is it will require certain amount of donation to function ...
* Players will donate zeny by inputing the amount
* While, the NPC has a target amount of donation like 5,000,000z
* if ($serverdonation >= 5000000) ~> The NPC Will announce that the floating rate will be activated for 24hours (Changing rates every OnMinute0000 )
* And also it has to have a timer that will end after 24hours
Now the thing is .. I dont know how to trigger It every hour while the event is active ... I can only trigger it ONCE by donating 5m Zeny
Here's my unfinished edit :
Quote
//===== rAthena Script =======================================
//= Floating Server Rates
//===== By: ==================================================
//= Lupus
//===== Current Version: =====================================
//= 1.0
//===== Compatible With: =====================================
//= rAthena Project
//===== Description: =========================================
//= It's a simply example of setbattleflag
//= This script will change your server rates from 1x to 1.5x every 6 hours
//= Note: It doesn't affect Card granted drops, MVP & Treasure Chests drops ^_-
//= It also doesn't affect CARD drops, because they are just 0.01%
//===== Additional Comments: =================================
//= You can make incredible scripts with 'setbattleflag'!
//============================================================
//- script FloatingRates -1,{
prontera,123,209,6 script Broker#FloatingRates 84,{
mes "[Broker]";
mes "Our server's current fund is:";
mes "" + callfunc("F_InsertComma",$fr_zeny) + " Zeny";
next;
mes "[Broker]";
mes "Would you like to make a donation?";
next;
switch(select("Yes:No")) {
case 1:
Change_Amount:
mes "[Broker]";
mes "Please input your donation amount.";
next;
input .@fr_zeny;
if (.@fr_zeny < 1){
mes "[Broker]";
mes "Input number greater than 0.";
end;
}
mes "[Broker]";
mes "Please confirm Zeny transfer..";
next;
switch(select("Cancel:Change Amount:Confirm")) {
case 1:
end;
case 2:
set .@fr_zeny,0;
next;
goto Change_Amount;
case 3:
if (Zeny < .@fr_zeny) {
mes "[Broker]";
mes "Sorry, but you don't have enough";
mes "zeny to proceed on payment.";
end;
}
mes "[Broker]";
mes "Zeny has succesfully transfered.";
$fr_zeny += .@fr_zeny;
if ($fr_zeny >= .@fr_targetdonation) {
}
end;
}
case 2:
}
OnMinute00:
//-------------------
set $@brate,rand(500,800);
set $@jrate,rand(500,599);
//set $@drate,rand(100,150);
//Base exp
setbattleflag("base_exp_rate",$@brate);
//Job exp
setbattleflag("job_exp_rate",$@jrate);
set $@brateminus, ($@brate/100) * 100;
set $@jrateminus, ($@jrate/100) * 100;
announce "Current rates are: "+($@brate/100)+"."+($@brate-$@brateminus)+"x "+($@jrate/100)+"."+($@jrate-$@jrateminus)+"x ",bc_all,0xFF6060;
end;
Question
Eross
Good day ^_^ ! Today , Im trying to make an NPC that work just like the normal floating rates .. The only modification is it will require certain amount of donation to function ...
* Players will donate zeny by inputing the amount
* While, the NPC has a target amount of donation like 5,000,000z
* if ($serverdonation >= 5000000) ~> The NPC Will announce that the floating rate will be activated for 24hours (Changing rates every OnMinute0000 )
* And also it has to have a timer that will end after 24hours
Now the thing is .. I dont know how to trigger It every hour while the event is active ... I can only trigger it ONCE by donating 5m Zeny
Here's my unfinished edit :
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.