Hi trying to figure out how do I use more1 and more2 in a new character script to give a monster spells. What is the formula for setting more1 and more2? I have a script for one monster that just has item=spellbook and more1 and more2 set with a number sequence and it makes the monster teleport on enemy and cast summon earth ele and other spells but I can't figure out how they set the more1 and more2 to get it to do so. I always thought you had to do the spellcircles= and give it reagents for the spells you want it to cast, but this script doesn't have that at all and no regs and it still casts, but I have no idea how to set it to do so. I want to set it to cast spells like summon undead, hallu, necro spells and such plus teleport & more..
Thanks!
On spellbooks, MORE1 and MORE2 are bitmasks for the various spells. MORE1 is the first 32 spells covering circle 1-4, and MORE2 is the last 32 spells (circles 5-8).
If you don't know what bitmasks are, try this tutorial:
http://teaching.idallen.com/cst8214/08w/...ations.txt
Create a clean spellbook, add scrolls that you want in it. Then use .xshow more1 and more2 to spellbook, write the numbers, add it to your script.
PHP Code:
[FUNCTION SETSPELLS]
LOCAL.MORE1 0
LOCAL.MORE2 0
FOR I 0 <ARGV>
IF <EVAL <ARGV[<dLOCAL.I>]>> <= 32
LOCAL.MORE1 |= <HVAL 2@(<ARGV[<dLOCAL.I>]>-1)>
ELSE
LOCAL.MORE2 |= <HVAL 2@(<ARGV[<dLOCAL.I>]>-1)>
ENDIF
ENDFOR
MORE1 <dLOCAL.MORE1>
MORE2 <dLOCAL.MORE2>
RETURN 1
Usage: SETSPELLS x,y,z,..,n
Where x,y,z,..,z are the spell numbers.
Example: SETSPELLS 1,2,3,4,5
Firstly:
@Extreme this is 51a
Secondly:
Why drag up old threads by giving the same answer as has already been given?
Oh crap
Sorry :/
That guy 'sus' that resurrects the thread, not me ¬¬