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
Mbwana
Beginner


Joined: 18 May 2002
Posts: 10
Location: Canada

PostPosted: Sun May 19, 2002 5:16 pm   

Having troubles with vendor script.
 
Okay, I want to make it so that my bot only accepts wagers between 100000 coins and 5000000 coins. I've tried to apply this to the vendor script that I already have working, but I cant seem to get it to work. This is the vendor script I have...

Pattern-
%1 gives you %2 coins.

Trigger-
#VAR Ante %2
#VAR Possible %1
#MATH NewGold @CurGold+@Ante
gold
save

Then, I have it connected to another trigger once it saves...

Pattern-
Saved...

Trigger-

#IF (@CurGold=@NewGold) {
#Var player @possible
tell @player Welcome to craps, @player , please tell me your game choice of the games listed in my bio. |Example- tell Zeligar Any, tell Zeligar 7-11, tell Zeligar aces, etc.|
config -prompt
title is playing craps with @player, please wait
#T+ Craps
#T- Vendor
} {}

Somehow I want to make it so that if someone save gave me 50000 coins or 10million coins, he would give it back to the person. Any help would be greatly appreciated.

Mbwana LifeWind

"Hope is the denial of reality."
Reply with quote
Gandorf
Novice


Joined: 28 Oct 2000
Posts: 38
Location: Sweden

PostPosted: Sun May 19, 2002 6:30 pm   
 
A #IF statement like this should fix it

#IF (@Ante>100000 AND @Ante<5000000) {give @ante coins @possible;say you are either betting too much or too little} {whatever you want to do when the bet is good}

Gandorf
-------------------------
Out in the night they laugh about me and my knowledge
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