![]() |
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 |
You don't have one of these, do you?
NPC Code: NPC Code: |
its simple to fix
just put if (playerenters) { x=whatever; y=whatever; } |
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 |
Hackers are calling created. x= and y= are the only way to stop it.
|
it happens to me sometiems, when i enter the level they move.
i didnt hack it. |
Maybe a staff or system NPC has been hacked to call created on all NPCs?
|
no...
|
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.
|
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. |
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 |
Smells like when they log on, it calls that a "create". Might be linked to the weapons smuggling from offline to online. Possible?
|
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] |
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.