Item repair
#3
I think you should use HOOK_CRAFTING_NO_RECIPE, because that way no unnecessary hooks are called.

Figure out whether there are two of the same items (and only those two) in the crafting grid.

Then use the ItemCategory:IsTool( ItemID ) function to determine it's a tool

Then set the output item to have the ID of the input items, but with less damage (use the damage formula thingy)
Reply
Thanks given by:


Messages In This Thread
Item repair - by xoft - 06-13-2012, 05:26 PM
RE: Item repair - by Taugeshtu - 06-14-2012, 04:01 AM
RE: Item repair - by FakeTruth - 06-14-2012, 04:09 AM
RE: Item repair - by Taugeshtu - 06-14-2012, 04:31 AM
RE: Item repair - by FakeTruth - 06-14-2012, 04:46 AM
RE: Item repair - by Taugeshtu - 06-15-2012, 01:59 AM
RE: Item repair - by xoft - 06-15-2012, 03:03 AM



Users browsing this thread: 1 Guest(s)