Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fire Field
Author Message
Art
Journeyman
*

Posts: 118
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #1
Fire Field
Hello. How i can recognize through @GetHit damage was from fire field?
05-12-2013 03:54 PM
Find all posts by this user Like Post Quote this message in a reply
dagger4k
Journeyman
*

Posts: 194
Likes Given: 1
Likes Received: 12 in 12 posts
Joined: Mar 2012
Reputation: 0



Post: #2
RE: Fire Field
on=@spelleffect
IF (<ARGN1>==28)
blah
05-12-2013 06:10 PM
Find all posts by this user Like Post Quote this message in a reply
Art
Journeyman
*

Posts: 118
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #3
RE: Fire Field
@GetHit
05-13-2013 06:11 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: Fire Field
There is no reference to the item source of damage in @GetHit ... only the character source. So unless you put a TAG (or TAGs) on the character for each fire field they are responsible for you can not know.
05-13-2013 06:20 AM
Find all posts by this user Like Post Quote this message in a reply
Ultima One
Journeyman
*

Posts: 238
Likes Given: 7
Likes Received: 10 in 6 posts
Joined: Jan 2013
Reputation: 6

Ultima One

Post: #5
RE: Fire Field
I guess if you REALLY need it in @GetHit you could do something like

Code:
ON=@GetHit
FORITEMS 1
    IF (STRCMP(<ID>, i_fx_field_fire) == 0)
        // damage *could* have been from the fire field.
    ENDIF
ENDFOR

But, ofcourse, this just trigger when you receive damage and are stood on a fire field.. it does not guarantee the damage was caused by the fire field.. but I think that's the closest you are going to get by using @GetHit.

I might be wrong Ran, but if you tag the player with the fire fields they cast, you still wont know if the damage came from that fire field as you have nothing to check against - it would be the same scenario as using the LINK that fields have to their casters.

ULTIMA ONE
The modern, sphere powered Ultima Online server
(This post was last modified: 05-13-2013 06:33 AM by Ultima One.)
05-13-2013 06:29 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Art
Journeyman
*

Posts: 118
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #6
RE: Fire Field
Oh, thanks for advices.
05-13-2013 06:35 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: #7
RE: Fire Field
True, you can't know for sure the damage came from the field... but if the source of the damage was a player who has a tag listing the fire field you are standing on, and the damage includes the fire flag, etc... it is likely.
05-13-2013 08:14 AM
Find all posts by this user Like Post Quote this message in a reply
Wap
Journeyman
*

Posts: 138
Likes Given: 6
Likes Received: 7 in 6 posts
Joined: Mar 2012
Reputation: 3

UORPG.net

Post: #8
RE: Fire Field
(05-12-2013 06:10 PM)dagger4k Wrote:  on=@spelleffect
IF (<ARGN1>==28)
blah
(05-13-2013 06:11 AM)Art Wrote:  @GetHit
(fire field spell)
ON=@Effect
TAG.FFIELD=1

(chars, npcs)
ON=@GetHit
IF <TAG.FFIELD>
...
TAG.FFIELD=
ENDIF
(This post was last modified: 05-13-2013 09:07 AM by Wap.)
05-13-2013 09:04 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #9
RE: Fire Field
This should work:
PHP Code:
ON=@GETHIT
IF (<ARGN2>&dam_fire)
blablabla
ENDIF 
(This post was last modified: 05-15-2013 09:59 AM by Rizz.)
05-15-2013 09:57 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)