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 10-17-2001, 09:45 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
setlevel2

Argh setlevel2 doesn't work at all in ANY of my scripts...
why?
Is it supposed to be serverside instead of clientside? Am I doing something wrong?
__________________

-=Shard IceFire=-
  #2  
Old 10-17-2001, 10:17 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
I believe it has to be done serverside.
__________________

  #3  
Old 10-18-2001, 06:05 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Correct. Make setlevel2 serverside.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
  #4  
Old 10-18-2001, 08:31 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
ok so to make the 1st half of the script clientside and the 2nd half serverside, would you do it like this?
NPC Code:

//#CLIENTSIDE
stuff;
//#SERVERSIDE
stuff;

__________________

-=Shard IceFire=-
  #5  
Old 10-18-2001, 08:33 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
Wait scripts are serverside by default, right? If that's true, then my script SHOULD work...
here it is, plz help!
NPC Code:

// NPC made by Shard IceFire
if (playerchats&&strequals(#c,Shard's Isle)) {
if (strequals(#m,sit)) {
say2 Ok, we'll be there soon.;
freezeplayer 10;
sleep 10;
say2 We're here!;
sleep .1;
setlevel shipinside2.graal;
}
if (!strequals(#m,sit)) {
say2 Please have a seat first.;
}
}

__________________

-=Shard IceFire=-
  #6  
Old 10-18-2001, 08:56 PM
Metal-Slug Metal-Slug is offline
!_!
Metal-Slug's Avatar
Join Date: Jun 2001
Posts: 2,421
Metal-Slug is on a distinguished road
i dont see a problem, if it is setlevel2 shouldnt it be like, setlevel2 level,x,y;?
  #7  
Old 10-18-2001, 09:15 PM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
NPC Code:

// NPC made by Shard IceFire
if (playerchats) {
if (strequals(#c,Shard's Isle)) {
if (strequals(#m,sit)) {
say2 Ok, we'll be there soon.;
freezeplayer2;
sleep 10;
unfreezeplayer;
say2 We're here!;
sleep .1;
setlevel2 shipinside2.graal,30,30;
} else if (!strequals(#m,sit)) {
say2 Please have a seat first.;
}
}
}


If I am not mistaken, use freezeplayer2; and unfreezeplayer; in clientside scripts. I don't think Freezeplayer time; works in clientside scripts. I could be wrong though.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
  #8  
Old 10-18-2001, 09:39 PM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Quote:
Originally posted by BocoC
NPC Code:

// NPC made by Shard IceFire
if (playerchats) {
if (strequals(#c,Shard's Isle)) {
if (strequals(#m,sit)) {
say2 Ok, we'll be there soon.;
freezeplayer2;
sleep 10;
unfreezeplayer;
say2 We're here!;
sleep .1;
setlevel2 shipinside2.graal,30,30;
} else if (!strequals(#m,sit)) {
say2 Please have a seat first.;
}
}
}


If I am not mistaken, use freezeplayer2; and unfreezeplayer; in clientside scripts. I don't think Freezeplayer time; works in clientside scripts. I could be wrong though.
yea your correct freeze player doesn't work server side...
__________________
Thanks,
-KJL
  #9  
Old 10-18-2001, 11:48 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
Ok let me go try it out...
__________________

-=Shard IceFire=-
  #10  
Old 10-18-2001, 11:52 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
Hmm...I tried this:
NPC Code:

// NPC made by Shard IceFire
if (playerchats&&strequals(#c,Shard's Isle)) {
if (strequals(#m,sit)) {
say2 Ok, we'll be there soon.;
freezeplayer2;
sleep 10;
unfreezeplayer;
say2 We're here!;
sleep .1;
setlevel shipinside2.graal;
}
if (!strequals(#m,sit)) {
say2 Please have a seat first.;
}
}


But it didn't work...it froze me for 10 seconds, but it didn't say "we're here" and it didn't change the level..
__________________

-=Shard IceFire=-
  #11  
Old 10-20-2001, 12:17 AM
JeffTL JeffTL is offline
Registered User
Join Date: Sep 2001
Posts: 374
JeffTL is on a distinguished road
use disabledefmovement and enabledefmovement. I think those freeze and unfreeze the player.
__________________
  #12  
Old 10-20-2001, 06:48 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Use setlevel2! I don't think setlevel is supported by the npcserver.
NPC Code:

// NPC made by Shard IceFire
if (playerchats&&strequals(#c,Shard's Isle)) {
if (strequals(#m,sit)) {
say2 Ok, we'll be there soon.;
disabledefmovement;
sleep 10;
enabledefmovement;
say2 We're here!;
sleep .1;
setlevel2 shipinside2.graal,playerx,playery;
}
if (!strequals(#m,sit)) {
say2 Please have a seat first.;
}
}

__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
  #13  
Old 10-20-2001, 08:38 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
Thanks Boco, lemme go try it out...
...
...
Ok done let me go online and see if it works...
...
...
=/ doesn't seem to work...
__________________

-=Shard IceFire=-
  #14  
Old 10-20-2001, 08:39 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
What part of it doesn't work?
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
  #15  
Old 10-22-2001, 12:31 AM
ZORG1986 ZORG1986 is offline
Registered User
ZORG1986's Avatar
Join Date: Jul 2001
Location: England - Yes thats the small Island in Europe that Ownz you all.
Posts: 783
ZORG1986 is on a distinguished road
Send a message via ICQ to ZORG1986 Send a message via AIM to ZORG1986
Could add debugging to the script, so it tells you where the script gets upto before it stops working...
__________________


Zorg (Era Staff) - Contact : [email protected]
 


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 08:39 AM.


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