Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   setlevel (https://forums.graalonline.com/forums/showthread.php?t=20152)

IceFire_TK 01-02-2002 05:56 AM

setlevel
 
How come setlevel doesn't work properly on the NPC server?

Andor_GP1 01-02-2002 07:21 AM

Well, if you trying to do it under a //#CLIENTSIDE NPC thats your problem.

Loriel 01-04-2002 09:54 PM

Use setlevel2, and use it serverside.

Shard_IceFire 01-05-2002 09:49 AM

Well then how do you do a warp ring?
if (weaponfired) has to be clientside, but setlevel / setlevel2 has to be serverside!

mikepg 01-05-2002 09:53 AM

...
 
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;
}

TDO2000 01-05-2002 10:02 AM

1. setlevel can't be serverside (no NPC-Server commad)
2. Why setlevel2 has to be serverside? Should work clientside too

Loriel 01-05-2002 10:07 PM

The right thing to do it would be
NPC Code:

if (actionserverside) {
setlevel2 level,x,y;
}
//#CLIENTSIDE
if (weaponfired) {
triggeraction 0,0,serverside,weaponname;
}



TDO ... *is disappointed* ... setlevel2 must be serverside because the server cannot allow players warping clientside to whereever they want...

Shard_IceFire 01-06-2002 12:13 AM

Yes! Thanks Loriel that does work...I had tried that before but I couldn't figure it out.

Loriel 01-06-2002 01:50 AM

Hehe, actually it's very spiffy to work on the same NPC Server as Stefan does.

mikepg 01-06-2002 02:59 AM

Quote:

Originally posted by Loriel
The right thing to do it would be
NPC Code:

if (actionserverside) {
setlevel2 level,x,y;
}
//#CLIENTSIDE
if (weaponfired) {
triggeraction 0,0,serverside,weaponname;
}



TDO ... *is disappointed* ... setlevel2 must be serverside because the server cannot allow players warping clientside to whereever they want...

.........wouldnt that trigger EVERYONE'S ring? Just curious, im not sure, but it DOES look like it would.

Saga2001 01-06-2002 04:20 AM

nope the action is sent only to the requesting client.

mikepg 01-06-2002 05:20 AM

o
 
okay, kewl.
i see where its going now.

Shard_IceFire 01-06-2002 05:54 AM

Quote:

Originally posted by Loriel
Hehe, actually it's very spiffy to work on the same NPC Server as Stefan does.
lol I'll bet it is...
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.

TDO2000 01-06-2002 07:02 AM

Quote:

Originally posted by Loriel
The right thing to do it would be
NPC Code:

if (actionserverside) {
setlevel2 level,x,y;
}
//#CLIENTSIDE
if (weaponfired) {
triggeraction 0,0,serverside,weaponname;
}



TDO ... *is disappointed* ... setlevel2 must be serverside because the server cannot allow players warping clientside to whereever they want...

Um just never use NPC-Server :(

Shard_IceFire 01-06-2002 10:27 AM

Quote:

Originally posted by TDO2000


Um just never use NPC-Server :(

If you run a p2p world that's impossible...

Saga2001 01-07-2002 06:27 AM

Quote:

Originally posted by Shard_IceFire

If you run a p2p world that's impossible...

i think he was being sarcastic...

Shard_IceFire 01-07-2002 09:32 PM

Quote:

Originally posted by Saga2001


i think he was being sarcastic...

I really hope so...

Faheria_GP2 01-08-2002 05:55 AM

Quote:

Originally posted by Shard_IceFire

If you run a p2p world that's impossible...

*get on RC*

*right click on NPC-Server*

*click "disconnect player"*

Admins 01-08-2002 09:19 PM

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.

Shard_IceFire 01-09-2002 05:09 AM

Quote:

Originally posted by Faheria_GP2


*get on RC*

*right click on NPC-Server*

*click "disconnect player"*

No that wouldn't work. Then NO NPC's would work at ALL..


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.