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
lumberjack problem
Author Message
jexnico
Journeyman
*

Posts: 191
Likes Given: 114
Likes Received: 3 in 3 posts
Joined: Jan 2014
Reputation: 0



Post: #1
lumberjack problem
when i try to use an axe in a tree, i receive one message and my char does not hack the tree...
i know this is involved with the sphere_skills
how do i resolve this issue?

[Image: 9v8g05.png]

lumber:
Quote:ON=@PreStart
IF (<SRC.WEAPON.USESCUR>< 1)
SRC.SYSMESSAGE The tool is out of charges.
return 1
ENDIF

ON=@Success
SRC.WEAPON.USESCUR --
IF (<SRC.WEAPON.USESCUR>==0)
SRC.WEAPON.DESTROY 1
ENDIF
(This post was last modified: 03-12-2018 03:06 AM by jexnico.)
03-12-2018 02:38 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Abuelox
Journeyman
*

Posts: 64
Likes Given: 0
Likes Received: 7 in 7 posts
Joined: Apr 2010
Reputation: 0

Alteria Games

Post: #2
RE: lumberjack problem
use
Code:
if !(<act.UsesMax> == 0)
ACT.MESSAGE @66,0,1 [Uses <act.UsesCur> / <act.UsesMax>]
endif

You need too make UsesMax on @create in any tool.

Example:

Code:
[ITEMDEF 0e85]
DEFNAME=i_pickaxe
TYPE=t_weapon_mace_pick
DAM=13,15
FLIP=1
SKILL=Swordsmanship
SPEED=44
//TAG.OVERRIDE.SPEED=30
VALUE=24
WEIGHT=5.0
TWOHANDS=N
RESOURCES=4 i_ingot_iron,1 i_log
SKILLMAKE=Tinkering 40.0,t_tinker_tools
CATEGORY=Provisions - Weapons
SUBSECTION=Swordsmanship
DESCRIPTION=PickAxe
ReqStr=30
TEVENTS=t_equipitem
DUPELIST=0e86
ON=@Create
   HITPOINTS={36 48}
   UsesMax=50
(This post was last modified: 03-12-2018 04:06 AM by Abuelox.)
03-12-2018 04:05 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Abuelox's post
jexnico
Journeyman
*

Posts: 191
Likes Given: 114
Likes Received: 3 in 3 posts
Joined: Jan 2014
Reputation: 0



Post: #3
RE: lumberjack problem
(03-12-2018 04:05 AM)Abuelox Wrote:  use
Code:
if !(<act.UsesMax> == 0)
ACT.MESSAGE @66,0,1 [Uses <act.UsesCur> / <act.UsesMax>]
endif

You need too make UsesMax on @create in any tool.

Example:

Code:
[ITEMDEF 0e85]
DEFNAME=i_pickaxe
TYPE=t_weapon_mace_pick
DAM=13,15
FLIP=1
SKILL=Swordsmanship
SPEED=44
//TAG.OVERRIDE.SPEED=30
VALUE=24
WEIGHT=5.0
TWOHANDS=N
RESOURCES=4 i_ingot_iron,1 i_log
SKILLMAKE=Tinkering 40.0,t_tinker_tools
CATEGORY=Provisions - Weapons
SUBSECTION=Swordsmanship
DESCRIPTION=PickAxe
ReqStr=30
TEVENTS=t_equipitem
DUPELIST=0e86
ON=@Create
   HITPOINTS={36 48}
   UsesMax=50

where did i add that?
Quote:use
Code:
if !(<act.UsesMax> == 0)
ACT.MESSAGE @66,0,1 [Uses <act.UsesCur> / <act.UsesMax>]
endif
03-12-2018 04:14 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Abuelox
Journeyman
*

Posts: 64
Likes Given: 0
Likes Received: 7 in 7 posts
Joined: Apr 2010
Reputation: 0

Alteria Games

Post: #4
RE: lumberjack problem
its a message from a item (@itemclick, if u want see it on all weapons/tools with uses)

You can make it from a event.
03-12-2018 10:40 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Abuelox's post
jexnico
Journeyman
*

Posts: 191
Likes Given: 114
Likes Received: 3 in 3 posts
Joined: Jan 2014
Reputation: 0



Post: #5
RE: lumberjack problem
solved
100% working
ty Abuelox!!! Big Grin
03-13-2018 06:54 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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