Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   How to make a Custom Body system (https://forums.graalonline.com/forums/showthread.php?t=80532)

Rave_J 07-18-2008 05:45 PM

How to make a Custom Body system
 
kk just seeing how u can take graal bodies off of ur server and add custom bodys

i already got the body done and the ganis
just trying to c how u do it so if someone can tell me i would be happy thanks

Frankie 07-19-2008 03:27 PM

you would need a custom movement system.

or so I would think, I could be wrong.

Demisis_P2P 07-19-2008 03:58 PM

Quote:

Originally Posted by Frankie (Post 1404994)
you would need a custom movement system.

or so I would think, I could be wrong.

You wouldn't necessarily.
Or at least your 'movement system' wouldn't need to control movement at all; it'd just need to replace the default ganis with the new ganis.

Having said that, you're better off making a custom movement system anyway.

Loriel 07-20-2008 12:28 AM

Quote:

Originally Posted by Demisis_P2P (Post 1405005)
Having said that, you're better off making a custom movement system anyway.

What is so great about custom movement systems?

Crow 07-20-2008 12:43 AM

Quote:

Originally Posted by Loriel (Post 1405518)
What is so great about custom movement systems?

They work better than the bugged default one.

napo_p2p 07-20-2008 12:52 AM

Quote:

Originally Posted by Crow (Post 1405527)
They work better than the bugged default one.

I'd say that a custom movement system is more likely to have more bugs than the default one.

Loriel 07-20-2008 12:52 AM

Look, I realise low content posting is en vogue here, but at least put some effort into it.

Tigairius 07-20-2008 12:55 AM

Quote:

Originally Posted by Loriel (Post 1405518)
What is so great about custom movement systems?

Custom movement systems allow more room for customization. For example, speed, and with my movement system on Ol' West it allows me to make a very nice hacker detection, where as if I was using the default movement system I couldn't as well.

xXziroXx 07-20-2008 12:58 AM

Quote:

Originally Posted by Tigairius (Post 1405538)
where as if I was using the default movement system I couldn't as well.

Not without resorting to hackish ways anyways.

Loriel 07-20-2008 12:59 AM

But that does not imply that everybody needs one, right? I figure most playerworlds would be quite content with the default movement and being able to focus their creative energies on actual content instead.

How does your hacker detection work?

Crono 07-20-2008 12:59 AM

Quote:

Originally Posted by Loriel (Post 1405541)
But that does not imply that everybody needs one, right? I figure most playerworlds would be quite content with the default movement and being able to focus their creative energies on actual content instead.

Try explaining that to Stefan regarding Classic.

Tigairius 07-20-2008 01:01 AM

Quote:

Originally Posted by Loriel (Post 1405541)
But that does not imply that everybody needs one, right? I figure most playerworlds would be quite content with the default movement and being able to focus their creative energies on actual content instead.

How does your hacker detection work?

You're right, most playerworlds would be fine without it.

My hacker detection works by checking the onwall event and comparing it to a few other events... I don't really want to let out anymore than that though because if I did it could be bypassed eventually.

Crow 07-20-2008 01:16 AM

Quote:

Originally Posted by napo_p2p (Post 1405536)
I'd say that a custom movement system is more likely to have more bugs than the default one.

You can walk into objects being at different positions than x or x.5, for example block.png being at 30.2. That's enough for me to create a custom movement system, I need the freedom to move my NPCs whereever I want.
And my one doesn't have the problems the default one has, or any others.

Rave_J 07-20-2008 06:13 AM

alrite i have a movement system but how would i overide the ganis
kez said something about the img and the ganis in npc server options or something like that

The_Kez 07-20-2008 06:44 AM

A custom movement system is not necessary for custom bodies. I don't know whether or not it would be better, I guess there are some advantages if you can pull one off that isn't bugged in some way. I'm using the default one for the server I'm working on and I don't see any limitations to it, there are ways to check for hackers and I can edit movement speed just fine. It might be half a line longer but I don't mind.

Anyways, If you removed the player body image of the player, the current player ani would still be set to walk so you'd just have to create a new gani file and replace the old body attribute with the new one I would assume. Then when the player logs in replace the anis.

That's my first impression of how it could be done, someone may have a better idea though.

excaliber7388 07-20-2008 06:56 AM

Quote:

Originally Posted by Tigairius (Post 1405543)
You're right, most playerworlds would be fine without it.

My hacker detection works by checking the onwall event and comparing it to a few other events... I don't really want to let out anymore than that though because if I did it could be bypassed eventually.

I assume it also takes player speed into account, therefore if they move slowly, and change the onwall flags in some way, they could be undetected.

A custom system could provide more protection through more protected flags and variables.

Most servers don't have nearly enough hacking or bug abuse protection. Not much has changed since I last created anti hacking tools for a server.


Now, if you're using custom bodies, you should use a custom movement system. Chances are, the custom bodies and ganis will not have the same stride as the original characters. Therefore, the speed and flow of the movement would have to be effected. It will allow you to create more realistic movement, even allowing realistic ganis and movement for certain movements. For example, the swinging of a sword could create movement in the legs, which could be represented by a gani, as well as realistic movement for that animation.
Yes, a custom movement system would be much better if you were using custom bodies and ganis, to create a much more realistic system.

Rave_J 07-21-2008 03:36 PM

alrite well i have my custom movement system i just dont know how to change the ganis for good where everybody starts on with that body when they log on
so ya thats my main question

Linkishback 07-21-2008 05:00 PM

Quote:

Originally Posted by Rave_J (Post 1406214)
alrite well i have my custom movement system i just dont know how to change the ganis for good where everybody starts on with that body when they log on
so ya thats my main question

There is a very simple script command to do this.
NPC Code:
replaceani(str defaultaniname, str newaniname);


This way you can change the default idle, walk, sword etc. gani's into your own.

cbk1994 07-21-2008 07:11 PM

Quote:

Originally Posted by excaliber7388 (Post 1405671)
I assume it also takes player speed into account, therefore if they move slowly, and change the onwall flags in some way, they could be undetected.

No. They couldn't. His detection is quite amazing.

Inverness 07-21-2008 09:41 PM

I haven't really had to worry about things like that on Valikorlia. Its not the sort of place where you can get anything out of wall/speed hacking.

I remember a long time ago on Doomsday, there was this level with a giant spiral thing and bushes in the path all the way to the center and you had to cut through all of them to get to the center and get that gralat. I did bad a bad thing after I got tired of it.

xAzerothx 07-21-2008 09:43 PM

That's because all you do it type in what you're going to do.

Rave_J 07-22-2008 02:02 AM

alrite so u put replaceani(str defaultaniname, str newaniname); in the main system or can i jsut add it to the NPC Server script

LoneAngelIbesu 07-22-2008 02:05 AM

Put it in any WNPC. For instance, one named "Animations", or "CustomBodySystem".

TifaKhan 07-24-2008 06:09 AM

Quote:

Originally Posted by Inverness (Post 1406493)
I haven't really had to worry about things like that on Valikorlia. Its not the sort of place where you can get anything out of wall/speed hacking.

I remember a long time ago on Doomsday, there was this level with a giant spiral thing and bushes in the path all the way to the center and you had to cut through all of them to get to the center and get that gralat. I did bad a bad thing after I got tired of it.

rofl Hands up if anyone here hasn't done a bad thing XD

TheJames 07-25-2008 09:37 PM

1 Attachment(s)
You guys really get off subject haha.

Hey Rave. Its quite simple actually. Aswell to all of you asking about the custom movement system, its great having one. I like being able to change the default movement speed of the graal character, aswell for vehicles, and certain actions that require freezes and stuff, and like Tig said, hack provention!



There is a custom movement system for you in my attachment, and whomever wants to use it. Aswell, it has hats, shirts, pants, and other cool gani features! You have to make a custom walk/idle/pull/swim gani for your server. :cool:


All times are GMT +2. The time now is 12:59 AM.

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