Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > NPC Server
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 01-02-2002, 05:56 AM
IceFire_TK IceFire_TK is offline
Banned
Join Date: Nov 2001
Location: O' Canada
Posts: 375
IceFire_TK is on a distinguished road
Send a message via AIM to IceFire_TK Send a message via Yahoo to IceFire_TK
setlevel

How come setlevel doesn't work properly on the NPC server?
  #2  
Old 01-02-2002, 07:21 AM
Andor_GP1 Andor_GP1 is offline
Registered User
Join Date: Nov 2001
Posts: 35
Andor_GP1 is on a distinguished road
Well, if you trying to do it under a //#CLIENTSIDE NPC thats your problem.
__________________

~Pikaz
(formually used account Bravo_LAT-Admin)
~Banana Admin at Andor XD
  #3  
Old 01-04-2002, 09:54 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Use setlevel2, and use it serverside.
  #4  
Old 01-05-2002, 09:49 AM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
Well then how do you do a warp ring?
if (weaponfired) has to be clientside, but setlevel / setlevel2 has to be serverside!
__________________

-=Shard IceFire=-
  #5  
Old 01-05-2002, 09:53 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
...

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;
}
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
  #6  
Old 01-05-2002, 10:02 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
1. setlevel can't be serverside (no NPC-Server commad)
2. Why setlevel2 has to be serverside? Should work clientside too
__________________
No Webhost at the moment
  #7  
Old 01-05-2002, 10:07 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
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...
  #8  
Old 01-06-2002, 12:13 AM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
Yes! Thanks Loriel that does work...I had tried that before but I couldn't figure it out.
__________________

-=Shard IceFire=-
  #9  
Old 01-06-2002, 01:50 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Hehe, actually it's very spiffy to work on the same NPC Server as Stefan does.
  #10  
Old 01-06-2002, 02:59 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
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.
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
  #11  
Old 01-06-2002, 04:20 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
nope the action is sent only to the requesting client.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
  #12  
Old 01-06-2002, 05:20 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
o

okay, kewl.
i see where its going now.
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
  #13  
Old 01-06-2002, 05:54 AM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
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.
__________________

-=Shard IceFire=-
  #14  
Old 01-06-2002, 07:02 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
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
__________________
No Webhost at the moment
  #15  
Old 01-06-2002, 10:27 AM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
Quote:
Originally posted by TDO2000


Um just never use NPC-Server
If you run a p2p world that's impossible...
__________________

-=Shard IceFire=-
  #16  
Old 01-07-2002, 06:27 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by Shard_IceFire

If you run a p2p world that's impossible...
i think he was being sarcastic...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
  #17  
Old 01-07-2002, 09:32 PM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
Quote:
Originally posted by Saga2001


i think he was being sarcastic...
I really hope so...
__________________

-=Shard IceFire=-
  #18  
Old 01-08-2002, 05:55 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
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"*
  #19  
Old 01-08-2002, 09:19 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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.
  #20  
Old 01-09-2002, 05:09 AM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
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..
__________________

-=Shard IceFire=-
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:02 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.