Jump to content
  • 0

Zeny Giver Not Check Limit Zeny


PapaZola

Question


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

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;
}
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  206
  • Reputation:   10
  • Joined:  08/30/19
  • Last Seen:  

if(Zeny>Your max zeny{

 

mes "too much zeny";

}

 

i guess

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

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


 

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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
Link to comment
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...