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
Archaaz
Journeyman
*

Posts: 98
Likes Given: 12
Likes Received: 4 in 4 posts
Joined: Aug 2013
Reputation: 1



Post: #6
RE: Creating New Gathering Skill
I used the Butcher Knife graphic (0x13f6) and renamed it. Will this affect or replace the butcher knife item, or are there now two items that share that same graphic? I know that this was not a problem in POL, but not sure with Sphere.

Quote:[ITEMDEF 0x13F6
DEFNAME=i_pruning_knife
NAME=Pruning Knife
TYPE=T_WEAPON_FENCE
FLIP=1
DAM=10,11
SPEED=2.0
SKILL=Fencing
REQSTR=10
TWOHANDS=N
WEIGHT=1
RESOURCES=3 i_ingot_iron
SKILLMAKE=BLACKSMITHING 0.0
DUPELIST=0x13F7
TEVENTS=t_pruningknife
CATEGORY=Provisions - Weapons
SUBSECTION=Daggers
DESCRIPTION=Dagger

ON=@Create
HITPOINTS={36 48}

[ITEMDEF 0x13F7]
DUPEITEM=0x13F6


Quote:[ITEMDEF 0cf3]
//fallen log
DEFNAME=i_log_fallen
VALUE=1
CATEGORY=Vegetation
SUBSECTION=Trees
DESCRIPTION=Fallen Log

[ITEMDEF 0cf4]
//fallen log
DUPEITEM=0cf3

[ITEMDEF 0cf5]
//fallen log
DUPEITEM=0cf3

[ITEMDEF 0cf6]
//fallen log
DUPEITEM=0cf3

[ITEMDEF 0cf7]
//fallen log
DUPEITEM=0cf3


Quote:REGIONTYPE r_default-fallen-log t-fallen_log
// Default fallen log resources
RESOURCES=5.0 mr_blood_moss


Quote:REGIONRESOURCE mr_fallen_log (or should it be log_fallen?)
SKILL=80.0,100.0 (what exactly does this mean?)
AMOUNT=1,5
REAP=i_blood_moss
REGEN=60*60*10


Quote:[TYPEDEF t_pruning_knife]
ON=@DClick
TARGET
RETURN 1
ON=@TargOn_Ground
If <targp.type>> == t_fallen_log
If <src.distance <src.targp>> >= 3
src.sysmessage That is too far away.
return 1
endif
If !<src.canseelos <src.targp>>
src.sysmessage You cannot see that.
return 1
endif

I am sure this is not quite right, and am a bit lost afer this. I assume it needs to perform a check against the character's Foraging Skill. Maybe:

Quote:if <r<src.foraging>> > <eval <src.foraging>

And maybe an ON=@Success command? Does it need to check whether there is enough resource to harvest, perhaps using a worldgem command?

I think I see the process, just not sure about the syntax, and what is performed automatically:

1. I have targeted an appropriate item.
2. Is there is enough of the item to harvest? If yes:
3. Is my skill high enough for the attempt? If yes:
4. Perform a skill check against Foraging (determined by Skill in RegionResource?).
5. If successful one blood moss is added to backpack.
6. On fail receive failure message in Foraging Skill file.
09-05-2013 09:48 PM
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 - 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)