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
t_scroll's spell power
Author Message
Artyk
Journeyman
*

Posts: 75
Likes Given: 43
Likes Received: 9 in 9 posts
Joined: Sep 2014
Reputation: 0



Post: #1
t_scroll's spell power
Hi guys, I'm trying to create some new spells and related scrolls and at the moment i'm stuck on the meaning of MOREY for the type t_scroll

that's what is written in the wiki:
Quote:MOREY = Power of the spell (equivalent to the EFFECT setting of the spell itself?)

looking at the other scrolls i found on MOREY a random value in a range that never exceed 100

peeking on the source i found in graysvr/CObjBase.h :

Code:
        // IT_SCROLL
        // IT_COMM_CRYSTAL
        // IT_CAMPFIRE
        // IT_LAVA
        struct
        {
            short m_PolyStr;    // more1l=polymorph effect of this. (on strength)
            short m_PolyDex;    // more1h=polymorph effect of this. (on dex)
            int  m_spellcharges; // more2=not sure how used here..
            WORD m_spell;        // morex=SPELL_TYPE = The magic spell cast on this. (daemons breath)(boots of strength) etc
            WORD m_spelllevel;    // morey=0-1000=level of the spell.
            BYTE m_pattern;        // morez = light pattern - CAN_I_LIGHT LIGHT_QTY
        } m_itSpell;

So my questions are:
How does morey actually work?
Are the other scrolls wrong or are they intentionally set to those values?
02-15-2016 09:39 AM
Find all posts by this user Like Post Quote this message in a reply
karma
Moderator
****

Posts: 178
Likes Given: 17
Likes Received: 32 in 29 posts
Joined: Jul 2012
Reputation: 3



Post: #2
RE: t_scroll's spell power
Probably it is a random value set just to not have someone casting a spell with 0 (otherwise the default) power. I guess it is the ARGN3 of @SpellEffect: A multiplier for the spell's duration or effect. Note: Only used when a character is hit by a spell.
02-16-2016 10:10 PM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #3
RE: t_scroll's spell power
MOREY is the same as the char skill. If the scroll have MOREY=50.0 set, it's the same thing that cast this spell on a char with 50.0 magery

I can't remember exactly, but scrolls have random MOREY by default (set by @Create on scripts), or if crafted by players it will be created with the same MOREY of the player skill (eg: a player with 30.0 Inscription will craft scrolls with MOREY=30.0)
02-17-2016 01:54 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Coruja's post
Post Reply 


Forum Jump:


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