SphereCommunity
Check the Resource or Item by Fail in Skillmenu - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Check the Resource or Item by Fail in Skillmenu (/Thread-Check-the-Resource-or-Item-by-Fail-in-Skillmenu)



Check the Resource or Item by Fail in Skillmenu - admin phoenix - 12-01-2012 04:53 AM

Hi folks,

I got a problem.
In my skillmenu sm_cook I have to check by failing the skill what item was create via the skillmenu so that I can consume the right resource.
I only have @skillmenu and @skillmakeitem
but booth are useless
using @skillfail or @skill is also useless because I have no command/function to check which item has failed
anybody knows an answer?

thanks

gr

phoenix


RE: Check the Resource or Item by Fail in Skillmenu - darksun84 - 12-01-2012 05:18 AM

PHP Code:
Extra local arguments to @SkillStart and @Start (skill sectiontriggers for crafting skills:
LOCAL.CRAFTITEMDEF the UID of defname of the item we are currently craftingReadable/Writable.
Accepts ONLY UIDs of ITEMDEFs, for example:
if (<
LOCAL.CRAFTITEMDEF> == <DEF.i_katana>)
         
LOCAL.CRAFTITEMDEF = <DEF.i_sword_long>
endif 



RE: Check the Resource or Item by Fail in Skillmenu - admin phoenix - 12-01-2012 06:02 AM

what about @fail???