![]() |
Serverside npc questions
On making very simple actions work such as say, say2, noplayerkilling, and sparringzone :
serverside, I find that they do not work on a map level. I have tried them with loadmap and a gmap file, also with the old setmap command, with and without the //#CLIENTSIDE declaration. They work offline but not on my server. Anyone know why and how to make those very simple things work on a mapped level? |
noplayerkilling & sparringzone are clientside-only commands.
|
okay...
so why does the npc
NPC Code: not work on the server? What is the correct format? |
You're probably better off putting that inside an event block, e.g.:
NPC Code: Beyond that, dunno what your problem might be. |
thank you, that worked for the noplayerkilling event.
But wouldn't you know it, that does not work for sparring zones? Anyone know how to make a sparringzone on a map level in a server? in non-map level I have this one line npc NPC Code: and that room works fine. put that npc on a mapped level, does not work. Cliendtside line, nope. Event block with or without clientside, nope. anyone know how to make it work? |
NPC Code: Should do it... |
nope
you would think that would work, but it does not.
I thnk sparringzone has to do with the server becasue you can press R to see your and other's ratings? Anyone else want to take a guess before I pm stefan on this apparent error? |
Nah, sparring zones are handled clientside - the server's got no idea whether or not you're in a sparring zone - only the client knows this.
|
Did you try...
NPC Code://#CLIENTSIDE This command sort of confused me before because it was required that it did not have semi-colon or any spaces when I used it. |
Quote:
|
Make sure theres no spaces after sparringzone or it won't work.
|
Quote:
Other than that, sparringzone is not a script command and thus has to be in an npc by itself. Stefan probably got lazy implementing proper parsing :D |
I have tred every suggestion in this thread, and none of them work on a mapped level on a server. Thank you all for your time in trying to help, I will pm Stefan about this now.
|
On SL, I've had to make 2 seperate NPC's containing these codes respectively to get the sparring zone to fully work:
NPC Code:sparringzone NPC Code://#CLIENTSIDE Err. Or maybe the first one isn't needed. Either way, I'm still the biggest idiot to ever exist :) |
Quote:
|
Quote:
NPC Code:should work.sparringzone |
aha!
Stefan replied to my pm; I was right, it's a programming oversight, he said:
Quote:
|
| All times are GMT +2. The time now is 09:26 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.