PDA

View Full Version : Lich HPEL



Drew2
12-11-2005, 09:07 PM
I could use the help of someone more versed than I in the ways of scripting.

I'm making a hunting script. I have it like 60% done. Just about the ONLY thing I'm really struggling with is how to make a "hunting path" of sorts. The only ways I can think to do it would involved like a billion more lines of code and it seems to me there is a much easier way.

Basically I need the script to go down a pre-determined path, checking for npcs, making sure there are no people, etc. etc., doing all the killing and looting stuff, then moving on from where it left off.

I know how this is accomplished in Wizard and SF scripts, but that's totally ineffecient and I want my script smarter than that. I'd like for it to be able to turn around and go "home" at any point. I'm positive this is possible, I just don't have the coding capability of doing it.

Someone Hpel please.

TheEschaton
12-11-2005, 09:23 PM
Answer: zMUD


Game, Set, Match


-TheE-

Drew2
12-11-2005, 09:24 PM
What would you do in zMud to accomplish this? Perhaps I can replicate it with Lich.

Bobmuhthol
12-11-2005, 09:24 PM
Lich seriously kicks zMUD's ass.

TheEschaton
12-11-2005, 09:28 PM
zMUD has an automapper. I basically just inputted Tsoran's maps into zMUD....then I labelled the important rooms (IE, "Dais").

Then, in my scripts, I can just use a goto alias (goto Dais:#walk Dais)

Side note: I thought he was scripting monastic liches, or something, didn't realize Lich was a program. Link?

-TheE-

Latrinsorm
12-11-2005, 09:37 PM
http://forum.gsplayers.com/viewthread.php?tid=17148

Something else that's new since you were away: Emperor Bush was inaugurated as our Supreme Overlord for Life. Only one dissenting vote was required from the public, but we've all just been so happy since the Clean Drinking Water Agency was instated.

Also, taffy is down to 2 cents per cubic cm. Yay taffy!

Drew2
12-11-2005, 09:44 PM
Shaelun just got his script to map out GS to work last night, so I think Lich will have a place-to-place feature very soon.

imported_Kranar
12-12-2005, 01:53 PM
I haven't seen Lich, but I'm sure it's similar to UltraTech or any other programming language.

All you do is make an array/list that contains the path to take and iterate over that list.

So the list can be something like...

list path = ("n", "e", "s", "sw", "s", "sw");

Which corresponds to the path n, e, s, sw, s, sw in that order.

And then to iterate over it you can do:

for each move in path {
sendCommandToGame(move);
doWhateverYouDoToHunt();
}

[Edited on 12-12-2005 by Kranar]