Jump to content
  • 0

Question

Posted (edited)

i requested this to Emistry but its not working

prontera.gat,146,171,6 script Gigler 402,{
mes "Welcome :";
mes "Would you like to contribute for double drop rate and experience?";
mes "I need [Zeny] to modify the rates and share it to all players here.";
next;
mes "Total Zeny Gained :";
mes "^FF0000"+.TotalZeny+"^000000 Zeny.";
mes "Need "+.TargetZeny+" Zeny. To Activate the modified rates, would you like to share?";
next;
if( select("Donate Zeny:Cancel") == 1 ){
mes "How many will be Donated ?";
input .@Amount,0,Zeny;
mes "Done,.. you have Donated "+.@Amount+" Zeny.";
set Zeny,Zeny - .@Amount;
if( .TotalZeny >= .TargetZeny ){
 set .TotalZeny,0;
 set .Duration,gettimetick(2) + ( 24 * 60 );
 announce "Rates already modified..[x2] drop rate[x2] exp. rate. for 1 day, Please Re-Log to enjoy the double rates.";
}
}
close;
OnInit:
set .TargetZeny,50000000;
set .Rate,2;
end;
OnPCLoginEvent:
if( .Duration > gettimetick(2) ){
sc_start SC_EXPBOOST,( .Duration - gettimetick(2) ),( .Rate * 100 );
sc_start SC_ITEMBOOST,( .Duration - gettimetick(2) ),( .Rate * 100 );
}
end;
}

Edited by GM Takumirai

14 answers to this question

Recommended Posts

Posted

it works, but the problem is when i click the NPC and input the donate it say i already Done Contributing and freeze [the npc stop] and the npc less the zeny, but still 0 contribution..

it works, but the problem is when i click the NPC and input the donate it say i already Done Contributing and freeze [the npc stop] and the npc less the zeny, but still 0 contribution..

Posted

- Thanks Nameless,

- Thanks Emistry

- still got error.. the npc gone and i have this error

[Error]: npc_parsesrcfile: Unknown syntax in file 'npc/rAthena/floating-rate-pay.txt', line '1'. Stopping...
* w1=prontera.gat,146,171,6 script Gigler 402,{
* w2=
* w3=
* w4=

i used your modified script @Emistry

the problem with nameless script is that

- if i input any amount it gives the double rates..

- and still 0 ammount..

Posted

1st line error........:)

all this is the TAB problem

maybe i forget change to TAB when paste to pastebin.....

the 1 nameless post...

he do wrong variable checking

this

if( .TotalZeny <= 0 ){

should be

if( .TotalZeny >= .TargetZeny ){

this

set .TotalZeny,.TotalZeny - .@Amount;

should be

set .TotalZeny,.TotalZeny + .@Amount;

and my script i have updated the Status Buff Time..anyway cant confirm it correctly due to unable to test the script

Posted

@ Emistry - how can i make it.. if the npc is over for 1 day.. also the player status double exp. will also remove.. because my previous npc is when 1 day is over still my char. have the double rates. because im not online for 1 day...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...