Author Topic: help please with craft item restriction script....  (Read 254 times)

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
help please with craft item restriction script....
« on: October 09, 2015, 06:31:43 am »


               

okay here is the issue I am having and personally I do not know how to accomplish this so hoping there is a nice fella (or lass) here willing to help me out with the following issue:


 


The issue:


I am using the CNR crafting system and would like to have a limitation on 3 crafting items being able to be used. The crafting items are being handed out per conversation to the player once he/she/it has paid for them obviously. Though seeing that there are 10 tradeskills I would like to limit it to 3 per character. 


 


So it would encourage trade and whatnot for the players.


 


 


So what I need is:


A script that checks how many crafting items the player has and at the limit of 3 the pc will recieve no 4th crafting item.


 


Crafting items are:


Sewing Kit


Set of Tinker Tools


Smiths Hammer


Set of Carpenter's Tools


Set of Gem Crafter’s Tools


 


on top of that not all craft skills are using items so would like to know how I can include those without a crafting item into this system.


 


the crafts are: 


 


WEAPON CRAFTING


ARMOR CRAFTING


TINKERING


ALCHEMY


ENCHANTING


GEM CRAFTING


WOOD CRAFTING


TAILORING


SCRIBING


TAILORING


 


The ones in red are the ones who do NOT have a crafting item needed in order to use the craft.


 


so if anyone wants to help me work this out I would so totally appreciate that '<img'> 



               
               

               
            

Legacy_Claiming Light

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
help please with craft item restriction script....
« Reply #1 on: October 10, 2015, 09:33:50 pm »


               

Probably the best way to do this is to apply local variables to the PC that is claiming the item. You'll be able to get this done that way without much fuss.


 


This will also allow you to put a check in the item's Use script that investigates the PC for the local variable in question-- thus ensuring that the crafting item itself can't used by a player that doesn't have the appropriate training.



               
               

               
            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
help please with craft item restriction script....
« Reply #2 on: October 11, 2015, 12:36:44 am »


               


Probably the best way to do this is to apply local variables to the PC that is claiming the item. You'll be able to get this done that way without much fuss.


 


This will also allow you to put a check in the item's Use script that investigates the PC for the local variable in question-- thus ensuring that the crafting item itself can't used by a player that doesn't have the appropriate training.




 


well I kinda figured as much but the reason I asked was cause I do not really know how to do this XD