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
Setepth
Novice


Joined: 17 Dec 2001
Posts: 34
Location: USA

PostPosted: Mon Feb 24, 2003 1:57 am   

Needing help writing this script
 
I don't know if any of you play elysium, but lets put it this way, theres industries you have to run, and i own around 72 of them, and you have to pay for them every day you login to have them run. Well, ironically, they havent coded a payall (x sum) thingy so I'm needing some help. Otherwise i have to continue hitting enter after typing pay maintenance (some long id) (amount of cash i want to deposit) So i have provided a list of all the ids here and what the command is.

The command is for example: pay maintenance 157432 500 (this will put 500 coins in industry number 157432)

However, i have compiled the list that i want and hopefully you can help it auto do it for me when i type: payallindustries

____________________________________________
Pay maintenance 80561 500
Pay maintenance 4189555 500
Pay maintenance 2652548 500
Pay maintenance 2772629 500
Pay maintenance 3062033 500
Pay maintenance 3292224 500
Pay maintenance 3292225 500
Pay maintenance 3292226 500
Pay maintenance 3329662 500
Pay maintenance 3370833 500
Pay maintenance 3523024 500
Pay maintenance 3688779 500
Pay maintenance 3688780 500
Pay maintenance 3688781 500
Pay maintenance 2669494 500
Pay maintenance 2669495 500
Pay maintenance 2669497 500
Pay maintenance 2705877 500
Pay maintenance 2714963 500
Pay maintenance 2714964 500
Pay maintenance 2714966 500
Pay maintenance 2734710 500
Pay maintenance 2743849 500
Pay maintenance 2785904 500
Pay maintenance 2808396 500
Pay maintenance 2873161 500
Pay maintenance 2873162 500
Pay maintenance 2873164 500
Pay maintenance 2619991 500
Pay maintenance 2619992 500
Pay maintenance 2619993 500
Pay maintenance 2619994 500
Pay maintenance 2630668 500
Pay maintenance 2630669 500
Pay maintenance 2630670 500
Pay maintenance 2630673 500
Pay maintenance 2630674 500
Pay maintenance 2639491 500
Pay maintenance 2639492 500
Pay maintenance 2649462 500
Pay maintenance 2617518 500
Pay maintenance 2617522 500
Pay maintenance 4724503 500
Pay maintenance 4734977 500
Pay maintenance 4734978 500
Pay maintenance 4767712 500
____________________________________________
I'm wanting to pay all my industries that standard amount so don't worry about configuring a way to change the 500 amount. If you can do this i would sooo love you. lol.


Hey meet my character:
Prince Basher, Of Que-Hagan.

At
telnet: elysium-rpg.com port:7777
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Feb 24, 2003 4:02 am   
 
First, put all of the IDs in a list. Like this:
#VAR industries {80561|4189555|2652548|2772629|etc.}

Then, create an alias to go through the list and send the command tot he MUD:
#ALIAS payallindustries {#FORALL @industries {Pay maintenance %i 500}}

Kjata
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