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
Polymorph
Author Message
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #5
RE: Polymorph
(11-01-2014 05:24 PM)Kapa Wrote:  Hi,
Do i need a custom polymorph scp to enable players keep their armor and get bigger stats after polymorphing in to daemon?

// MAGICF_POLYMORPHSTATS 00800 // Polymorph spells give out stats based on base chars (old behaviour backwards).


(07-01-2016 10:38 PM)Van Glan Bloom Wrote:  Hi guys,

I was thinking about making some changes in my spell of polymorph, such as user Kapa. I want the player gain some stats according to the transformation the player choose.

I have tested the script make by Coruja, but dont work. I have make some changes, but i fail all the time.
Some one can help me?!

Code:
Added character trigger @EffectAdd: This will be called when any type of effect memory is being added, like stat changes for s_bless, s_cunning... s_weaken ...
    Argo = memory item
    argn1 = spellid
returns:
    return 0: Let default checks to happen.
    return 1: Blocks any action and stops everything, also deletes the memory (Blocking any changes, this will cause also the effect to do not have duration)
    return 2: Let the memory exist but block default checks, perfect to override default effects and do some custom stuff.
To simulate something like '@EffectEnd' just apply an event with @Timer to the memory since the 'default changes' are happening after @UnEquip and, at this point, the item must be removed in any case... so preventing this must be done before (@Timer fits perfectly).

[code]
ON=@EffectAdd
more1l = str bonus
more1h = dex bonus
[code]
This will make sphere handle these stats automatically, if you want other ones you will have to script it.
07-16-2016 08:01 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Polymorph - Kapa - 11-01-2014, 05:24 PM
RE: Polymorph - Coruja - 11-05-2014, 09:39 AM
RE: Polymorph - Kapa - 11-05-2014, 11:42 PM
RE: Polymorph - Van Glan Bloom - 07-01-2016, 10:38 PM
RE: Polymorph - XuN - 07-16-2016 08:01 PM
RE: Polymorph - Russian - 02-15-2018, 04:56 AM

Forum Jump:


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