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
SRC.EFFECT=3,03709 ,6,43,2 breakdown.
Author Message
Murmur
Apprentice
*

Posts: 33
Likes Given: 3
Likes Received: 2 in 2 posts
Joined: Feb 2013
Reputation: 0



Post: #1
SRC.EFFECT=3,03709 ,6,43,2 breakdown.
Whats up guys.

Today I was messing with some custom weapons.

This one is very incomplete for what I want in the end (if I have issues with the random proc/damage aspect, you'll see it here Tongue) but I had a question.

I was looking for a tutorial to tell me what these arguments are for the src.effect call.

Would someone either link me to the right place or explain what 3,6,43 and 2 mean in this?

SRC.EFFECT=3,03709 ,6,43,2

The only part I have figured out is 03709, which is the spell effect for flamestrike.

Thanks in advance.

[ITEMDEF i_viking_sword_of_flamestrike]
DEFNAME=i_viking_sword_of_flamestrike
NAME=Viking Sword of Flamestrike
ID=i_sword_viking
DAM=15, 25
SPEED=37
SKILL=Swordsmanship
REQSTR=100
TWOHANDS=N
WEIGHT=1

//RESOURCES=30 i_ingot_iron,1005

SKILLMAKE=Blacksmithing 150.0

CATEGORY=Sword
SUBSECTION=Weapons
DESCRIPTION=Viking Sword of Flamestrike

ON=@Create
NAME=Viking Sword of Flamestrike
HITPOINTS={100 200}
COLOR=33

ON=@EQUIP
SRC.SOUND 856

ON=@DAMAGE
SRC.EFFECT=3,03709 ,6,43,2

*you glance to your left to a region you just surveyed... you glimpse a magical being, more shadow than substance, caught midway in transformation... the figure smiles, the corners of his mouth jut upwards slightly on the edges, suddenly stretched to a length not at all human...*
03-01-2013 06:00 AM
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: #2
RE: SRC.EFFECT=3,03709 ,6,43,2 breakdown.
03-01-2013 06:14 AM
Find all posts by this user Like Post Quote this message in a reply
Murmur
Apprentice
*

Posts: 33
Likes Given: 3
Likes Received: 2 in 2 posts
Joined: Feb 2013
Reputation: 0



Post: #3
RE: SRC.EFFECT=3,03709 ,6,43,2 breakdown.
Thanks darksun84.

I had looked at that page before but could not figure it out.

Now that I have spent some time experimenting, I'll post my findings for people doing the same thing I did in the future.

Here is my code:

SRC.EFFECT=3,03709 ,9,30,2

Here is what the tutorial says:

EFFECT type, item_id, speed, loop, explode, colour(hue), rendermode

Ok, so 'EFFECT type' is 3, this means the effect will follow the character as he moves, the way a flamestrike does when the spell is cast. The bottom of the effect is somewhere around the character's knees.

item_id is 03709. which I pulled from the flamestrike spell script in sphere_spells.scp.

9 is the speed, which I didn't tinker with at all because it looked accurate to me.

30 is the loop, this was my problem, it was playing a full flamestrike animation, then started a second one for like 3 seconds. I changed this from a 49 to a 30 (after lots of trial and error) and I settled on 30.

I could not tell what unit of time measurement 30 represents, but might be 3 seconds.

2 is explode, which the tutorial says: "is a boolean defining whether the projectile should make an explosion animation when reaching the character". I did not tinker with this either, and I don't notice any explosions going on in my script animation at all.

Color and rendermode are two that I did not mess with either, and due to the lack of these values on my original line, that is what threw me off from using the tutorial line.

More to come, hope this keeps someone from getting confused like I did.

SRC.EFFECT=3,03709 ,9,30,2,02

Confirmed, I added a 02 to the end of this and it made the flamestrike animation a dark blue.

So Im guessing if you leave this argument blank, it will use the default value.

*you glance to your left to a region you just surveyed... you glimpse a magical being, more shadow than substance, caught midway in transformation... the figure smiles, the corners of his mouth jut upwards slightly on the edges, suddenly stretched to a length not at all human...*
(This post was last modified: 03-01-2013 10:47 AM by Murmur.)
03-01-2013 10:44 AM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #4
RE: SRC.EFFECT=3,03709 ,6,43,2 breakdown.
Note... SRC.EFFECT is redundent since the EFFECT function *always* runs on the SRC. If you try and do SRC.TARG.EFFECT then the SRC.TARG bit is ignored. Similarly, ACT.EFFECT is pointless and REF1.EFFECT is right out... Bottom line, you cannot cause EFFECT to operate on anything except SRC.
03-01-2013 01:10 PM
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: #5
RE: SRC.EFFECT=3,03709 ,6,43,2 breakdown.
yes, you can using try Smile
03-01-2013 08:06 PM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #6
RE: SRC.EFFECT=3,03709 ,6,43,2 breakdown.
Technically, using TRY changes the SRC... it does not change the way the EFFECT function works.
03-02-2013 09:37 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: SRC.EFFECT=3,03709 ,6,43,2 breakdown.
sorry, using sendpacket.
I am using it to change the source of the effect so the effect will fly from another direction
03-04-2013 06:13 PM
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: #8
RE: SRC.EFFECT=3,03709 ,6,43,2 breakdown.
i use this for changing the source effect in the @hit trigger

src.trysrc <uid> effect 0 i_arrow_x
03-04-2013 07:03 PM
Find all posts by this user Like Post Quote this message in a reply
Crusader
Master
**

Posts: 254
Likes Given: 7
Likes Received: 19 in 12 posts
Joined: Apr 2012
Reputation: 6

Erehwon New Hera

Post: #9
RE: SRC.EFFECT=3,03709 ,6,43,2 breakdown.
since u are playing with effect, u might be interested in this:
http://forum.spherecommunity.net/Thread-...collection
03-04-2013 08:46 PM
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: #10
RE: SRC.EFFECT=3,03709 ,6,43,2 breakdown.
there is a script anywhere with spirit speak.
you wil be heal from the corpse that are lying around.
there is a effect that is reversed via sendpacket so that the anim will fly from the corpse (item) to the source.
03-04-2013 09:32 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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