Jump to content
  • 0

gold room exchange input how many gold


Sergardo

Question


  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.02
  • Content Count:  148
  • Reputation:   0
  • Joined:  03/06/15
  • Last Seen:  

how to put input how many gold to exchange   like u farm 30k ,  u will put 20k  when u talk to npc 

exchange:
    mes "[Gold Room Warperer]";
    mes "Hmm...let me see";
    mes "You have " +gold+ ".";
    if (gold == 0) goto nogold; 
    mes "Ok get this.";
    next;
        if (checkweight(969,gold) == 0) goto L_OverWeight;
    getitem 969, gold;x
    set gold, 0;
    emotion e_gg;
    end;


 

Edited by Emistry
fix
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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

        if (checkweight(969,gold) == 0) goto L_OverWeight;
    getitem 969, gold;x
    set gold, 0;

change to

input .@amount, 0, gold;
if (!.@amount) close;
if (checkweight(969,.@amount) == 0) goto L_OverWeight;
gold -= .@amount;
getitem 969, .@amount;

 

  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  795
  • Reputation:   101
  • Joined:  05/23/12
  • Last Seen:  

I rly don't understand what u want. Please write in english or use the Filipino sub forum.

 

Rynbef~

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  177
  • Reputation:   25
  • Joined:  12/24/14
  • Last Seen:  

exchange:
	if (gold == 0) goto nogold;
	mes "[ Gold Room Warperer ]";
	mes "Hmm...let me see";
	mes "You have " +gold+ ".";
	mes " ";
	mes "How many you want exchange ?";
	next;
	switch(select("Make as many as I can.:I want to choose an amount.:Cancel")) {
		case 1:
			if (checkweight(969,gold) == 0) goto L_OverWeight;
			getitem 969, gold;
			set gold, 0;
			emotion e_gg;
			break;
		case 2:
			mes "[ Gold Room Warperer ]";
			mes "You have " +gold+ ".";
			mes "If you don't want any, just enter '0'.";
			mes "With Points you have, you can make at least "+gold+" golds.";
			next;
			input .@amount;
			if (.@amount <= 0) {
				mes "[ Gold Room Warperer ]";
				mes "Make up your mind, will you?!";
				close;
			}
			if (.@amount > gold) {
				mes "[ Gold Room Warperer ]";
				mes "Are you deaf? I said less than "+gold+"!";
				close;
			}
			next;
			if (checkweight(969,gold) == 0) goto L_OverWeight;
			set gold,gold - (.@amount);
			getitem 969,.@amount;
          	 	emotion e_gg;
			break;
		case 3:
			mes "[ Gold Room Warperer ]";
			mes "Byee !!";
			close;
	}
	end;

# Not tested

Edited by mR L
Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  795
  • Reputation:   101
  • Joined:  05/23/12
  • Last Seen:  

On 3/9/2022 at 1:39 PM, Emistry said:
        if (checkweight(969,gold) == 0) goto L_OverWeight;
    getitem 969, gold;x
    set gold, 0;

change to

input .@amount, 0, gold;
if (!.@amount) close;
if (checkweight(969,.@amount) == 0) goto L_OverWeight;
gold -= .@amount;
getitem 969, .@amount;

 

Thx @EmistryI've learned new arguments to the input script command that I doesn't know ?

 

Rynbef~

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