|
Setepth Novice
Joined: 17 Dec 2001 Posts: 34 Location: USA
|
Posted: Mon Feb 24, 2003 1:55 am
Needing an autopay 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 http://www.hakarren.mudservices.com port:7777
[Edit: Moved by Darker] |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Feb 24, 2003 2:14 am |
This forum is for finished scripts only. If you have a question, ask in either the General Forums or the Beta Forums--whichever would be most appropriate.
li'l shmoe of Dragon's Gate MUD |
|
|
|
Iccor Newbie
Joined: 21 Dec 2002 Posts: 9 Location: USA
|
Posted: Mon Aug 04, 2003 7:43 am |
ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh make an alias 'payallmaintinence' with those in it??
maybe even add that alias to an atconnect alias?? |
|
|
|
megamog75 Enchanter
Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Tue Aug 05, 2003 2:56 am |
ahhh I think this might do it
________________________________________________________________
#CLASS {payit}
#ALIAS payit {#var payamt %1;#forall @paymain {Pay maintenance %i @payamt}}
#ALIAS addpayit {#additem payit %1}
#ALIAS delpayit {#delitem payit %1}
#ALIAS clrpayit {#yesno "do you really want to clear all of this?" {#var payit ""}}
#ALIAS helppayit {#echo %ansi(high,blue)addpayit adds the item to the list;#echo %ansi(high,yellow)delpayit deletes the item from the list;#echo %ansi(high,red)clrpayit clears the payit variable;#echo helppayit shows you this again!!!!!}
#VAR paymain {80561|4189555|2652548|2772629|3062033|3292224|3292225|3292226|3329662|3370833|3523024|3688779|3688780|3688781|2669494|2669495|2669497|2705877|2714963|2714964|2714966|2734710|2743849|2785904|2808396|2873161|2873162|2873164|2619991|2619992|2619993|2619994|2630668|2630669|2630670|2630673|2630674|2639491|2639492|2649462|2617518|2617522|4724503|4734977|4734978|4767712}
#VAR payamt {}
#CLASS 0
helppayit
_________________________________________________________________________
cut and past directly to your command line or into a note pad and then import it....... |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Aug 05, 2003 8:31 am |
As you can see from the initial reply, Setepth originally posted this
on the wrong forum and was directed to this forum.
He then posted the question again on this forum, where it was answered.
Needing help writing this script
There's no need to go through it again. Setepth already got an answer
he was satisfied with 6 months ago, and Iccor wasn't asking a
question -- he was just ignoring the reply that said it was the wrong
forum to answer on. |
|
|
|
megamog75 Enchanter
Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Tue Aug 05, 2003 11:43 pm |
Your right ofcoarse and in the future maybe i should read the initial date, However I just gave my answer because I like to help
And if you look closly you will see mine is different from the one Kjata left, in That mine is programmable with other aliases and also made the "500" pay amount a variable.
But like I wrote: I don't do it for the fame, Just the reward. |
|
|
|
teknocide Beginner
Joined: 15 Jul 2003 Posts: 25 Location: Sweden
|
Posted: Wed Aug 06, 2003 1:22 pm |
Yours also doesn't work since the variable payit is never accessed except for adding or deleting items.
|
|
|
|
megamog75 Enchanter
Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Thu Aug 07, 2003 5:47 am |
It works just fine, Must be a problem at your end. Maybe somthing is wrong between the chair and the keyboard.
example: payit 500 |
|
|
|
|
|