Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ VBscript
➜ Script help, No idea on scripting
Script help, No idea on scripting
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Robert Powell
Australia (367 posts) Bio
|
Date
| Sat 22 Oct 2005 06:55 AM (UTC) |
Message
| Hi all, i have the need to change the alignment of a lot of mobs in my game, so i thought a script would do this nicely for me, but i have no idea how to begin with using external script, nor the syntax for vb or any other scriptiing language.
So what i need to do is the following, the values can be hard coded for simplicity.
Have a start vnum
Have a finnish vnum,
mset currentvnum flags prototype
mset currentvnum align <hardcoded value>
mset currentvnum flags prototype
currentvnum ++
if currentvnum == finnishvnum
end
if anyone could point me in the right direction on this would be greatly apreciated.
Robert Powell.
|
Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated. | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sat 22 Oct 2005 11:01 PM (UTC) |
Message
| Well that is really easy. You could do that in the Intermediate scripting window.
for i = 100 to 200
Send "mset " & i & " flags prototype"
Send "mset " & i & " align 400"
Send "mset " & i & " flags prototype"
next
Change the 100 and 200 to be the vnum range you want. You might want to make the words "Send" to be "Note" initially to check you are doing it correctly.
Backup your file(s) before you start.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
9,820 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top