Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   Dumb Lag, NPCServer, annoying, shoot me (https://forums.graalonline.com/forums/showthread.php?t=33824)

Spectre1337 07-19-2002 03:07 PM

Dumb Lag, NPCServer, annoying, shoot me
 
Nothing works with stupid NPC server. I cant use setlevel.. I am making a quest.. I cant use setlevel, I cant use lay2 'item' instead of warping to a room with a chest. Nothing works and I dont know how to fix it. And I was getting errors that said Client Spectre1337 added Baddy (hacker?) when I tried to add my new ice lizard baddy..

Well I deleted all my flags, weapons, and filled my chests and it finally allowed me to enter without getting disconnected. Other players had no problem.

What I would like to know is, with this stupid NPC Server, how do I warp players? Using setlevel2 or anything?

Spectre1337 07-19-2002 03:12 PM

Toran, please get on RC and help me..

Torankusu 07-19-2002 03:13 PM

Uh,
setlevel2 = serverside.
NPC Code:

if (actionserverside)
setlevel2 level,x,y;

//#CLIENTSIDE
if (whatever){
triggeraction 0,0,serverside,weapon,;
}


Domini 07-19-2002 03:15 PM

DURR

NPC SERVER FORUM

DURRR

Spectre1337 07-19-2002 03:16 PM

Quote:

Originally posted by Torankusu
Uh,
setlevel2 = serverside.
NPC Code:

if (actionserverside)
setlevel2 level,x,y;

//#CLIENTSIDE
if (whatever){
triggeraction 0,0,serverside,weapon,;
}


This may sound stupid, but that is over my head.. I've never worked with a NPC Server and had to do all this crap. My last job was at Delteria as a LAT. in about v2.05

Python523 07-20-2002 12:47 AM

only reason the npc server will lag for you:
1.) **** computer
2.) **** scripts
3.) you dont know what commands are which (Serverside or clientside)
4.) don't script serverside unless you know how to, you have shown you have no patience (sp?) and you will just get angryer(sp?) if you continue

nyghtGT 07-22-2002 03:50 PM

Re: Dumb Lag, NPCServer, annoying, shoot me
 
Quote:

Originally posted by Spectre1337
Nothing works with stupid NPC server. I cant use setlevel.. I am making a quest.. I cant use setlevel, I cant use lay2 'item' instead of warping to a room with a chest. Nothing works and I dont know how to fix it. And I was getting errors that said Client Spectre1337 added Baddy (hacker?) when I tried to add my new ice lizard baddy..

Well I deleted all my flags, weapons, and filled my chests and it finally allowed me to enter without getting disconnected. Other players had no problem.

What I would like to know is, with this stupid NPC Server, how do I warp players? Using setlevel2 or anything?

I could be wrong but...
NPC Code:

if (actionserverwarp) {
setlevel2 #p(0),strtofloat(#p(1)),strtofloat(#p(2));
}
//#CLIENTSIDE
if (event) {
triggeraction 0,0,serverwarp,warptolevel,warptox,warptoy;
}


...should handle all your warping needs.

doubleZ 07-23-2002 06:11 AM

Re: Re: Dumb Lag, NPCServer, annoying, shoot me
 
Quote:

Originally posted by nyghtGT

I could be wrong but...
NPC Code:

if (actionserverwarp) {
setlevel2 #p(0),strtofloat(#p(1)),strtofloat(#p(2));
}
//#CLIENTSIDE
if (event) {
triggeraction 0,0,serverwarp,warptolevel,warptox,warptoy;
}


...should handle all your warping needs.

I think u need to make the trigger action coordinates x,y =P. I dunno, i think it still works with 0,0, but i've always used x,y. hehe =D

Python523 07-23-2002 06:24 AM

Re: Re: Re: Dumb Lag, NPCServer, annoying, shoot me
 
Quote:

Originally posted by doubleZ


I think u need to make the trigger action coordinates x,y =P. I dunno, i think it still works with 0,0, but i've always used x,y. hehe =D

he's triggering to the control-npc (in the npc database)

IAMNOTAFREAK 08-03-2002 09:00 AM

Quote:

Originally posted by Python523
only reason the npc server will lag for you:
1.) **** computer
2.) **** scripts
3.) you dont know what commands are which (Serverside or clientside)
4.) don't script serverside unless you know how to, you have shown you have no patience (sp?) and you will just get angryer(sp?) if you continue

my computer runs fine, but every single npc server lags for me...not terribly sometime, but bad enough for me to dislike them...

KrinKrin 08-22-2002 01:27 AM

lol
 
That means you have a bad connection speed or all the NPCServers youve been to are doing a poor job of keeping it lag-free.

RavenTelvecho 08-22-2002 10:27 PM

Re: Re: Dumb Lag, NPCServer, annoying, shoot me
 
Quote:

Originally posted by Kaimetsu


Hi. The problem is actually that you're a stupid scripter.


IAMNOTAFREAK 08-23-2002 07:23 AM

Re: lol
 
Quote:

Originally posted by KrinKrin
That means you have a bad connection speed or all the NPCServers youve been to are doing a poor job of keeping it lag-free.
yeah, i do have a dialup, but the reg. pw's are usually fine (unless there's bad scripts that loops aimlessly forever, etc), and it's not just some npc-server pw's, it seems to be the majority...actually i think there was one pw that wasn't laggy at all...but now i don't remember which one it was, but im sure it's not always like that :(

emortylone 08-23-2002 09:42 AM

LOL, Never dis an NPC Server or the mighty Kaimetsu will open a can =P The NPC Server does not necessarily create a ton of LAG, but it can be laggy if your scripts suck x.X If you get to know it you'll love it XP. if you put:
NPC Code:

//#CLIENTSIDE
if (whatever)
{ triggeraction 0,0,serverwarp,;}


it will trigger the Control-NPC Serverside is the only thing that goes to the CURRENT NPC. If you put serverwarp, it goes to the control-npc. putting 0,0 as the x,y will make it go serverside btw.

NPC Code:

if (actionserverside)
{ setlevel2 onlinestartlocal.graal,30,30;
}
//#CLIENTSIDE
if (playerchats && strequals(#c,warp))
{ triggeraction 0,0,serverside,Ring1,;}


will make it warp the player to OSL @ 30,30 if the NPC Name is Ring1. Ta-da XP You're welcome, all part of the job =P
---Shifter

user13-xo 08-24-2002 02:49 AM

Quote:

Originally posted by emortylone
LOL, Never dis an NPC Server or the mighty Kaimetsu will open a can =P The NPC Server does not necessarily create a ton of LAG, but it can be laggy if your scripts suck x.X If you get to know it you'll love it XP. if you put:
NPC Code:

//#CLIENTSIDE
if (whatever)
{ triggeraction 0,0,serverwarp,;}


it will trigger the Control-NPC Serverside is the only thing that goes to the CURRENT NPC. If you put serverwarp, it goes to the control-npc. putting 0,0 as the x,y will make it go serverside btw.

NPC Code:

if (actionserverside)
{ setlevel2 onlinestartlocal.graal,30,30;
}
//#CLIENTSIDE
if (playerchats && strequals(#c,warp))
{ triggeraction 0,0,serverside,Ring1,;}


will make it warp the player to OSL @ 30,30 if the NPC Name is Ring1. Ta-da XP You're welcome, all part of the job =P
---Shifter

The ring wouldnt work since the action part is part of the weapon ;) The action would have to be in the control npc for that to work. But having that in the control npc isnt very good since it gets very confusing later.

NPC Code:

if (actionserverside) setlevel2 onlinestartlocal.graal,30,30;
//#CLIENTSIDE
if (weaponfired) {
triggeraction playerx+1.5,playery+2,serverside,Warp Ring,0;
}



If the weapon name is Warp Ring, the ring will warp the player to onlinestartlocal with the x and y at 30. That script is a weapon and nothing needs to be placed in the Control-NPC. :)


All times are GMT +2. The time now is 11:09 AM.

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