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
Which trigger is fired by fishing
Author Message
admin phoenix
Master
**

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



Post: #1
Which trigger is fired by fishing
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
04-20-2012 05:34 AM
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: Which trigger is fired by fishing
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
04-20-2012 08:44 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: #3
RE: Which trigger is fired by fishing
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 }
04-20-2012 05:04 PM
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)