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
wall magic & poisoning magic
Author Message
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #8
RE: wall magic & poisoning magic
local.duration does nothing because stone wall spells doesn't trigger the @effect/@spelleffect trigger (therer is no @effect for the ground, it fires only for npcs and items affected by a spell) and local.duration doesn't exist in the @success trigger:

Code:
Changed: Some changes on spell triggers (@Effect [spells] / @SpellEffect [chars]) to allow more user customization
    -Added new LOCAL.Duration to change spell duration
So you have two options:
1)Change the duration property in the Stone wall spell, take note that this property is based on the caster's magery value, so more higher the magery skill more chance that it will get an higher timer.

2)Open sphere_item_building_walls.scp, search for ITEMDEF 080 and place a @create trigger on it with the timer value (with timerf on it otherwise will not work)
Example:
Code:
[ITEMDEF 080]
//This is the hardcoded ITEMDEF used by Wall of Stone spell
//It has been excluded from the i_wall_hugebrick DUPELIST on purpose
ON=@Create
attr |= attr_decay //We need to add the decay flag manually
timerf 1,<R10,20> // We need the timerf function otherwise the spell duration will override our duration.
(This post was last modified: 05-19-2017 07:12 AM by darksun84.)
05-19-2017 07:00 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes darksun84's post
Post Reply 


Messages In This Thread
wall magic & poisoning magic - Satvet - 05-10-2017, 03:27 AM
RE: wall magic & poisoning magic - Satvet - 05-13-2017, 07:51 PM
RE: wall magic & poisoning magic - Coruja - 05-17-2017, 12:44 PM
RE: wall magic & poisoning magic - Satvet - 05-18-2017, 03:05 AM
RE: wall magic & poisoning magic - Satvet - 05-29-2017, 03:34 PM
RE: wall magic & poisoning magic - Satvet - 05-19-2017, 06:25 AM
RE: wall magic & poisoning magic - darksun84 - 05-19-2017 07:00 AM
RE: wall magic & poisoning magic - Satvet - 05-19-2017, 08:37 AM
RE: wall magic & poisoning magic - Coruja - 05-20-2017, 07:33 AM

Forum Jump:


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