SphereCommunity
Skill to use - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Skill to use (/Thread-Skill-to-use)



Skill to use - victorstelzer - 07-02-2012 11:03 AM

[ITEMDEF i_vulcan_bow]
ID=i_bow
NAME=Vulcan Bow
SKILLMAKE=SKILL_BOWCRAFT 100.0,SKILL_ARMSLORE 75.0
RESOURCES=12 ingot_vulcan,15 i_log
CATEGORY=New Colored Weapons
SUBSECTION=Vulcan
DESCRIPTION=Vulcan Bow
TEVENTS=T_PROPRIEDADES
DAM=18,25
REQSTR=80
TWOHANDS=N
SPEED=30
WEIGHT=7

I need to put skill of archery under 100 does not equip the bow

how to make the script?


RE: Skill to use - RanXerox - 07-02-2012 11:12 AM

Add this to the ITEMDEF itself:

Code:
ON=@EquipTest
   IF (<SRC.Archery> < 100.0)
      SRC.SYSMESSAGE You are not skilled enough to use this weapon!
      RETURN 1
   ENDIF



RE: Skill to use - victorstelzer - 07-02-2012 01:09 PM

Thanks It worked