Sphereserver / Source-X

Ultima Online server emulator
Apache License 2.0
57 stars 45 forks source link

magic trap @effect not working #697

Closed Soulless-1 closed 3 years ago

Soulless-1 commented 3 years ago

looks like I cant fire @effect under the magic trap spell either.

drk84 commented 3 years ago

Fix sent, remember that there is no behaviour for magic trap / untrap (for now) but the spelleffect/effect triggers are properly fired now.

Soulless-1 commented 3 years ago

looks like i still couldnt get this one to fire

drk84 commented 3 years ago

By default the spells has SPELLFLAG_TARG_ITEM, so you need to cast it on a item

Soulless-1 commented 3 years ago

i casted it on a pouch, and couldnt get it to fire off

`[SPELL 13] DEFNAME=s_magic_trap NAME=Magic Trap SOUND=snd_spell_magic_trap RUNES=IJ CAST_TIME=1.0 RESOURCES=i_reag_garlic,i_reag_spider_silk,i_reag_sulfur_ash RUNE_ITEM=i_rune_magic_trap SCROLL_ITEM=i_scroll_magic_trap FLAGS=spellflag_dir_anim|spellflag_targ_item|spellflag_playeronly EFFECT_ID=0 EFFECT=0 DURATION=0.0 MANAUSE=6 SKILLREQ=MAGERY 10.0 INTERRUPT=100.0,100.0

//Magic Trap can be used to trap containers. When opened, these containers will damage the person attempting to open it. For this reason, magic trapped pouches can be used to counter the Paralyze spell. on=@effect //if (==t_container) //events=+t_magic_trapped_container //endif serv.b effect @ return 1 `

drk84 commented 3 years ago

It works here immagine

Soulless-1 commented 3 years ago

Confirmed that this is fixed, closing out. Thank you Drk