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=-
 


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 04:31 PM.


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