![]() |
setlevel
How come setlevel doesn't work properly on the NPC server?
|
Well, if you trying to do it under a //#CLIENTSIDE NPC thats your problem.
|
Use setlevel2, and use it serverside.
|
Well then how do you do a warp ring?
if (weaponfired) has to be clientside, but setlevel / setlevel2 has to be serverside! |
...
trigger some kind of flag maybe?
like if (playertouchsme) {toweapons test; timeout = .1; } if (timeout) { if (client.warp=1) { client.warp=0; setlevel2 level,x,y; } timeout = .1; } //#CLIENTSIDE if (weaponfired) { client.warp=1; } |
1. setlevel can't be serverside (no NPC-Server commad)
2. Why setlevel2 has to be serverside? Should work clientside too |
The right thing to do it would be
NPC Code: TDO ... *is disappointed* ... setlevel2 must be serverside because the server cannot allow players warping clientside to whereever they want... |
Yes! Thanks Loriel that does work...I had tried that before but I couldn't figure it out.
|
Hehe, actually it's very spiffy to work on the same NPC Server as Stefan does.
|
Quote:
|
nope the action is sent only to the requesting client.
|
o
okay, kewl.
i see where its going now. |
Quote:
I've tried out for EVERY staff position on graal2001 cause I really wanted to help out, but not once have I gotten a response. |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
*right click on NPC-Server* *click "disconnect player"* |
Setlevel is not supported on npcserver because
its an old bad command (from the times when commands could only have 1 parameter :) ) Without setting the x/y position its not very useful. Client-side warping is not allowed on upgraded servers, you can only warp to levels where there is a link to in the current level, or trigger some server-side npc which then warps you. This is for making it impossible to enter/leave levels using some cheating program. |
Quote:
|
| All times are GMT +2. The time now is 06:30 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.