Aller au contenu

Photo

help please with craft item restriction script....


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Who said that I

Who said that I
  • Members
  • 492 messages

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 :) 



#2
Claiming Light

Claiming Light
  • Members
  • 11 messages

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.



#3
Who said that I

Who said that I
  • Members
  • 492 messages

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