Forging Script for MUSH

by Hianastu

Back to Mechanic's Corner.

Hianastu2008-08-28 19:55:11
hi guys, i need a autoforger for VBscript in the mush client, i cant do scripting to save my life, even the basic stuff, so if anyone could point me in the right direction, or better yet, help me build one, id be very happy


EDIT-- ok, mabye in LUA would be better, it can go as a plugin for Nehzmets system?
Unknown2008-08-28 19:56:54
VBS is the devil. (Sorry, but that's as helpful as I get on this topic. Oh, and forging is evil, too.)
Hianastu2008-08-28 22:37:06
QUOTE(Zarquan @ Aug 28 2008, 08:56 PM) 551236
VBS is the devil. (Sorry, but that's as helpful as I get on this topic. Oh, and forging is evil, too.)


haha thank you for the input.....i guess
Esano2008-08-29 08:02:10
If you're using Nezha's, then yes, fairly sure it needs to be in Lua. Post all the various messages, syntax, and other assorted information, please? e.g. if you want it to take out the commodities, I'll need exact messages. Preferably, however, you'd take out the comms and just enter "autoforge w # # # #" or "autoforge a # # #".
Hianastu2008-08-29 09:37:28
QUOTE(Esano @ Aug 29 2008, 09:02 AM) 551494
If you're using Nezha's, then yes, fairly sure it needs to be in Lua. Post all the various messages, syntax, and other assorted information, please? e.g. if you want it to take out the commodities, I'll need exact messages. Preferably, however, you'd take out the comms and just enter "autoforge w # # # #" or "autoforge a # # #".


ok, so ive uploaded a word document with an edited version of a typical forging session, as you can imagine, its long, boring, and monotimous, plus you need to smelt and re-forge the item again many times to get good stats on all levels, and even then its purely luck as the system inputs a random modifier to random stat each time, for armour there are two stats, piercing/blunt damage, and for weapons its damage/precision/speed/ i dunno if these are possible to incorpirate in an autoforger, so you remove from the forge, weaponprobe, then if the stats arnt good enough for that particular type of weapon, armour, shield, or helm, it gets smelted and reforged untill the stats check out?

as i said, i cant program whatsoever, so if this is do-able, id be eternally grateful content.gif

EDIT-- also, im trying to configure so i use Nezhas system, as ive had to recently re-install MUSH, and thats more up to date
Aidyn2008-08-29 22:41:38
In direct response to this I will be posting my very own forging triggers for MUSH in Lua, for those interested. I know, I know, where can you send the credits to? Don't worry about that! I'm super serial. Keep the creds because the system isn't perfect. It has a few kinks. Mostly just consistency issues. When I have fixed those I will gladly post that here in a few forms. Initially, it will include a zip file that contains the appropriate files you'll need to upload. This is merely because there seems to be a minor problem with creating new plug-ins at this time. Once I've pegged the issue down, it will be here in that format. My goal is to have that here by the end of the week (that is next Sunday, not this one. So, 7thish?). Once you've got the system up and working, if you experience any difficulties just let me know. Hian can tell you personally, I will gladly help walk you through the problem. Take care and happy adventures!
Esano2008-08-29 23:45:26
And here I was nearly finished on mine...
Hianastu2008-08-30 15:49:58
well, to be honest, Aidyn's is a very good one, but as he said, the kinks need working out, and to be honest, Variety and Choice are the spice of life, so if anyone else has any autoforgers to add, post them! im sure people would like a coice, or better yet, e-mail them to me, and ill post them in my original post
content.gif
Esano2008-08-31 05:41:38
Well, here's mine. Untested, as I'm not a forger. Doesn't handle cinnabar. Use at your own risk.



Commands:

autoforge * * * (*)

It will forge for %1, to minimums of %2/%3 for armour, or %2/%3/%4 for a weapon. The only way it distinguishes between weapons and armour is the number of arguments.
Aidyn2008-08-31 07:35:57
I was gonna upload my files with Cinnabar/Mercury triggers enabled, however, I don't have them as a zipped file. At any rate, I'll upload the non-plugin format tonight when I come back around. Then you'll be forging away until you cry big tears. Look forward to that soon. All I did to fix the problem was change the group the aliases fell into so that they could be active without the triggers being used. Which was the source of the problem. Anyhow, it is flawless now, just takes a little work.

EDIT: I went back and fixed the plug-in problem. I changed the version minimum to 4.27 (not sure if that was the exact problem, but it works perfectly). Additionally, I have included in the zip file two folders: ForgecraftMk3, which is the plug-in itself, and Forging_Backup, which contains all the files that you would need to add these as standardized triggers, aliases, variables, and timer (essentially, the purpose this serves is for people who prefer having the data permanently stored in their world file). Now, there are two things you should note here. The first being that having the script loaded to your world file requires that your script language be Lua. The second is that if you don't use Lua, but still use MUSH, you can still use the plug-in. That is all for now. Once you have uploaded the script using whichever manner you prefer, type and enter 'readme' (minus the apostrophes). This alias will give you basic instructions on how to use the auto-forger. If you have any questions or concerns contact me as you see fit. Take care and happy adventures!


Aidyn2008-09-28 23:15:24
I wanted to take the time to make a one short announcement:

There are a two major issues that I'm gonna be updating for my plug-in. The first is falling asleep and the second is hunger. The way that I'm going to make it work it should only add 2 triggers. So it won't slow anything down. I'm really busy with re-integrating back into life in the States so it could take a little bit longer than one might think for such an easy problem with a simple solution. Anyhow, be on the look out for that update as it will be posted here. Take care and happy adventures!
Unknown2008-09-29 00:28:18
QUOTE(Aidyn @ Sep 28 2008, 07:15 PM) 564085
The first is falling asleep and the second is hunger.


Sounds like it's time to get out of the forge and go get that 80th circle!
Shaddus2008-09-29 00:33:23
Was thinking about trying Ilyarin's, how good is that one?
Aidyn2008-10-07 22:33:23
IMPORTANT NOTICE!!!


I just made a major change to my plug-in. I noticed that when forging armour (which is ALL I've been forging) it wasn't capturing the stats correctly. So, I went into the triggers themselves only to find a simple mistake. I corrected it, and it works perfectly fine. Additionally, I've finally wrapped up going all over the place and things are winding down so I'm gonna code for those triggers (anti-sleep and hunger) later today. I have everything I need for sleep, but for hunger I may need some additional prompts. I'll work it out eventually. Thanks for your patience. Take care and happy adventures!

PS: It is very important that you download this new version. If you do not, then you will NEVER NEVER NEVER get the stats you are trying to obtain. Therefore, it is in your best interest to do so. Good luck!

EDIT: Please, for the sake of your own sanity, if you use this plug-in only use it for weapons. At the moment there is still some unknown problem with making armour. I'm working on the issue as I write this. It was working yesterday, but now it isn't. So, yeah.