SphereCommunity
not here - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: not here (/Thread-not-here)



not here - mrkarlo - 10-11-2012 05:13 AM

hey, i have a problem
i dont want to chop in towns.
Code:
ON=@TARGON_GROUND

IF (<SRC.ACTION>==SKILL_LUMBERJACK)
IF (<SRC.REGION.FLAGS>==09092) || (<SRC.REGION.FLAGS>&04000)
SRC.SYSMESSAGE Try chopping a tree not here.
RETURN 1
ENDIF
ENDIF

But he still chops. Please help!


RE: not here - WRWR - 10-11-2012 05:27 AM

just remove r_default_tree from map script of you towns


RE: not here - mrkarlo - 10-11-2012 05:35 AM

thanks! But mb i can do this wit some scripts commands?


RE: not here - Shaklaban - 10-11-2012 06:26 AM

under lumberjacking skill:
Code:
on=@prestart
if (<region.flags>&region_flag_guarded)
    sysmessage You can't chop in guardzone.
    return 1
endif



RE: not here - mrkarlo - 10-11-2012 06:43 AM

thanks!