Universal book copier

Scripts and support for your favorite MUD client.
oteb
Sojourner
Posts: 432
Joined: Mon May 27, 2002 5:01 am
Location: poland

Universal book copier

Postby oteb » Wed Oct 20, 2004 10:35 pm

#CLASS {spellbookcopy}
#ALIAS copybook {#var spellb "";l in %1;#var spellno 1;#wa 5000;scribe %word( @spellb, @spellno, "|")}
#TRIGGER {It contains the spells: (*) and has %d free pages.} {#var spellb "%1";#var spellb %replace( @spellb, ", ", "|")}
#TRIGGER {You have the spell already in your spellbook, boggle?} {#Add spellno 1;#if (@spellno > %numwords( @spellb, "|")) {#sa done copying} {scribe %word( @spellb, @spellno, "|")}}
#TRIGGER {You finish scribing spell } {#Add spellno 1;#if (@spellno > %numwords( @spellb, "|")) {#sa done copying} {scribe %word( @spellb, @spellno, "|")}}
#CLASS 0

USAGE:
A book you are holding must be bigger or equal size of a book being copied.
Then just sit down relax and : copybook <spellbook to be copied>

Enjoy:)

Thanks to Mielikki and Lenefir for some jump start on this
Last edited by oteb on Thu Oct 21, 2004 11:24 am, edited 2 times in total.
You group-say 'who is da red shape?'
A red shape group-says 'I'm a shape'
oteb
Sojourner
Posts: 432
Joined: Mon May 27, 2002 5:01 am
Location: poland

Postby oteb » Wed Oct 20, 2004 10:40 pm

bah hold on with using it yet. encountered some problems


EDIT:should be fixed
You group-say 'who is da red shape?'

A red shape group-says 'I'm a shape'
Vari
Sojourner
Posts: 18
Joined: Sat Oct 04, 2003 8:05 pm

Postby Vari » Fri Oct 29, 2004 6:35 pm

Hey i'm trying to get this to work but all i get is < > scribe
Buggy spell! wanted to know if ther was a fix thanks
Vari
AKA Christina
oteb
Sojourner
Posts: 432
Joined: Mon May 27, 2002 5:01 am
Location: poland

Postby oteb » Sat Oct 30, 2004 10:36 am

Hmm reread the trigger
It wont work if spellbook you are copying is full.
You would have to change trigger that captures spells
Dont have any full book so not sure what is the end of full spellbook phrase.
If 'it and has no free pages' change %d in trigger to %a
You group-say 'who is da red shape?'

A red shape group-says 'I'm a shape'

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 11 guests