PDA

View Full Version : Rat hunter - Level 0-8



silversurfer
06-07-2006, 06:05 AM
#Hunts rats like crazy
#Original by Kranar
#Editted to improve performance by Artha

counter set 0

start:
pause 1
put look
match checkexp [Wehnimer's Sewer, Nexus]
match hunting [Abandoned Sewer]
match restorhunt [Town Well]
match logoff [Scripting Violation Limbo]
match logoff [Consoltation Lounge]
match logoff [The Cell]
match lost Obvious exits:
match filter giant rat
matchwait

hunting:
match filter a giant rat
match mover Obvious exits:
matchwait

mover:
pause .5
put %s
match start Sorry, you may only type ahead
match goback You can't go there
match goback I could not find what
match filter a giant rat
match checkexp [Wehnimer's Sewer, Nexus]
match mover Obvious exits:
matchwait

goback:
put look
match gb0 Obvious exits: southwest
match gb2 Obvious exits: northwest
match gb4 Obvious exits: northeast
match gb6 Obvious exits: southeast
match gb3 Obvious exits: north
match gb5 Obvious exits: east
match gb7 Obvious exits: south
match gb1 Obvious exits: west
matchwait

gb0:
save sw
goto mover

gb1:
save w
goto mover

gb2:
save nw
goto mover

gb3:
save n
goto mover

gb4:
save ne
goto mover

gb5:
save e
goto mover

gb6:
save se
goto mover

gb7:
save s
goto mover

M0:
save n
goto mover

M4:
save ne
goto mover

M2:
save e
goto mover

M3:
save se
goto mover

M1:
save s
goto mover

M5:
save sw
goto mover

M6:
save w
goto mover

M7:
save nw
goto mover

lost:
pause 1
put look
match filter a giant rat
match checkexp [Wehnimer's Sewer, Nexus]
match hunting [Abandoned Sewer]
match restorhunt [Town Well]
matchwait

checkexp:
put exp
match gorest you must rest
match chooser your mind is
matchwait

chooser:
put time
match M1 0 by the elven time standard
match M2 1 by the elven time standard
match M3 2 by the elven time standard
match m4 3 by the elven time standard
match m5 4 by the elven time standard
match m6 5 by the elven time standard
match m7 6 by the elven time standard
match m7 7 by the elven time standard
match m7 8 by the elven time standard
match m4 9 by the elven time standard
matchwait

filter:
put look
match start You can't go there.
match mover Also here
match attrat Obvious exits
matchwait

attrat:
put kill
match mover you referring to
match mover You currently have no valid target
match dead dies
match dead dead
match dead motionless
match dead A little bit
match attrat only type ahead
match attrat Please wait
match attrat scampers in!
match omgwait Roundtime
match omgwait Wait
match start I could not find
matchwait

omgwait:
pause 1
goto attrat

dead:
dead:
pause
put sheath
waitfor You put
put ready 2weapon
waitfor You remove
put skin rat
match skinned You skinned
match attrat You might want
match continue You botched
match continue You can only skin creatures
match continue been skinned
matchwait

continue:
put sheath
waitfor You put
put ready weapon
waitfor You remove
put search rat
goto start

skinned:
put sheath
waitfor You put a
put get pelt
put stow my pelt
waitfor You put a
put ready weapon
waitfor You remove
put search rat
goto start

restorhunt:
put exp
match gohunt Your mind is muddled
match gohunt Your mind is clear
match gohunt Your mind is fresh and clear
match gohunt Your mind is as clear as a bell
match rest Your mind
matchwait

gohunt:
put gird
waitfor You
move s
move e
move e
move e
move n
move e
move e
move s
move s
move go open
move e
move go hole
move go open
move e
move n
move go grate
goto start

gorest:
put look in my backpack
match sellfurrier pelt
match moverest and a
match moverest and an
matchwait

moverest:
move go grate
move s
move w
move go open
move go hole
move w
move go open
move n
put sheath
waitfor You
put store shield
waitfor You
move n
move w
move w
move s
move w
move w
move w
move go well
goto rest

sellfurrier:
move go grate
move s
move w
move go open
move go hole
move w
move go open
put sheath
waitfor You
put store shield
waitfor You
move n
move n
move w
move w
move s
move w
move w
move w
move nw
move n
move n
move e
move go furr
put remove my backpack
waitfor You take
put sell my backpack
waitfor Dakris takes
put wear my backpack
waitfor You put
move out
move w
move s
move s
move s
move go bank
move go arch
goto bankdepo

bankdepo:
pause 1
put depo all
match gobankrest You
matchwait

gobankrest:
move go arch
move out
move e
move go well
goto rest

rest:
pause 65
put exper
match rest Your mind can't take much more
match rest Your mind is numbed
match gohunt Your mind is becoming numbed
match gohunt Your mind is muddled
match gohunt Your mind is clear
match gohunt Your mind is fresh and clear
match gohunt Your mind is as clear as a bell
matchwait

logoff:
put exit

Ilvane
06-10-2006, 01:22 PM
Anyone have an Icemule Rat hunter?

Solkern
06-10-2006, 01:34 PM
Are these allowed?
last time I played they weren't

Snapp
06-10-2006, 01:49 PM
As long as you're not using them AFK, they're allowed.

Bobmuhthol
06-10-2006, 02:00 PM
Scripts have never not been allowed.. they're part of the front end.

Solkern
06-10-2006, 03:27 PM
ahh gotcha

AestheticDeath
06-10-2006, 05:24 PM
did you copy and paste this in pieces? should dead:be listed twice?

AestheticDeath
06-10-2006, 05:53 PM
sty grate imbedded in the ceiling. The walls are cracked and broken, while the floor is covered with a thin layer of mud, or worse. The air is damp and musty, while gently drifting in from the surrounding tunnels are some of the most appalling odors it has ever been your misfortune to experience. Tunnels slope slightly downward in all directions. You also see a giant rat and a giant rat.
Obvious exits: north, northeast, east, southeast, south, southwest, west, northwest
[Script]> Level: 5 Deeds: 0
Experience: 33362 Decays this level: 0
Exp. until next: 6638 Recent Deaths: 0
Mental TPs: 22 Fame: 916
Physical TPs: 0 Mana: 5/5 max
(62 Mnt converted to Phy)

time
Your mind is becoming numbed.

You feel a strange sense of serenity and find that you are able to reflect on recent events with uncommon clarity and understanding.

[Script]>Today is Feastday, day 10 of the month Lumnea in the year 5106. It is 17:51 by the elven time standard. It is currently late afternoon.
[Script]>e
look
A giant rat tries to bite you!
AS: +34 vs DS: +71 with AvD: +32 + d100 roll: +51 = +46
A clean miss.
[Script]>[Abandoned Sewer]
This tunnel has obviously been neglected for a number of years. The mortar is falling out from around many of the bricks, some of which are broken. Much of the floor is covered with various mosses and slimes, puddles of stagnant water, and many kinds of disgusting creepy-crawlies.
kill
Obvious exits: east, west
[Script]>[Abandoned Sewer]
This tunnel has obviously been neglected for a number of years. The mortar is falling out from around many of the bricks, some of which are broken. Much of the floor is covered with various mosses and slimes, puddles of stagnant water, and many kinds of disgusting creepy-crawlies.
Obvious exits: east, west
[Script]>
You currently have no valid target. You will need to specify one.
[Script]>e
[Abandoned Sewer]
The tunnel slopes gently downward, and much of the floor is shattered and broken. You could easily do without the slight movement of the air, as it only brings ever more appalling scents to your attention.
Obvious exits: east, west
[Script]>e
[Abandoned Sewer]
The openings of small pipes are visible through the muck on the walls. To judge from the smell, they used to deliver raw sewage into this main tunnel. The tunnel continues to descend, as the darkness and humidity seem to close in around you.
Obvious exits: east, west
[Script]>e
[Abandoned Sewer]
There is a small bit of sludgy water pouring out of one of the many small pipes. It has collected into a dark slimy looking pool here, with a small trickle of filth oozing on down the tunnel. There is just enough room to pick your way around it as you continue on deeper into the earth.
Obvious exits: east, west
[Script]>scratch my chin
You scratch your chin.
[Script]>

[Script aborted.]
>w


What went wrong here?

Things2Come
06-10-2006, 06:04 PM
It saw the giant rat attack you and that triggered the match.

AestheticDeath
06-10-2006, 06:15 PM
Im confused. I dont use scripts much at all.

But... the script put se, got to the grate area. should have seen the two rats and attacked. But it did the exp, time commands, then went to go east, it typed look, then the rat tried to bite me. then at the next room the command look, actually worked, then it hit kill.

So you say it matched on what? I dont see anything in the script that would have taken an attack, and made me move on.

AestheticDeath
06-10-2006, 06:21 PM
From what i can understand, it should have been in the mover: section of the script, and upon seeing the rats should have gone to the filter: section, where the only thing that would make it move is seeing Also here:

Actually might it not be something to do with the nexus part of the script? It saw the nexus room name, before it saw the rats, and went to a different part of the script, checkexp:, which in turn sent it to the chooser: And I have no idea what the chooser is actually doing. Is it looking at the minutes of time, and just taking it to a certain direction based on the minute?

AestheticDeath
06-10-2006, 06:25 PM
OK, so the description would have been the room name, then rats. But the script has a filter for rats, then a match for the name. Which would actually be looked for and/or recognized first? And is there a way to seperate it to make it only see the rats, until the rats are gone? Or would it be better to redirect the checkexp:, to the mover instead of the M#s?


edited for stupidty

AestheticDeath
06-10-2006, 06:56 PM
Right, it is skipping the rats it finds in the nexus. How do I fix this?

edit: Nexus is not the only place I have experienced this thing skipping rats to move along. THough it seems to be limited right now, to the nexus, and when I reach the end of a tunnel.

AestheticDeath
06-10-2006, 07:59 PM
ortheast, east, southeast, south, southwest, west, northwest
[Script]> Level: 5 Deeds: 0
Experience: 38543 Decays this level: 0
Exp. until next: 1457 Recent Deaths: 0
Mental TPs: 32 Fame: 1668
Physical TPs: 0 Mana: 5/5 max
(66 Mnt converted to Phy)

time
Your mind is becoming numbed.

You feel a strange sense of serenity and find that you are able to reflect on recent events with uncommon clarity and understanding.

[Script]>Today is Feastday, day 10 of the month Lumnea in the year 5106. It is 19:36 by the elven time standard. It is currently evening twilight.
[Script]>nw
Oddfinger's hands glow with power as he summons elemental energy to his command...
look
Oddfinger gestures at a giant rat.
Oddfinger hurls a small surge of electricity at a giant rat!
AS: +113 vs DS: +2 with AvD: +35 + d100 roll: +53 = +199
... and hits for 18 points of damage!
Heavy spark to left hand. Bet that hurts.
[Script]>[Abandoned Sewer]

kill
Obvious exits: southeast, northwest
[Script]>[Abandoned Sewer]

Obvious exits: southeast, northwest
[Script]>
You currently have no valid target. You will need to specify one.
[Script]>nw
[Abandoned Sewer]

Obvious exits: southeast, northwest
[Script]>nw
look
A giant rat scampers in!
[Script]>[Abandoned Sewer]
You notice a giant rat.
kill
Obvious exits: southeast, northwest
[Script]>[Abandoned Sewer]
You notice a giant rat.
Obvious exits: southeast, northwest
[Script]>
You thrust with a rapier at a giant rat!
AS: +81 vs DS: +14 with AvD: +45 + d100 roll: +22 = +134
... and hit for 16 points of damage!
Quick slash catches the giant rat's cheek!
Dimples are always nice.
Roundtime: 4 sec.
[Script]>kill
You thrust with a rapier at a giant rat!
AS: +81 vs DS: +12 with AvD: +45 + d100 roll: +14 = +128
... and hit for 12 points of damage!
Slashing strike near forehead nicks an eyelid!
That must sting!
The giant rat collapses to the ground, emits a final squeal, and dies.
Roundtime: 4 sec.

Things2Come
06-10-2006, 09:58 PM
Goto Location

Location:
Match TR [Raging Thrak Inn, Trophy Room]
Match Nexus [Wehnimer's Sewer, Nexus]
put look
Matchwait

Nexus:
Goto Move

TR:
move e
move out
move se
move e
move e
move e
move n
move e
move e
move s
move s
move go open
move e
move go hole
move go open
move e
move n
move go grat
Goto Move

ToRest:
move go grat
move s
move w
move go open
move go hole
move w
move go open
move n
move n
move w
move w
move s
move w
move w
move w
move nw
move go inn
move w
Goto Rest

Rest:
Pause 60
Goto XpCheck

XpCheck:
Match Rest You must rest!
Match Rest Your mind is numbed.
Match Rest Your mind is becoming numbed.
Match Location Your mind is muddled.
Match Location Your mind is clear.
Match Location Your mind is fresh and clear.
Match Location Your mind is clear as a bell.
Match Location Your mind is as clear as a bell.
Put Xp
Matchwait

Move:
Counter Set 0
Save Look
Goto Hunt

Hunt:
put %s
COUNTER ADD 1
Match CharCheck a giant rat
Match Path%c Obvious exits:
Match Path%c Obvious paths:
Match Path%c You can't
Matchwait

CharCheck:
Match Taken Also here:
Match ExpCheck Obvious paths:
Match ExpCheck Obvious exits:
Matchwait

Taken:
Goto Path%c

ExpCheck:
Match ExpCheck ...wait
Match Path%c You must rest!
Match Offense Your mind is
put Exp
Matchwait

Offense:
Match Attack You are now in an offensive stance.
Match Offense ...wait
put stance off
Matchwait

Attack:
Match Attack ...wait
Match Defense You currently have no valid target. You will need to specify one.
Match Defense Roundtime:
put attack
Matchwait

Defense:
Match Defense ...wait
Match Loot You are now in a defensive stance.
Put stance def
Matchwait

Loot:
Match Loot ...wait
Match Victory You search
Match Victory Could not find a valid target to loot.
Put loot
Matchwait

Victory:
COUNTER SUBTRACT 1
Save Look
Goto Hunt

Path1:
Path2:
Path3:
Path4:
Path5:
Path6:
Path7:
Path8:
Path9:
Path10:
Save N
Goto Hunt

Path11:
Path12:
Path13:
Path14:
Path15:
Path16:
Path17:
Path18:
Path19:
Path20:
Save S
Goto Hunt

Path21:
counter add 1
Match Path21 ...wait
Match ToRest You must rest!
Match Path%c Your mind is
put Exp
Matchwait

Path22:
Path23:
Path24:
Path25:
Path26:
Path27:
Path28:
Path29:
Path30:
Save Ne
Goto Hunt

Path31:
Path32:
Path33:
Path34:
Path35:
Path36:
Path37:
Path38:
Path39:
Save Sw
Goto Hunt

Path40:
counter add 1
Match Path40 ...wait
Match ToRest You must rest!
Match Path%c Your mind is
put Exp
Matchwait

Path41:
Path42:
Path43:
Path44:
Path45:
Path46:
Path47:
Path48:
Save E
Goto Hunt

Path49:
Path50:
Path51:
Path52:
Path53:
Path54:
Path55:
Path56:
Save W
Goto Hunt

Path57:
counter add 1
Match Path57 ...wait
Match ToRest You must rest!
Match Path%c Your mind is
put Exp
Matchwait

Path58:
Path59:
Path60:
Path61:
Path62:
Path63:
Path64:
Path65:
Path66:
Save Se
Goto Hunt

Path67:
Path68:
Path69:
Path70:
Path71:
Path72:
Path73:
Path74:
Path75:
Save Nw
Goto Hunt

Path76:
counter add 1
Match Path76 ...wait
Match ToRest You must rest!
Match Path%c Your mind is
put Exp
Matchwait

Path77:
Path78:
Path79:
Path80:
Path81:
Path82:
Path83:
Save S
Goto Hunt

Path84:
Path85:
Path86:
Path87:
Path88:
Path89:
Path90:
Save N
Goto Hunt

Path91:
counter add 1
Match Path91 ...wait
Match ToRest You must rest!
Match Path%c Your mind is
put Exp
Matchwait

Path92:
Path93:
Path94:
Path95:
Path96:
Path97:
Path98:
Path99:
Save Sw
Goto Hunt

Path100:
Path101:
Path102:
Path103:
Path104:
Path105:
Path106:
Path107:
Save Ne
Goto Hunt

Path108:
counter add 1
Match Path108 ...wait
Match ToRest You must rest!
Match Path%c Your mind is
put Exp
Matchwait

Path109:
Path110:
Path111:
Path112:
Path113:
Path114:
Path115:
Path116:
Path117:
Path118:
Save W
Goto Hunt

Path119:
Path120:
Path121:
Path122:
Path123:
Path124:
Path125:
Path126:
Path127:
Path128:
Save E
Goto Hunt

Path129:
counter add 1
Match Path129 ...wait
Match ToRest You must rest!
Match Path%c Your mind is
put Exp
Matchwait

Path130:
Path131:
Path132:
Path133:
Path134:
Path135:
Path136:
Path137:
Path138:
Save Nw
Goto Hunt

Path139:
Path140:
Path141:
Path142:
Path143:
Path144:
Path145:
Path146:
Path147:
Save Se
Goto Hunt

Path148:
counter set 0
Match Path148 ...wait
Match ToRest You must rest!
Match Path%c Your mind is
put Exp
Matchwait

Bobmuhthol
06-10-2006, 10:01 PM
It has to skip rats in the nexus because the nexus is a specified "check experience and leave if necessary" room.

AestheticDeath
06-11-2006, 01:13 AM
Thanks guys.

Its late, but I will definatly give that movement portion a try tomorrow.

Obviously I have not written any scripts before Bob, but why can you not have it be a 'check exp and leave room,' as well as be able to kill rats in it? Seems like a dead giveaway to script hunting if your not killing rats in specific rooms.

Its almost a moot point, because most likely I will extract the exp checks. But I would like to understand the makings of a script, so I do not have to depend on others sharing what they have. I would like to be able to make my own scripts at some point.

Bobmuhthol
06-11-2006, 10:05 AM
<<Obviously I have not written any scripts before Bob, but why can you not have it be a 'check exp and leave room,' as well as be able to kill rats in it? Seems like a dead giveaway to script hunting if your not killing rats in specific rooms.>>

It's possible, but that's just what the script does. If you want to modify it, you can have it start killing rats in the nexus, but I don't think it's really necessary or worth the time.

I think it's a dead giveaway whenever anyone uses any script, anyway, so that doesn't concern me too much.

AestheticDeath
06-11-2006, 10:41 PM
Try this ... (long script)

For some reason this is not working for me.
I am getting a GOTO error.

Things2Come
06-12-2006, 02:13 AM
For some reason this is not working for me.
I am getting a GOTO error.

Wierd, I never had an issue with it. Copy/Paste what it says?

Bobmuhthol
06-12-2006, 05:00 AM
You can't copy/paste from a forum into a script.

The extra space at the end of lines breaks it.

AestheticDeath
06-12-2006, 09:05 AM
I will post a copy of it when I get back from work. It normally happens in the Nexus, gets there, and just stops, saying Goto error.. Doesnt even say the scripts ended or canceled... I press escape and nothing happens.

It basically just runs around, sometimes going too fast, and getting ahead of itself, then gets stuck, trying to move a direction it cant.

I also tried sticking the original rat hunting script in this thread and yours together, as I thought I liked the movement better. I didn't get it to work. Will work on it some more.

And I am always able to copy/paste directly from the forums for scripts. Not sure why this would be different Bob.

AestheticDeath
06-12-2006, 09:06 AM
Also, perhaps I edited something unknowingly... I will try and check on that.

Things2Come
06-12-2006, 05:58 PM
You'll have to use stormfront if you want to use that script or add in a pause to slow it down enough for the wizard.

Bobmuhthol
06-12-2006, 06:01 PM
<<And I am always able to copy/paste directly from the forums for scripts. Not sure why this would be different Bob.>>

It happens in certain scripts, unless that was somehow fixed.

Kranar
06-12-2006, 07:19 PM
Copy and pasting scripts to and from the forums is typically a bad idea simply because of the whitespace introduced.

The correct way to list a script, is preferably to just attach it as a file.

AestheticDeath
06-12-2006, 08:27 PM
Ahh, whats the difference between stormfront and wizard?

Things2Come
06-12-2006, 08:45 PM
One is old, unsupported and sucks. (Wizard) One is new, spiffy and has a better scripting engine. (SF)

Bobmuhthol
06-12-2006, 09:12 PM
Wizard beats StormFront as a front end, but okay. Real scripters/programmers aren't using StormFront's engine.

AestheticDeath
06-13-2006, 12:12 AM
OK, so I ran across a tutorial on StormFront scripting on Simus page. How much of this SF scripting language can or cant be used for the Wizard? What are the major differences between the two? You said something about adding pause to make a script work in the wizard.. How come there is a time difference?

Latrinsorm
06-13-2006, 12:43 AM
Stormfront has the setvariable command, with which the user can create custom variables from within the script (as opposed to wizard's only having %c and %s). It also has counter multiply and counter divide (these aren't really important) and slightly different syntax with regards to colorizing text. It also recognizes variables with %variablename%, whereas Wizard recognizes variables with %variablename. Finally, SF has an unlimited match table.

Stormfront in general will also try to avoid typeahead lines by spacing out a block of commands entered. This is not bulletproof under lag circumstances, but works pretty well in clear running. This means that scripters can just spam a bunch of commands without having to resort to waitfors, matches, and (explicit) pauses.

I like Wizard better.

Algri
06-13-2006, 02:52 AM
wizard ftw, lich for the ability...

Cyprion
06-13-2006, 01:50 PM
I would love to try this amazing lich everyone speaks so highly of. But for some reason everytime i click the icon to open lich, nothing happens. oh well.

Bobmuhthol
06-13-2006, 04:38 PM
You have to log in to GS (and use Wizard) within like 15 seconds of opening the program. It doesn't have a visual effect; you can't see the program actually run.

Slark
06-13-2006, 06:28 PM
It's beyond me why anyone likes the wizard over SF unless their argument is RAM. SF does everything the wizard does and then some...how can you prefer the wizard for scripting?

I'm in the midst of incorporating some lich stuff into my scripts, but I don't really know anything about ruby, so it's a bit of a process.

Bobmuhthol
06-13-2006, 06:31 PM
<<how can you prefer the wizard for scripting?>>

By not being retarded and using a custom-built scripting engine that does infinitely more than StormFront could ever dream of doing.

<<I'm in the midst of incorporating some lich stuff into my scripts, but I don't really know anything about ruby, so it's a bit of a process.>>

That's why some of us prefer Wizard, I suppose.

Slark
06-13-2006, 07:06 PM
I suppose I'll edit my post and just say this:


<<how can you prefer the wizard for scripting?>>

By not being retarded and using a custom-built scripting engine that does infinitely more than StormFront could ever dream of doing.


If you're using a different engine for scripting, then what's the point of using the wizard? For example, I write my scripts to run with Lich, yet I run SF as my front-end, but I could just as easily run them with the wizard.

Oh, and by the way, bob, I didn't realize the boards were prone to people who post while roleplaying jackasses. I thought most of us left that in the game.

Bobmuhthol
06-13-2006, 07:20 PM
<<If you're using a different engine for scripting, then what's the point of using the wizard? For example, I write my scripts to run with Lich, yet I run SF as my front-end, but I could just as easily run them with the wizard.>>

Wizard-only engines tend to not run on StormFront. Lich is not the first or last scripting engine around.

<<Oh, and by the way, bob, I didn't realize the boards were prone to people who post while roleplaying jackasses. I thought most of us left that in the game.>>

I can only think of one way to respond to this (mainly because it's fucking stupid and the reference to roleplaying is inapplicable):

Fuck you.

Slark
06-13-2006, 08:31 PM
Wizard-only engines tend to not run on StormFront. Lich is not the first or last scripting engine around.


Right, I know. My question still stands though - what features do you need from another program that the SF engine can't provide?






I can only think of one way to respond to this (mainly because it's fucking stupid and the reference to roleplaying is inapplicable):

Fuck you.

Gee Bob, I was giving you the benefit of the doubt when I joked that you were roleplaying. I'm sorry you feel the need to get so bitter and defensive over such a harmless thread.

Bobmuhthol
06-13-2006, 08:40 PM
<<Right, I know. My question still stands though - what features do you need from another program that the SF engine can't provide?>>

...

Just about every scripting function that I use. Make me a script that can extract strings with StormFront and I'll use it forever.

Slark
06-13-2006, 08:46 PM
I agree, that's a great function and it's one of the main ones I use in lich...though everything I use it for, I had a workaround using the SF language before I learned how to do it in ruby. What, in game, do you use it for?

Bobmuhthol
06-13-2006, 08:55 PM
Healing.

Getting every item out of my constabulary box (when I was frequently arrested).

I don't think StormFront has the ability to extract a random row from a data file and input it into the game. Thankyou.cmd would therefore not be able to exist.

I don't think StormFront has variables like %health% built in, but I could be wrong.

StormFront doesn't have walk.lic.

Etc.

Cyprion
06-14-2006, 08:01 AM
You have to log in to GS (and use Wizard) within like 15 seconds of opening the program. It doesn't have a visual effect; you can't see the program actually run.

That would explain it. Use to make scripts, my site is quite old and out of date. Recently came back and wouldn't mind getting back into writing some scripts. Scripts are broken on there i believe. haha.

I can script a caster/mana check and and a pure swinger easy enough, have old templates to modify the to/from and hunting area. But, been enjoying my new rogue lately, been looking and don't see any scripts with ambush. Think i'll work on that next. Is there one out there already i am missing?

Celephais
06-14-2006, 11:34 AM
<<By not being retarded and using a custom-built scripting engine that does infinitely more than StormFront could ever dream of doing.>>

Bob, I have been using an engine I wrote myself that intercepts the commands sent to StormFront, and parses them, the information that Simu's servers sends to XML clients is similar to the GSL tags sent to the Wizard client, the biggest difference is that the StormFront information tags objects, with their noun and an ID number. It also updates your room description when creatures unstun. This information poses quite a bit more potential than the Wizard data. Using this info you can write a script that could attacked unstunned creatures with 505, and stunned ones with 904 for example. Potential exists for stance dancing around multiple creatuers and even adapting a script to creatures it has not seen before (script has the noun/id it's been attacked by, it can assess the attackers AS, CONSIDER the attacker, and determine a CoA).

Personally I dislike the stormfronts footprint as an FE, but I prefer the data it gets from Simu, ideally I would parse the stormfronts XML into GSL tags and pass that into the Wizard (or even further have my own FE, but I've been slow enough releasing what I have made).

edit-I said verb instead of noun sorry.

Kranar
06-14-2006, 12:41 PM
XML is definitely a far more versatile information medium than the GSL tags, and additionally as you state, Simu's XML contains a lot more information than the Wizard's GSL.

Your suggestion to parse the XML and serialize it to the WizardFE is actually quite a good one. I hope you don't mind if I steal that idea from you.

Anyhow, this whole idea that "real programmers" use the WizardFE is juvinile at best and quite laughable. There is nothing inferior about StormFront in terms of scripting. You can run Ruby scripts (www.ruby-lang.org (http://www.ruby-lang.org)), Python scripts (www.python.org (http://www.python.org)), or whatever other language script you want in either FE (Lua is pretty attractive too www.lua.org (http://www.lua.org) ). Making a parser that scans info from the server and intercepts commands is pretty basic. Just take the DLL that runs these engines, plug it into your parser, write some classes that abtract away the data, and boom, you have a scripting engine.

Bobmuhthol
06-14-2006, 01:05 PM
<<Anyhow, this whole idea that "real programmers" use the WizardFE is juvinile at best and quite laughable.>>

I said "real programmers" don't use StormFront's scripting. Ruby, Python, etc. are not StormFront's engine. Anyone that's serious about making complex scripts can't make anything efficiently with StormFront.

Celephais
06-14-2006, 01:51 PM
If you want to get all machismo about it, "real programmers" shouldn't be using a scripting engine for anything truely complex anyway. Compile that shit and run it over a database (that's how I get my random text values). (Not knocking scripting, certainly a travel script is not worth this trouble, but how about a graphical map that lets you click on another point and travel there).

The StormFront FE also has the advantage of letting you create windows on the fly, for anything you want.

MaryJane
03-16-2007, 09:51 PM
Tell me how to make the rat hunter work for lich. I use SciTE to put them into lich, but it's been awhile and I'm having issues.