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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Minimal Lumberjacking
Author Message
Rostok
Apprentice
*

Posts: 31
Likes Given: 6
Likes Received: 2 in 1 posts
Joined: Mar 2016
Reputation: 0



Post: #1
Minimal Lumberjacking
Hello all! I'm tryed to create minimal lumberjacking, but failed =((
System: Ubuntu 16
Spheresvr:
Sphere Version 0.56d-Release [Linux] by http://www.spherecommunity.net
Compiled: Feb 13 2017 (12:32:30) [build 333 / GIT hash 4f84c89]


There are my scripts:

lumber_res.scp

PHP Code:
// Craft-Item
[ITEMDEF 0f43]
//Hatchet
DEFNAME=i_hatchet
NAME 
Hatchet
RESOURCES
=10 i_ingot_iron
TYPE
=T_WEAPON_SWORD
FLIP
=1
DAM
=2,4
SPEED
=20
SKILL
=Swordsmanship
REQSTR
=15
TWOHANDS
=N
WEIGHT
=4
CATEGORY
=Provisions Weapons
SUBSECTION
=Axes
DESCRIPTION
=Hatchet
SKILLMAKE
=TINKERING 13.9
DUPELIST
=0f44

[ITEMDEF 01bdd]
DEFNAME=i_log
NAME
=Willow log%s
VALUE
=10
TYPE
=T_LOG
WEIGHT
=.5
CATEGORY
=Resources
DESCRIPTION
=Log

[REGIONRESOURCE mr_tree]
skill=1.0
amount
=10,15
REAP
=i_log
REGEN
=20*20*5

ON
=@ResourceFound
ON
=@ResourceGather
 SRC
.SYSMESSAGE You got <EVAL <ARGN1>> willow logs

REGION_TYPE

PHP Code:
[REGIONTYPE r_default_tree t_tree]
// All trees produce wood by default.
//=60.0 mr_nothing
RESOURCES=15.0 mr_tree    // This large number makes this very common. 

MAP

PHP Code:
[AREADEF a_world]
NAME=My Shard
GROUP
=MyShard
P
=1323,1624,55,0
RECT
=0,0,6144,4096,0
EVENTS
=r_default,r_default_rock,r_default_water,r_default_tree 

SKILL LUMBERJACKING

PHP Code:
[SKILL 44]
DEFNAME=Skill_Lumberjack
KEY
=Lumberjacking
TITLE
=Lumberjack
FLAGS
=skf_gather
DELAY
=1.6
STAT_STR
=100
STAT_DEX
=100
STAT_INT
=100
BONUS_STR
=0
BONUS_DEX
=0
BONUS_INT
=0
BONUS_STATS
=20
ADV_RATE
=// Old value: 2.5,50.0,200.0
VALUES=1,10,50
RANGE
=3

ON
=@PreStart
  SRC
.SYSMESSAGE prestart

ON
=@Success
  SRC
.SYSMESSAGE  success
ON
=@Fail
    SRC
.SYSMESSAGE You hack at the tree for while, but fail to produce any useable wood.

ON=@Abort
    SRC
.SYSMESSAGE You decide not to chop wood for now.

ON=@Stroke
   SRC
.SYSMESSAGE stroke 

Seems that's all...

So problem:
Every time i'm trying to chop a tree with hatchet
i see only text "It appears immune to your blow" ...

There was no any error with similar scripts for mining, but lumberjacking fails...

Please help me, i'm stuck with that basic functionality =((

p.s. i will try to test this with 56c too...

Tryed to get 56c sources - failed =(
(This post was last modified: 02-19-2017 04:30 PM by Rostok.)
02-19-2017 03:44 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Minimal Lumberjacking - Rostok - 02-19-2017 03:44 PM
RE: Minimal Lumberjacking - Rostok - 02-19-2017, 04:57 PM
RE: Minimal Lumberjacking - Rostok - 02-19-2017, 06:01 PM
RE: Minimal Lumberjacking - Coruja - 02-20-2017, 12:58 PM
RE: Minimal Lumberjacking - Rostok - 02-20-2017, 03:14 PM
RE: Minimal Lumberjacking - Rostok - 03-02-2017, 07:47 AM
RE: Minimal Lumberjacking - darksun84 - 03-02-2017, 09:15 PM
RE: Minimal Lumberjacking - Rostok - 03-02-2017, 10:08 PM
RE: Minimal Lumberjacking - Rostok - 03-03-2017, 01:43 AM
RE: Minimal Lumberjacking - darksun84 - 03-03-2017, 02:17 AM
RE: Minimal Lumberjacking - Rostok - 03-03-2017, 03:14 AM
RE: Minimal Lumberjacking - darksun84 - 03-03-2017, 04:05 AM
RE: Minimal Lumberjacking - Rostok - 03-03-2017, 06:54 AM
RE: Minimal Lumberjacking - darksun84 - 03-03-2017, 07:46 AM
RE: Minimal Lumberjacking - Rostok - 03-03-2017, 06:10 PM

Forum Jump:


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