SphereCommunity
Resfound, chop - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Resfound, chop (/Thread-Resfound-chop)



Resfound, chop - mrkarlo - 07-24-2015 02:59 AM

hello guys! I need to make ting like "at least you must have 75 lumber to chop some color logs. I have some peaces of script:

Code:
ON=@ResourceFound
OBJ=<ARGO.UID>
LOCAL.SKILL = <SRC.LUMBERJACKING>
LOCAL.LOCKLOGS = <SRC.TAG.locklogs>
IF (<LOCAL.SKILL> 50)                                                     
    LOCAL.RAND = <EVAL Rand(<EVAL Rand(100, 150)>, 400)>
    IF (<EVAL (<LOCAL.SKILL> / ...>) + ...> > <EVAL <LOCAL.RAND>>)         
        OBJ.MORE1=mr_tree_color1
        OBJ.AMOUNT={5 10}
    ENDIF

I don't know what the numbers will be after (<EVAL (<LOCAL.SKILL>, please help me.


RE: Resfound, chop - escribano - 07-24-2015 05:58 AM

Mrkarlo, you can change this configs in sphere_region.scp

Code:
[REGIONTYPE r_default_tree t_tree]
// All trees produce wood by default.
RESOURCES=50.0 mr_nothing
RESOURCES=40.0 mr_tree_1
RESOURCES=30.0 mr_tree_2
RESOURCES=20.0 mr_tree_3
RESOURCES=10.0 mr_tree_3

Code:
[REGIONRESOURCE mr_tree_1]
AMOUNT=9,30
REAP=i_log
REAPAMOUNT=1,3
SKILL=1.0,80.0
REGEN=60*60*10

[REGIONRESOURCE mr_tree_2]
AMOUNT=9,30
REAP=i_log_2
REAPAMOUNT=1,3
SKILL=1.0,80.0
REGEN=60*60*10

Helped?

You really want to use a hard-coded script to override the basic script?

Maybe i didn't understood what you want to make :/


RE: Resfound, chop - mrkarlo - 07-24-2015 06:12 AM

Escribano thanx, ye I want to override with Resfound like in example. But I need some help wit it. What numbers must be substituted? (good english). To lumber only with 75, 65 and 85 lumberhacking!


RE: Resfound, chop - mrkarlo - 07-25-2015 03:28 AM

I mean some color logs can be choped only wit 75, 65 and 85 lumber skill.


RE: Resfound, chop - mrkarlo - 07-31-2015 03:23 AM

have any thoughts?:0


RE: Resfound, chop - Artyk - 07-31-2015 07:38 PM

RegionType
RegionSource