Ok that works fine now, But the second one still doesnt work:
NEW First:
NPC Code:
// NPC made by Spark911
if (created) {
x=27;
y=37;
}
if (playerenters) {
x=27;
y=37;
timeout=0.1;
}
//#CLIENTSIDE
if (timeout) {
if (mousex=>27&&mousex=<28&&mousey=>37&&mousey=<38) {
setstring server.npc,Ralf;
}
else {
setstring server.npc,;
unset string;
}
timeout=0.1;
}
New Second:
NPC Code:
// NPC made by Spark911
if (created) {
x=31;
y=37;
}
if (playerenters) {
x=31;
y=37;
timeout=0.1;
}
//#CLIENTSIDE
if (timeout) {
if (mousex=>31&&mousex=<32&&mousey=>37&&mousey=<38) {
setstring server.npc,Ralf;
}
else {
setstring server.npc,;
unset string;
}
timeout=0.1;
}
New Displayer:
NPC Code:
// NPC made by Spark911
if (playerenters) {
x=31.5;
y=58.25;
timeout=0.1;
}
if (timeout) {
message #s(server.npc);
timeout=0.1;
}
Still only first one works (Eventually it will be put in about 17NPC's)