Quote:
Originally posted by SSRobgeta
Yea, I'm use to other Programing languages and I haven't scripted in Gscript for awhile, but I got it fixed see!
NPC Code:
// NPC made by Rob Getashu
if (created || playerenters) {
timeout = 0.1;
}
if (timeout) {
this.ctxtcount = strlen(#c);
if (this.ctxtcount<=8) {
message good #v(this.ctxtcount);
}
if (this.ctxtcount>8) {
message bad;
}
timeout = 0.1;
}
|
Good job, Now forget the timeout loop and use the playerchats event. :-) Save the timeout loop for something that requires one.