Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Move command (https://forums.graalonline.com/forums/showthread.php?t=18048)

mikepg 11-28-2001 05:51 AM

Move command
 
I understand this command almost completely. The only thing I dont understand is the cachtype. It doesnt seem to make a difference offline, but im sure online it does something. Can anyone explain what this is used for? like, for onwall check, you can have 4,5, or 6. Does this determine whether it is sent to the server or something?

Thanx. :)

wark2 11-28-2001 06:05 AM

Dunno.... i think it does i guess? (ME STUPID AT 'MOVE')

Andor_NPC-Admin1 11-28-2001 06:43 AM

from newfeatures text:
- cachingmode:
- 0: previous movements will be finished immediatelly
- 1: movements will be cached, the previous movements
will only be finished when the cache is too large
(distance to go >5);
this caching can be used on server-side npcs to
make the movement look like non-laggy even when
there are little delays sometimes
- 2: the movement will just be appended to the movement
list; you can add up to 100 movements


When cachingmode is 0, then a previous move command that isn't finished moving the NPC will be finished, and replaced by the new move command.

When cachingmode is 1, then a previous move command that isn't finished moving the NPC with a distance greater than 5 to its destination will be finished, and replaced by the new move command. But, if the distance left is less than 5, then the new move command will go when the previous move is finished moving.

When cachingmode is 2, then the new move command will go when the previous move is finished moving. You can have no more than 100 appends, or else the oldest move command will be finished immediately.

mikepg 11-28-2001 07:16 AM

okay
 
I think Im getting this. Thanx man :)

It has to deal with previous moves.
I really appreciate the help!


All times are GMT +2. The time now is 06:10 AM.

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