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
Spellflag spellflag_summon doesn´t fire @effect
Author Message
admin phoenix
Master
**

Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3



Post: #1
Spellflag spellflag_summon doesn´t fire @effect
When I create a new spell which have the spellflag | spellflag_summon the @effect trigger will not fire in my spell.

I have to script the rest of the spell with @success

Can anyone confirm this too?

gr

Phoenix
08-24-2012 05:10 PM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #2
RE: Spellflag spellflag_summon doesn´t fire @effect
PHP Code:
[SPELL 114]
DEFNAME=s_vengeful_spirit
NAME
=Vengeful Spirit
SOUND
=019c
RUNES
=
CAST_TIME=4.0
RESOURCES
=i_reag_batwingi_reag_grave_dusti_reag_pig_iron
RUNE_ITEM
=
SCROLL_ITEM=i_scroll_vengeful_spirit
FLAGS
=SPELLFLAG_HARM|SPELLFLAG_TARG_CHAR|spellflag_summon
EFFECT_ID
=0
EFFECT
=0
DURATION
=0
MANAUSE
=41
SKILLREQ
=Necromancy 80.0
INTERRUPT
=100.0,100.0

on
=@start
freezetime 40

on
=@success
freezetime_bitir

on
=@fail
freezetime_bitir

on
=@effect
if !(<uid> = <src>)
    
src.findid.i_reveant.remove
    serv
.newnpc c_revenant
    
new.flags =<new.flags>|statf_conjured
    ref1
=<new>
    
serv.newitem i_reveant
    
new.tag.reveant=<ref1>
    new.
tag.kurban=<uid>
    
src.equip <new>
    
ref1.go <p>
    
ref1.attack <uid>
endif 

for the @effect, spell must be casted on a character or item. works in my revenant spell, which build you are using? last builds have lots of changes about spells. since i have overrided all spells im using may. release.
(This post was last modified: 08-24-2012 05:46 PM by Shaklaban.)
08-24-2012 05:38 PM
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: Spellflag spellflag_summon doesn´t fire @effect
There is no object with spellflag_targ_xyz, so @effect is not trigger for summons. I believe it should trigger when the NPC is first summoned upon the NPC summoned, unfortunately it's not built-in that way. You'll have to use @success and use 'newnpc' to create and alter your summons. That's just the way it is.

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

Marchadium :: http://www.marchadium.ca/ :: Join us!
08-28-2012 12:03 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

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



Post: #4
RE: Spellflag spellflag_summon doesn´t fire @effect
i think he can use LOCAL.CreateObject1 @success for creating the npc!
08-28-2012 12:30 AM
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: #5
RE: Spellflag spellflag_summon doesn´t fire @effect
Yes, that does work, but that only represents the ID of the object to be created. If you want to alter the NPC (uid and it's values) you will have to recode it within the @success trigger.

I am hoping @effect will trigger on the NPC summoned for spells using spellflag_summon, as well as @effect triggered on the fields for spells with spellflag_field. We would be able to script our own little features for these objects.

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

Marchadium :: http://www.marchadium.ca/ :: Join us!
(This post was last modified: 08-28-2012 02:00 AM by Skul.)
08-28-2012 01:58 AM
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: Spellflag spellflag_summon doesn´t fire @effect
Quote:25-07-2012, ShiryuX
- Added: SPELLFLAG_TARG_DEAD so you can create spells for dead people.
- Added: SPELLFLAG_DAMAGE for damage spells, along with HARM effect.
You can override the Damage Type under @(Spell)Effect with LOCAL.DamageType.
- Added: MAGICF_NOANIM so you can disable animation/direction update of the character in every spell.
- Modified: SPELLFLAG_SCRIPTED changes behavoir and allows to mixed with other flags.
- Modified: SPELLFLAG_FX_BOLT will totally work now. EFFECT_ID can be overrided with LOCAL.CreateObject1.
- Modified: SPELLFLAG_AREA can be used and altered. If no specified radius, default is 4.
The effect of course, if it's a custom spell, must be scripted.
- Modified: Spell Summon Creature can be overrided with LOCAL.CreateObject1.
- Modified: Limit for ANIM function, so you can play the new Gargoyle Anims now.
- Fixed: Can modify Flamestrike EFFECT_ID now.
Big Grin

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.
(This post was last modified: 08-28-2012 02:21 AM by Extreme.)
08-28-2012 02:20 AM
Find all posts by this user Like Post Quote this message in a reply
admin phoenix
Master
**

Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3



Post: #7
RE: Spellflag spellflag_summon doesn´t fire @effect
@Extreme
what about if you want to use skillmenu or custom str, dex like
new.str=<eval <src.magery>/50>+<src.evalint>/80>>

So you have to softcode it like skull said Smile
and yes, that´s the reason. I don´t have spellflag_targ_xyz. that´s the reason.
08-28-2012 03:25 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: #8
RE: Spellflag spellflag_summon doesn´t fire @effect
Yeah, strange, maybe the best way is code everything :/

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.
08-29-2012 01:02 AM
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: #9
RE: Spellflag spellflag_summon doesn´t fire @effect
I suggested it should fire @effect on field items for spellflag_field and on summons for spellflag_summon, this will allow us to add and actually use @effect for these two types of spells. We can then alter the damage and effect of flags (since this values is stored as MOREY on t_spell items (fields)) and alter the stats and skills of characters directly using @effect. We'll just have to wait, no promises, the decisions are not mine to decide, I'm only suggesting this.

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

Marchadium :: http://www.marchadium.ca/ :: Join us!
08-29-2012 12:18 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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