Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   drifting npc's (https://forums.graalonline.com/forums/showthread.php?t=16185)

Warcaptain 11-05-2001 02:56 AM

drifting npc's
 
on my server enigma, some npc's drift.

ie: they start out on 32,32 and eventualy end up at 42,22

or something like that, the x,y moevs.

and its not just when i update levels, i see it whenpeople just enter the level.

i think its when they first enter and it loads it, it doesnt load x,y right.

im pretty sure only stefan can help, but hey.. worth a try

JeffTL 11-05-2001 05:25 AM

You don't have one of these, do you?

NPC Code:

if(playerenters){
x+=.5;
}


NPC Code:

if(playerenters){
x=x+.5;
}


AlexH 11-05-2001 05:28 AM

its simple to fix
just put

if (playerenters) {
x=whatever;
y=whatever;
}

Warcaptain 11-05-2001 09:35 AM

no, i have if(created){x+=.5;}

but some dont have that at all.

and they still drift

and that x=whatever;y=whtever shouldnt be neccesary, something is worng

JeffTL 11-05-2001 09:56 AM

Hackers are calling created. x= and y= are the only way to stop it.

Warcaptain 11-05-2001 10:33 AM

it happens to me sometiems, when i enter the level they move.

i didnt hack it.

JeffTL 11-08-2001 11:53 AM

Maybe a staff or system NPC has been hacked to call created on all NPCs?

Warcaptain 11-08-2001 12:29 PM

no...

Tyhm 11-08-2001 01:07 PM

I've seen it occuring as well. Haven't ruled out hackers, but SOMEthing's causing created to run more than once. I noticed the same exact problem with fighting fish...they'd set their power to their owner's power when created, but they'd do it more than once, with disasterous results, if anyone remembers...someone enters and it goes back to 0...anyway.

Warcaptain 11-09-2001 02:51 AM

like i said, i doubt its hackers because i know once i was alone in a level, and reconnected to graal and then the npc's moved for no reason.


i beleive its because when it loads the npc's, it tries to load from the client first, before teh server.and if its not on client, it might move the npc, beacuse it tries to put it in the right place still, but is off a bit since its not there, it lags loading, and puts the npc in a different spot, thinking its right.

-just an idea-

this would be fixed if stefan made it so graal didnt load from the client at all, for levels.

Admins 11-09-2001 04:31 AM

Graal doesn't load npcs from hard-disk, they
are sent by the server together with the current
attributes, so when the script is sent then also the
position is sent. The 'created' flag is sent too,
may be it is missing sometimes or gets unset, don't know

Tyhm 11-10-2001 01:45 AM

Smells like when they log on, it calls that a "create". Might be linked to the weapons smuggling from offline to online. Possible?

grim_squeaker_x 11-10-2001 01:50 AM

I've seen that happen a few times as well, even before people the NPC smuggling thing, I think created is occasionally called when it's the first time you enter that level since your last connection to the server and if you're then the first person to enter that level.
I'm not sure though.
[Edit]
Or it might occasionally be missing the flag due to packet loss, although you'd have to be pretty lagged to have that happen
[/Edit]

r_u_f_u_s 11-11-2001 11:32 AM

I know in your case that you said it was not hackers, but they are cappable of doing that.... I know plently of times a hacker has been in the level and moving around images (sometimes even to different levels) changing npc character heads, etc..... I don't know how they do it, but it is possible that some of the time it is hackers doing it.


All times are GMT +2. The time now is 05:16 PM.

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