Quote:
Originally posted by Spanko
It'd probably be more effective if you did:
NPC Code:
if (weaponfired) {
if (client.chat) {
for (this.i=0; this.i<10000; this.i++) {
hideimg this.i-1;
}
unset client.chat;
}
else {
freezeplayer .05;
set client.chat;
timeout=0.05;
}
}
|
Thanks, but it still doesn't work :/
Here's the entire script so far:
NPC Code:
// NPC made by GregoryYoshi
if (playerenters) {
setshape 1,32,32;
}
if (playertouchsme) {
toweapons InterChat;
}
if (weaponfired) {
if (client.chat) {
for (this.i=0; this.i<10000; this.i++) {
hideimg this.i-1;
}
unset client.chat;
} else {
showimg 500,dk_window.png,(screenwidth/4)-76,(screenheight/2)-120;
changeimgvis 500,4;
wraptext2 imgwidth(dk_window.png)-4,.75,,Waiting for response from other player...;
for (this.i=0; this.i<tokenscount; this.i++) {
showimg this.i,@#t(this.i),(screenwidth/4)-64,(screenheight/2)+(this.i*18)-112;
changeimgzoom this.i,.75;
changeimgvis this.i,5;
sleep .25;
}
freezeplayer .05;
set client.chat;
timeout=0.05;
}
}
if (timeout) {
freezeplayer .05;
timeout = 0.05;
}
/*
wraptext2 imgwidth(dk_window.png)-4,.75,,@#a:#K(160)#c;
for (i=0; i<10000; i++) {
hideimg i-1;
}
*/
This is an NPC I'll be adding to my PW (when it's done) that changes the way players chat on a 1on1 basis...I may just wind up putting in a keydown check routine so that players can exit the chat easily. I'll also have a special chatroom and since I hide the minimap, I may have a small window that displays toalls
