I'm trying to make an NPC which players can donate zeny to, and the zeny count is for every player - as in when one player donates, it updates a tally for everyone else (stored in NPC).
If I use .server_donate (as shown in example below), will it disappear when I restart my server?
Thank you in advance.
prontera,150,150,3 script ServerDonation NPC 4_F_TELEPORTER,{
mes "Players have donated "+.server_donate +" zeny.";
mes "How much zeny do you want to donate?";next;
input .@donate;if(Zeny<.@donate){
mes "You need more zeny";
close;}else{Zeny-=.@donate;.server_donate +=.@donate;
mes "You donated "+.@donate+" z.";
close;}}
Hi,
I'm trying to make an NPC which players can donate zeny to, and the zeny count is for every player - as in when one player donates, it updates a tally for everyone else (stored in NPC).
If I use .server_donate (as shown in example below), will it disappear when I restart my server?
Thank you in advance.
Share this post
Link to post
Share on other sites