The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How Do I Use More1 & More2 In a Char Script To Give Char Spells
Author Message
Admin Drew
Apprentice
*

Posts: 48
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2013
Reputation: 0



Post: #1
How Do I Use More1 & More2 In a Char Script To Give Char Spells
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!
(This post was last modified: 07-21-2013 11:48 AM by Admin Drew.)
07-21-2013 06:52 AM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #2
RE: How Do I Use More1 & More2 In a Char Script To Give Char Spells
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
(This post was last modified: 07-22-2013 02:09 AM by RanXerox.)
07-22-2013 02:08 AM
Find all posts by this user Like Post Quote this message in a reply
sus
Apprentice
*

Posts: 4
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2013
Reputation: 0



Post: #3
RE: How Do I Use More1 & More2 In a Char Script To Give Char Spells
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.
10-02-2013 08:35 PM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #4
RE: How Do I Use More1 & More2 In a Char Script To Give Char Spells
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 

Usage: SETSPELLS x,y,z,..,n
Where x,y,z,..,z are the spell numbers.
Example: SETSPELLS 1,2,3,4,5

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
10-02-2013 11:00 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #5
RE: How Do I Use More1 & More2 In a Char Script To Give Char Spells
Firstly:

@Extreme this is 51a

Secondly:

Why drag up old threads by giving the same answer as has already been given?

[Image: 2nis46r.jpg]
10-02-2013 11:23 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #6
RE: How Do I Use More1 & More2 In a Char Script To Give Char Spells
Oh crap
Sorry :/

That guy 'sus' that resurrects the thread, not me ¬¬

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
10-02-2013 11:37 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)