Note: I mean in a local DB NPC, not a weapon.
I want to do something like this: (Well, what I need this for isn't for this script, but still... this is an example of the scenario)
NPC Code:
if (created || playerenters) {
setshape 1,32,32;
setstring this.test,hahaha.;
triggeraction x+.5,y+.5,test,#v(id),#s(this.test);
}
//#CLIENTSIDE
if (created) {
setshape2 2,2,{22,22,
22,22};
}
if (actiontest) {
if (strtofloat(#p(0)) == id) // So that it is received only by this NPC.
message received - #p(1);
}
... But that doesn't seem to work.
Is there a way to make this work? I can't use save[#0-299], because I believe you can only transfer variables with those, unless I'm mistaken.