Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Npcserver stuff (https://forums.graalonline.com/forums/showthread.php?t=12450)

BocoC 09-21-2001 12:12 PM

Npcserver stuff
 
Stefan, could you please made the flag 'washit' serverside on npcserver? Without it, we can't create serverside baddy's, only clientside ones. We have tried many things, including having a clientside washit send a triggeraction. But, only a clientside triggeraction would work, and that is not good. Please add all the hit-checking commands to serverside for npcserver. And, please fix the 'lighteffectsenabled' flag, or else add a flag that checks if the player can see setcoloreffect commands. Thank you.

Kaimetsu 09-21-2001 06:21 PM

Why does the server need to know if the player can see lighting effects? It's not like it has to draw those effects or anything.

BocoC 09-21-2001 08:07 PM

Well, I have a mine where people see via a big light effect. I use seteffect to make the level's dark. When the player uses their lantern, a big light effect appears over them so they can see. Looks very nice. The only problem is that people who can't see light effects are stuck. They can't see because the level is so dark. Since seteffect can be seen by anyone who has 'Use Direct X' enabled, the 'lighteffectsenabled' flag always returns true. That is bad. I was asking Stefan if he could fix the lighteffectsenabled flag, or add a new one that checks if the player can see setcoloreffect commands.

Kaimetsu 09-21-2001 09:49 PM

Quote:

Originally posted by BocoC
Well, I have a mine where people see via a big light effect. I use seteffect to make the level's dark. When the player uses their lantern, a big light effect appears over them so they can see. Looks very nice. The only problem is that people who can't see light effects are stuck. They can't see because the level is so dark. Since seteffect can be seen by anyone who has 'Use Direct X' enabled, the 'lighteffectsenabled' flag always returns true. That is bad. I was asking Stefan if he could fix the lighteffectsenabled flag, or add a new one that checks if the player can see setcoloreffect commands.
Ah. You shouldn't talk about clientside effects in a post offering suggestions for serverside stuff.

grim_squeaker_x 09-21-2001 11:29 PM

NPC Code:
if (actionwashit) hearts-=strtofloat(#P(0));
//#CLIENTSIDE
if (washit) triggeraction x+1.5,y+2,washit,#v(playerswordpower);

As for the other thing, just make an option at the start of your server in which it is asked if the player can see both seteffect and setcoloreffect.

BocoC 09-22-2001 04:57 AM

Quote:

Originally posted by grim_squeaker_x
NPC Code:
if (actionwashit) hearts-=strtofloat(#P(0));
//#CLIENTSIDE
if (washit) triggeraction x+1.5,y+2,washit,#v(playerswordpower);

As for the other thing, just make an option at the start of your server in which it is asked if the player can see both seteffect and setcoloreffect.

That code won't work. Tried already. I think the problem is the clientside triggeraction is trying to trigger a serverside action. If I am correct, the //#CLIENTSIDE command makes the triggeraction NOT send to the server.

BocoC 09-22-2001 04:59 AM

Quote:

Originally posted by Kaimetsu


Ah. You shouldn't talk about clientside effects in a post offering suggestions for serverside stuff.

Wha-? I am asking that 'washit' works server side, and the built-in flag 'lighteffectsenabled' to check if the player can see setcoloreffect commands.

Kaimetsu 09-22-2001 09:26 AM

Quote:

Originally posted by BocoC

Wha-? I am asking that 'washit' works server side, and the built-in flag 'lighteffectsenabled' to check if the player can see setcoloreffect commands.

lighteffectsenabled doesn't fit under the thread's "npcserver stuff" title.

BocoC 09-22-2001 09:04 PM

Quote:

Originally posted by Kaimetsu


lighteffectsenabled doesn't fit under the thread's "npcserver stuff" title.

Oh well. You can really only use the command if you are a p2p server, since it deals with light effects =P

Kaimetsu 09-22-2001 09:08 PM

Quote:

Originally posted by BocoC


Oh well. You can really only use the command if you are a p2p server, since it deals with light effects =P

Maybe so, but P2P != NPC Server.

grim_squeaker_x 09-22-2001 09:12 PM

Quote:

Originally posted by BocoC

That code won't work. Tried already. I think the problem is the clientside triggeraction is trying to trigger a serverside action. If I am correct, the //#CLIENTSIDE command makes the triggeraction NOT send to the server.

Actually I know that clientside triggeraction can trigger serverside actions, otherwise any weapon using triggeraction could never work, so why it doesn't work in this case is unknown to me.


All times are GMT +2. The time now is 08:49 PM.

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