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:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating New Gathering Skill
Author Message
RanXerox
Master
**

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



Post: #3
RE: Creating New Gathering Skill
Quote:4. What causes the Lumberjacking skill to trigger when an equipped axe is d-clicked, and from what file? I do not see any such triggers looking through the items (axes and bladed)

The Axe has a TYPE (t_weapon_axe or t_weapon_sword both work)... the hard-coded behavior of that TYPE is what allows it to trigger the lumberjacking skill.

For your new harvesting skill, I would suggest making your own TYPEDEF that can be added to your item of choice (by adding a TEVENT=t_yourtype to the ITMDEF.)

Quote:5. Can an Item be made a Terrain Type in this manner?

No, you cannot add ITEMDEF values to the entries in sphere_types.scp ... the numbers in there are associated to "terrain", not items...

For you to harvest from static logs in the world, you would use REGIONTYPE and REGIONRESOURCES. In the REGIONRESOURCES you can put some code in @ResourceTest and @ResourceFound triggers that uses a FOR loop through the <SRC.TARGP.STATICS> of the location that was targetted to see if a fallen log is there...
FOR <SRC.TARGP.STATICS>

Maybe you can get some more ideas from this thread: http://forum.spherecommunity.net/Thread-...pe-of-tree
(This post was last modified: 09-05-2013 05:25 AM by RanXerox.)
09-05-2013 05:21 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Creating New Gathering Skill - Archaaz - 09-05-2013, 03:44 AM
RE: Creating New Gathering Skill - Archaaz - 09-05-2013, 02:23 PM
RE: Creating New Gathering Skill - RanXerox - 09-05-2013 05:21 AM
RE: Creating New Gathering Skill - Archaaz - 09-05-2013, 09:48 PM
RE: Creating New Gathering Skill - Archaaz - 09-06-2013, 06:47 PM
RE: Creating New Gathering Skill - Archaaz - 09-07-2013, 07:06 PM

Forum Jump:


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