Thread: Err help?
View Single Post
  #12  
Old 02-12-2003, 11:27 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
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.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote