Jump to content
  • 0

Zeny Giver Not Check Limit Zeny


Question

Posted

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;
}

3 answers to this question

Recommended Posts

  • 0
Posted

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 ]";
}


 

  • 0
Posted
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 = min(5000000, (MAX_ZENY - Zeny));
	mes "Here you go!";
	mes F_InsertComma(.@zeny)+" zeny for you, darling";
	Zeny += .@zeny;
	close;

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

 

  • Upvote 1

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...