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)

Admins 02-02-2004 01:15 PM

Howto Hitpoint System
 
1 Attachment(s)
I have attached a little documentation about scripting an custom hitpoint system, I hope it is usefull.

URBANLEGEND 02-02-2004 03:04 PM

Nice stefan. I never knew you could actualy do it with an npcs server.

WanDaMan 02-02-2004 03:15 PM

I'm going back to school later, I've downloaded and will read it later :)

adam 02-02-2004 05:39 PM

It's excellent.

Although I wonder how much the npcserver will like it when 100 players are all hacking away at eachother? It best not get overwhelmed.

osrs 02-02-2004 05:43 PM

Nice.

Blue_Dragn 02-02-2004 08:38 PM

Re: Howto Hitpoint System
 
Quote:

Originally posted by Stefan
I have attached a little documentation about scripting an custom hitpoint system, I hope it is usefull.
Im not very well understanding why it would be so required to put all that stress on the npcserver if you have a substancial amount of people playing, its possibile to do most if not all of that clientside.

To my understanding as well people who use "string hackers" to hack the client. strings of the game need to know the string name.

Why would you not be able to make a similar system only with more clientside refrence?

GoZelda 02-02-2004 10:47 PM

Shouldn't this go to scripting forum? :\

lol i thought this had been posted in playerworlds forum. Looks nice Stefan, probably is very useful ^_~

Riot 02-02-2004 11:36 PM

Re: Re: Howto Hitpoint System
 
Quote:

Originally posted by Blue_Dragn

Im not very well understanding why it would be so required to put all that stress on the npcserver if you have a substancial amount of people playing, its possibile to do most if not all of that clientside.

To my understanding as well people who use "string hackers" to hack the client. strings of the game need to know the string name.

Why would you not be able to make a similar system only with more clientside refrence?

In the examples Stefan used clientr. flags, which is read-only to the client. So unless the person has access to the RC or makes a serverside NPC change it, its pretty much secure from that. Hence the reason for serverside calling.

Python523 02-03-2004 01:02 AM

Re: Re: Howto Hitpoint System
 
Quote:

Originally posted by Blue_Dragn


Im not very well understanding why it would be so required to put all that stress on the npcserver if you have a substancial amount of people playing, its possibile to do most if not all of that clientside.

To my understanding as well people who use "string hackers" to hack the client. strings of the game need to know the string name.

Why would you not be able to make a similar system only with more clientside refrence?

Fool. Security should be a necessity

Duwul 02-03-2004 02:52 AM

Very nice Stefan. I learned 2 new functions from that, getnearestplayers, and getareanpcs. =D

Dach 02-03-2004 03:27 AM

Quote:

Originally posted by Duwul
Very nice Stefan. I learned 2 new functions from that, getnearestplayers, and getareanpcs. =D
What? oh, shoot, well whatever, updated the thingy... Hey stefan, when are you gonna upadate the commands .rtf? or atleast add mine to the main download? huh huh *nuchdge* *nudge* sorry about the types, my keyboard wont enter or backspance right :(

Admins 02-03-2004 03:49 AM

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)

adam 02-03-2004 03:59 AM

Aight, I'll take your word for it.

Thank you for the input.
...

How about compiled particle engine??
Want to use my script as a refrence ;)

GoZelda 02-03-2004 07:23 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.
Don't forget i was to first one to a release an updated commands.rtf for public :(

Python523 02-03-2004 11:38 PM

Quote:

Originally posted by GoZelda

Don't forget i was to first one to a release an updated commands.rtf for public :(

Don't flatter yourself, Dach/Chad released one before you even came to the forums.

ZeLpH_MyStiK 02-03-2004 11:40 PM

Quote:

Originally posted by GoZelda

Don't forget i was to first one to a release an updated commands.rtf for public :(

...pointless in arguing, im sure a lot of people update it themselves...

R0bin 02-04-2004 01:34 AM

Jagen seems in a very black mood, what happen? someone set him up the bomb?

Dach 02-04-2004 05:26 AM

Quote:

Originally posted by Python523


Don't flatter yourself, Dach/Chad released one before you even came to the forums.

I did? I don't even remember... ohwell, not that it matters anywho, I think I added some of GoZelda's lists to mine since they were a much neater method of including the info than what I did ;)

R0bin 02-04-2004 06:16 AM

um... i should really do something ive been planning for a long time.

a website with the commands in a list like commands rtf, with a search, examples, and people can log in and register and add things, and with me as the evil overlord deleting fake things and spam!

WanDaMan 02-04-2004 02:48 PM

Quote:

Originally posted by R0bin
um... i should really do something ive been planning for a long time.

a website with the commands in a list like commands rtf, with a search, examples, and people can log in and register and add things, and with me as the evil overlord deleting fake things and spam!

I like that idea:)

GoZelda 02-04-2004 02:52 PM

Quote:

Originally posted by ZeLpH_MyStiK

...pointless in arguing, im sure a lot of people update it themselves...

Note is said release to public x-x

R0bin 02-04-2004 04:57 PM

Quote:

Originally posted by WanDaMan

I like that idea:)

Im pretty sure i stole the idea from riot :P

I think he was going to do it on his website but his website is never updated.

Riot 02-04-2004 10:03 PM

Quote:

Originally posted by R0bin


Im pretty sure i stole the idea from riot :P

I think he was going to do it on his website but his website is never updated.

Lack of staff = lack of updates.:)

Site is being reprogrammed as i disliked how i coded it before, then all i gotta do is add the commands to it.

R0bin 02-04-2004 10:16 PM

well you already got the domain and stuff, need help?

Riot 02-04-2004 10:32 PM

Quote:

Originally posted by R0bin
well you already got the domain and stuff, need help?
I always need help:p

R0bin 02-04-2004 10:48 PM

I meant help with gscript,us, not mental help :D

Riot 02-04-2004 10:55 PM

Quote:

Originally posted by R0bin
I meant help with gscript,us, not mental help :D
:( Fine whatever:p

Blue_Dragn 02-05-2004 09:38 PM

I didnt understand where in the stuff you could pass variables for attack damage

so from clientside to actionserverxxx i want to pass 5, i did
NPC Code:

...
this.xxx = 5;
...
triggeraction 0,0,actionxxx,#v(this.xxx);


if (actionserverxxx) {
thiso.xxx = strtofloat(#s(clientr.xxx)) - strtofloat(#p(0));
setstring clientr.xxx,#v(thiso.xxx);
}



The Above is a short example of what im trying to get at, but i cant seem to get it to work.

Python523 02-05-2004 11:34 PM

There's no such thing as a thiso var...yet

Duwul 02-06-2004 01:22 AM

Quote:

Originally posted by Python523
There's no such thing as a thiso var...yet
Erm, there is? =o

When I want to pass strings and variables from one npc to a DB npc, I use thiso. vars and they work..

R0bin 02-06-2004 01:29 AM

yeah jagen, what do you mean?

Python523 02-06-2004 01:44 AM

Quote:

Originally posted by R0bin
yeah jagen, what do you mean?
They were non existant last time I used them... ages ago anyway

Riot 02-06-2004 03:30 AM

Quote:

Originally posted by Duwul
Erm, there is? =o

When I want to pass strings and variables from one npc to a DB npc, I use thiso. vars and they work..

I just use strings/variables without prefixes, which works fine.

xManiamaNx 02-06-2004 03:33 AM

thiso.strings exist. Haven't had any luck with thiso.vars yet though

Duwul 02-06-2004 03:54 AM

They both work.

Value 02-06-2004 04:13 AM

Still messed up
 
Stefan, I did what your doc said about the actionprojectile and it still doesn't work. I did the serverside one. Also, clientside doesnt work either. Only actionprojectile2 works. Is there something wrong with my server or something? Name of my server is Altair. Please reply as soon as possible. I want to make cool bows :(

Duwul 02-06-2004 05:54 AM

Is your actionprojectile in the Control-NPC?

Value 02-06-2004 04:16 PM

Yes
 
Yes it is in the Control-NPC. I also tried putting it a DB npc as clientside and serverside. And only actionprojectile2 works. There has to be a problem somewhere. It's messed up that just because i take away the 2 from actionprojectile, it doesn't work and when i add the 2 to actionprojectile it works. And i know there is a difference between both statements. But I did what stefan put in his docu and it still only works with actionprojectile2!!!

Value 02-06-2004 04:32 PM

Posting Script
 
1 Attachment(s)
Here is the script for my bow, control-npc and class. Help me find the problem!!!!!

R0bin 02-06-2004 06:05 PM

Re: Posting Script
 
Quote:

Originally posted by Value
Here is the script for my bow, control-npc and class. Help me find the problem!!!!!
perhaps to be putting the join commands at the top of the script?


All times are GMT +2. The time now is 09:54 PM.

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