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: 1 Guest(s)