Jump to content
  • 0
PapaZola

Zeny Giver Not Check Limit Zeny

Question

i found this script from rAthena

but its stuck when player with full zeny click this npc.

anyone can help fix?

turbo_room,94,105,4	script	Zenny Giver#BG8	804,{
mes "^0055AA[ Banker ]^000000";
	mes "Who wants to be a Millionaire?";
	mes "For sure you are!"; 

	next;

Zeny += 5000000;
	mes "Here you go!";
	mes "5 million zeny for you, darling";

close;
OnInit:
waitingroom "Zenny Giver",0;
end;
}

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

if(Zeny>Your max zeny{

 

mes "too much zeny";

}

 

i guess

Share this post


Link to post
Share on other sites
  • 0

Try this i just made it for you not tested but it should work !
 

prontera,x,x,3	script	Zeny Giver 99,{

	mes .npc$;
	mes "Adventurer how can i help you ?";
	switch(select("Get my daily Zeny","Nevermind")){
		next;
			case 1:
                    If (Zeny >= .MaxZeny) goto L_MaxZeny;
                    Zeny += 5000000;
                    mes .npc$;
                    mes "Here is your daily zeny from adminstrator to support your financial needs";
                    close;
			case 2:
					mes .npc$;
					mes "Have a nice day !";
					close;
	}
L_MaxZeny:
			mes .npc$;
			mes "Sorry seems like you are almost full of zeny. You need to deposit your zeny to bank or change it to coins!";
			close;
OnInit:

		set .MaxZeny,20000000000;
		set .npc$,"[ Zeny Giver ]";
}


 

Share this post


Link to post
Share on other sites
  • 0
turbo_room,94,105,4	script	Zenny Giver#BG8	804,{
	mes "^0055AA[ Banker ]^000000";
	mes "Who wants to be a Millionaire?";
	mes "For sure you are!"; 
	next;
	[email protected] = min(5000000, (MAX_ZENY - Zeny));
	mes "Here you go!";
	mes F_InsertComma([email protected])+" zeny for you, darling";
	Zeny += [email protected];
	close;

	OnInit:
		waitingroom "Zenny Giver",0;
		end;
}

 

  • Upvote 1

Share this post


Link to post
Share on other sites

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.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.