It is fairly basic scripting, and everyone must start somewhere, and not everyone is sure where to start.
What of all the scripts Stefan has posted to help people become more advanced with newer gscript additions? Should Stefan also Adhire to the rules of not posting full scripts, and leave his documents and script to himself?
Where would you be without those? Asking for help, unless you were a part of designing it, or just somehow knew all the commands before they were finished.
First he has not really said if he is using this offline or online, That would have helped a bit in giving him more help, however I assume he would like to use it online.
NPC Code:
if (actionserverside) {
playerhearts += 3;
removeweapon Healer;
}
//#CLIENTSIDE
if (weaponfired) {
triggeraction 0,0,serverside,Healer;
}
You just need to add the weapon to yourself with a simple addweapon line, you can use whatever means you find neccessary to do this, however I did it like so.
NPC Code:
if (playerenters) {
addweapon Healer;
}
Simple Barebones 1 use Healing item to heal 3 hearts, you can only have one at a time, but you can always go back for more.