SphereCommunity
Which trigger is fired by fishing - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Which trigger is fired by fishing (/Thread-Which-trigger-is-fired-by-fishing)



Which trigger is fired by fishing - admin phoenix - 04-20-2012 05:34 AM

Hello there,

I want, that the item/fish you are fishing will bounce in your backpack.
The trigger resourcefound can´t be use because the "new" item is not affected.
I don´t want to softcode the complete thing so maybe the trigger resourcefound will be updated.
I can only see with reap what the item is but not the actually item I fished.
Someone knows a solution?

gr

phoenix


RE: Which trigger is fired by fishing - dagger4k - 04-20-2012 08:44 AM

Have you tried setting the trigger on the regionsource. so,
Code:
[REGIONRESOURCE mr_fish]
SKILL=1.0,150.0
AMOUNT=2,3
REAP={ i_fish_big_1 1 i_fish_big_2 1 i_fish_big_3 1 i_fish_big_4 1 }
REGEN=60*60

ON=@ResourceFound
src.bounce



RE: Which trigger is fired by fishing - admin phoenix - 04-20-2012 05:04 PM

yes, I tried.
Check out the Wiki.
ARGO The worldgem bit that represents the resource in the world.
I The region resource being gathered.
SRC The character gathering the resource.

This means that "I" relates to the [Regionresource mr_fish]

SO, you can ask via script

ON=@ResourceFound
src.say <reap> --> answer will be ={ i_fish_big_1 1 i_fish_big_2 1 i_fish_big_3 1 i_fish_big_4 1 }

btw does this works by
reap={ i_fish_big_1 1 i_fish_big_2 1 i_fish_big_3 1 i_fish_big_4 1 }

I tried it long time ago and I got only a gold coin.
so my solution is an fake item
[REGIONRESOURCE mr_fish]
amount=2,3
reap=i_fake_fish

[ITEMDEF i_fake_fish]
ID=i_gold

on=@create
id=={ i_fish_big_1 1 i_fish_big_2 1 i_fish_big_3 1 i_fish_big_4 1 }