Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Howto Hitpoint System (https://forums.graalonline.com/forums/showthread.php?t=50809)

Duwul 02-07-2004 04:45 AM

Quote:

Originally posted by Dach


the first is client-side, the latter is server-side, the first is triggered when the npc is hit with a projectile, the latter is triggered when a projectile lands on the board


Value 02-07-2004 04:50 AM

WRONG
 
actionprojectile can work on serverside too

Duwul 02-07-2004 04:58 AM

Don't call me wrong, please. I am not positive on the subject, I am simply giving you Dach's answer.

Value 02-07-2004 05:34 AM

Thanks!
 
Thanks to Ajira. Problem solved.

Duwul 02-07-2004 05:39 AM

Always glad to help. =)

Vegeta940 02-10-2004 01:48 AM

confused
 
1 Attachment(s)
uh, stefan u said there was a hitpoint system in there, all i found was sword scripts and projectile scripts, no hitpoint system :(

R0bin 02-14-2004 12:17 AM

Re: confused
 
Quote:

Originally posted by Vegeta940
uh, stefan u said there was a hitpoint system in there, all i found was sword scripts and projectile scripts, no hitpoint system :(
1) You sir, are a *****.
2)Make.An.Effort.To.Learn

Termina_Owner 02-14-2004 02:10 AM

Re: Re: confused
 
Quote:

Originally posted by R0bin


1) You sir, are a *****.
2)Make.An.Effort.To.Learn

lol... Indeed!... Poor kid. Can't see the basic concept of the hitpoint system.

MysticHaste 02-29-2004 03:58 PM

Re: confused
 
Quote:

Originally posted by Vegeta940
uh, stefan u said there was a hitpoint system in there, all i found was sword scripts and projectile scripts, no hitpoint system :(
Think about what your saying, and if it still makes sense, see your doctor.

Andy0687 03-21-2004 08:54 PM

Quote:

Originally posted by Stefan
I can possibly add yours. There will be more documentation for v3.1 scripting engine once it is released.

About clientside-system: a hitpoint-system should be secure and easy to use. On serverside you can build a database of objects which you can use to influence the hitpoint system, e.g. weapon strength and armour. If you don't script bad stuff into the hp functions then speed shouldn't be a problem at all. With 100 players playing on Graal Kingdoms the HP system uses less than 1% of the cpu time, although it's doing quite complicated hitpoint calculations.
On most Graal servers the clientside scripts are a much bigger speed problem (I have seen servers with quite slow clientside weapon scripts which then lag the players while the npcserver is bored)

The topic has been dead for awhile but this seems in the best place to put it

We used the tips in the hp system to build a secure system, but when just one of us were using it, the control-npc ended up going for 10 seconds of CPU time and lagging the server.

tlf288 03-21-2004 09:13 PM

Quote:

Originally posted by Andy0687

We used the tips in the hp system to build a secure system, but when just one of us were using it, the control-npc ended up going for 10 seconds of CPU time and lagging the server.

You obviously have bad code. By trial and error try to find the problem.

You can PM me for further help, if you want.

Loriel 07-17-2004 10:55 PM

Unstickied and linked from the Advice thread.


All times are GMT +2. The time now is 04:50 PM.

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