Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
lewdpotato
Novice


Joined: 16 May 2002
Posts: 48
Location: USA

PostPosted: Mon Jul 01, 2002 10:48 pm   

another trigger question
 
Im tying to make a trigger for a corpmate so that they can do the megga port robbing when I am gone on vacation. I could also use this myself but in a button. here's what Im trying to do.
#TRIGGER {rob} {pr;r
ok at this point the port (server prompt) asks me how much I want to try to embezzle 5000000. at the end of that statement it tells me how much money is on the port. I need to multiply that # by 1.1 then enter that amount. any help would be great.
Reply with quote
iljhar
GURU


Joined: 10 Oct 2000
Posts: 1116
Location: USA

PostPosted: Mon Jul 01, 2002 11:50 pm   
 
what do you mean by 'enter'? Do you mean just type in the amount? Is there a command to take the money? What exactly is the response you get from the server? Does it just give an amount? Are there words before the amount? Please give us a bit more info.

Iljhar
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Jul 02, 2002 12:33 am   
 
Use an appropriate trigger phrase, with the %d wildcard in parentheses to capture the number. Then apply the appropriate formula to obtain the number you want. Keep in mind that the current version of zMUD doesn't support fractions, so you'll need to multiply before you divide.
#TR {How much do you want to embezzle (%d)} {%eval(%1*11/10)}

LightBulb
Senior Member
Reply with quote
lewdpotato
Novice


Joined: 16 May 2002
Posts: 48
Location: USA

PostPosted: Tue Jul 02, 2002 4:57 am   
 
well that is very close, at the end of the phrase it tells me how much money is avalible on the port. I can rob that + 10% so I would multiply the (%d) by 1.1 and that is the amount that I want to enter. I think the one you gave me will work lightbulb ty. I cant say enough about how good everyone is here about helping out. thanks again. I will try to get it working.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net