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-nmm6 (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-nmm6 (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-nmm6 (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
Spells effects going off if cast 2 times same spell
Author Message
escribano
Journeyman
*

Posts: 170
Likes Given: 16
Likes Received: 32 in 23 posts
Joined: Nov 2012
Reputation: 2

Dragon Shard

Post: #1
Spells effects going off if cast 2 times same spell
Dudes, another strange behavior i noticed this days is when a players cast the same spell two times on self.

ex: Night sight

Pic 1: here i do not casted any spell and the lights is off
[Image: Captura_de_tela_2015_07_27_02_45_53.jpg]

Pic 2: after cast night sight i ".edit" myself and there the spell effect memory was there and the light is on
[Image: Captura_de_tela_2015_07_27_02_46_07.jpg]

Pic 3: after cast night sight for the second time i've ".edit" myself again and there is the speel effect memory again but the light is off
[Image: Captura_de_tela_2015_07_27_02_46_28.png]

This happens on every single spell that can be casted on self, like magic reflection, bless, etc..

I need some help to fix this, i've tryied to update sphere to the last nightly build, but it didn't fixed the problem.

If someone could help i would thank!

UltimaPHP - OpenSource Ultima Online Server v0.1-pre-alpha under development, we need help!
(This post was last modified: 07-27-2015 12:54 PM by escribano.)
07-27-2015 12:52 PM
Find all posts by this user Like Post Quote this message in a reply
Paulo_BR
Apprentice
*

Posts: 30
Likes Given: 14
Likes Received: 1 in 1 posts
Joined: May 2012
Reputation: 0

Ultima Online Brasil

Post: #2
RE: Spells effects going off if cast 2 times same spell
Someone can help us?
07-29-2015 05:18 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #3
RE: Spells effects going off if cast 2 times same spell
Code:
on=@spelleffect
if (<src.findid.i_rune_<strsub 2 0 <serv.spell.<argn1>.defname>>>)
  src.findid.i_rune_<strsub 2 0 <serv.spell.<argn1>.defname>>.remove //remove rune spell icon
endif

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
07-29-2015 01:13 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 2 users Like Skul's post
Coruja
Sphere Developer
*****

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

Dimension Shard

Post: #4
RE: Spells effects going off if cast 2 times same spell
check if your nightsight memory have TIMER=-1 (DURATION=0 on sphere_spells.scp)

it's not really a but, because the correct behavior for nightsight is have TIMER=-1 and only goes off on logout
so the first cast you add the spell and the second cast will remove it
07-30-2015 05:22 AM
Find all posts by this user Like Post Quote this message in a reply
escribano
Journeyman
*

Posts: 170
Likes Given: 16
Likes Received: 32 in 23 posts
Joined: Nov 2012
Reputation: 2

Dragon Shard

Post: #5
RE: Spells effects going off if cast 2 times same spell
Skul and Coruja, thanks for the reply!

Skul: I'll try this tonight and i post the results later.

Coruja: This happens on all spells that can be target on self.

Anyway, this is my Night Sight spell script:
Code:
[SPELL 6]
DEFNAME=s_night_sight
NAME=Night Sight
SOUND=snd_spell_night_sight
RUNES=IL
CAST_TIME=0.5
RESOURCES=i_reag_spider_silk,i_reag_sulfur_ash
RUNE_ITEM=i_rune_night_sight
SCROLL_ITEM=i_scroll_night_sight
FLAGS=spellflag_dir_anim|spellflag_targ_char|spellflag_fx_targ|spellflag_good|sp​ellflag_playeronly
EFFECT_ID=i_fx_heal_effect
EFFECT=0
DURATION=10*60.0,10*60.0
MANAUSE=4
SKILLREQ=MAGERY 10.0
INTERRUPT=100.0,100.0


It happens with Night Sight, Bless, Strength, Magic Reflection and many other spells.


Thanks dudes

UltimaPHP - OpenSource Ultima Online Server v0.1-pre-alpha under development, we need help!
07-30-2015 05:44 AM
Find all posts by this user Like Post Quote this message in a reply
escribano
Journeyman
*

Posts: 170
Likes Given: 16
Likes Received: 32 in 23 posts
Joined: Nov 2012
Reputation: 2

Dragon Shard

Post: #6
RE: Spells effects going off if cast 2 times same spell
Skul, worked like a charm!!!! Smile

thanks so much!!!!!!

UltimaPHP - OpenSource Ultima Online Server v0.1-pre-alpha under development, we need help!
(This post was last modified: 07-30-2015 11:19 AM by escribano.)
07-30-2015 11:18 AM
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)