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-nmm6 (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-nmm6 (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-nmm6 (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
lumber (skill make)
Author Message
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #1
lumber (skill make)
hello people. how can i make this - chop some sort of logs only with required
skill? for example ''test logs'' player can chop only wit 70.0 lumberjacking etc.
01-27-2013 09:25 AM
Find all posts by this user Like Post Quote this message in a reply
Crusader
Master
**

Posts: 254
Likes Given: 7
Likes Received: 19 in 12 posts
Joined: Apr 2012
Reputation: 6

Erehwon New Hera

Post: #2
RE: lumber (skill make)
well....u have to do several things:

first in sphere_region.scp u have to add the following:
[REGIONTYPE r_default_tree t_tree]
// All tress produce wood by default.
RESOURCES=1.0 mr_tree
RESOURCES=50.0 ur_test // the number 50.0 means only the % of how many u find in a forest
RESOURCES=50.0 another_test


then u have to add the following items:

[ITEMDEF i_test_log]
NAME=test log
TYPE=t_log
ID=i_log
WEIGHT=1

ON=@CREATE
COLOR=012

[ITEMDEF i_another_log]
NAME=Another test log
TYPE=t_log
ID=i_log
WEIGHT=1

ON=@CREATE
COLOR=020


and finally the regionsource:

[REGIONRESOURCE ur_test]
// lumberjacking default
// t_tree
SKILL=1.0,70.0 // i can take this from 1 of skill, at 70.0 i will more likely take the highest amount (14)
AMOUNT=7,14
REAP=i_test_log
REGEN=60*60*10

[REGIONRESOURCE another_test]
// t_tree
SKILL=60.0,80.0 // i can take this from 60.0 of skill
AMOUNT=4,8
REAP=i_another_log
REGEN=60*60*10


Try Smile
(This post was last modified: 01-30-2013 09:28 AM by Crusader.)
01-27-2013 10:40 PM
Find all posts by this user Like Post Quote this message in a reply
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #3
RE: lumber (skill make)
Code:
SKILL=1.0,70.0
thanks but it doesnt work on 56b!
01-28-2013 08:21 AM
Find all posts by this user Like Post Quote this message in a reply
Crusader
Master
**

Posts: 254
Likes Given: 7
Likes Received: 19 in 12 posts
Joined: Apr 2012
Reputation: 6

Erehwon New Hera

Post: #4
RE: lumber (skill make)
impossible Smile i'm using it atm Smile
01-28-2013 09:44 AM
Find all posts by this user Like Post Quote this message in a reply
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #5
RE: lumber (skill make)
in sphere_region.scp you will see a block for mr_tree in [regionresource xxx], add in your desired logs and try choping some trees. It is possible to chop specific logs by tree types, this can be done by reading the statics.x of a position, for example:
Code:
on=@itemtargon_ground
if (<act.type>==t_weapon_sword) || (<act.type>==t_weapon_axe)
  for x 0 <eval <targp.statics> +-1>
    if (<targp.statics.<local.x>.id>==(id of the tree on the ground))
      if !(<targp.worldgembit t_tree>)
        serv.newitem=i_worldgem_bit
        new.attr=attr_move_never|attr_invis|attr_decay
        new.more1=mr_tree //resource you prefer to use
        new.amount=<eval {5 10}> //amount of logs
        new.timer=<serv.regionresource.mr_tree.delay>
        new.p=<targp>
      endif
    endif
  endfor
endif

[function worldgembit]
foritems 0
  if (<baseid>==i_worldgem_bit)
    if (<type>==<args>)
      local.return=1
    endif
  endif
endfor
return <dlocal.return>

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
01-29-2013 02:09 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #6
RE: lumber (skill make)
thanks Skul! i w try it.
01-30-2013 08:23 AM
Find all posts by this user Like Post Quote this message in a reply
Ultima One
Journeyman
*

Posts: 238
Likes Given: 7
Likes Received: 10 in 6 posts
Joined: Jan 2013
Reputation: 6

Ultima One

Post: #7
RE: lumber (skill make)
Code:
[REGIONRESOURCE mr_gold]
SKILL=50.0 100.0
AMOUNT=3 6
REAP        = i_ore_gold
REGEN        = 60*60*10
ON=@ResourceFound
   IF !( <SRC.TAG0.MINESTONE> = 0 )
      OBJ = <ARGO.UID>
      OBJ.MORE1=rand_stone
   ENDIF

Skill works here.. 56b too. 50% minimum required.

ULTIMA ONE
The modern, sphere powered Ultima Online server
(This post was last modified: 01-31-2013 12:55 AM by Ultima One.)
01-31-2013 12:53 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: 2 Guest(s)