summaryrefslogblamecommitdiff
path: root/npc/027-1_Graveyard/golbenez.txt
blob: 3e46494bab24629b6db89ab8cb40c689eef1326a (plain) (tree)


















































                                                                                                                                                                                                                                                                                                                                                                                       
//

027-1.gat,68,89,0	script	#Golbenez#_M	307,{
	if ($Golbenez_Inn_Cost >= 500000000) goto Golbenez_Inn_Enough;

	mes "[Voice]";
	mes "\"Mortal!  I am Golbenez!  I have broken through the barriers of space and time!\"";
	next;
	mes "\"For eons I've traveled through existence, tapping powers the living shall never touch.  I now offer my powers for your enjoyment.  In your world, places of leisure bring a desirable break from the threats of life.  I shall create such a place.  This place will be free from the threats found on your world as well as mine.\"";
	next;
	mes "\"It is difficult to create portals from my realm to yours.  It is also difficult to create dimensions isolated from the threats that may seek to do you harm.  For this reason I demand a hefty fee.  For 500 million of your gold pieces I will create this place.  This need not come just from you, but it must be delivered from the people of your world to me.\"";
	next;
	mes "\"So far, you have brought me " + Golbenez_Inn_Cost + " gold pieces.  The people of your world have brought me " + $Golbenez_Inn_Cost + " gold pieces.  How much would you like to give?\"";

        set @mult, 1;
	menu
		"I'd like to give a little.", Golbenez_Little,
		"I'd like to give thousands.", Golbenez_Thousands,
		"Nevermind.", Golbenez_Nevermind;


Golbenez_Thousands:
        set @mult, 1000;

Golbenez_Little:
	input @Give;

        set @Give, @Give * @mult;
	
	if (@Give <= 0) close;
	if (zeny < @Give) goto Golbenez_Inn_NotEnoughZeny;
	set Golbenez_Inn_Cost, Golbenez_Inn_Cost + @Give;
	set $Golbenez_Inn_Cost, $Golbenez_Inn_Cost + @Give;
	set zeny, zeny - @Give;
	close;

Golbenez_Inn_NotEnoughZeny:
	mes "[Voice]";
	mes "\"You don't have as much as you say you do.  Come back when you can give the gold pieces you say you can.\"";
	close;

Golbenez_Nevermind:
	mes "[Voice]";
	mes "\"That's too bad.\"";
	close;

Golbenez_Inn_Enough:
	mes "[Voice]";
	mes "\"I now have enough to create the place of leisure.  Once I have anchored it to this world, you will know.\"";
	close;
}