-
Contributor
Hand of God
Stop NPC's falling through GameObjects
Hello, I've just started to get into building a private server, while looking around other servers for inspiration (Not copying ideas ), I noticed alot of NPC's fall through GameObjects, this is very bad when they are high in the air as the mobs are nowhere around.
Just thought i'd share a little trick didn't know if people knew about, if you find the SpawnID of the mob (.npc info), go into creature_spawns and find the mob you are trying to fix, go along to "canFly" or "enableFly" whatever it says on your DB and change it to 1.
Now the mob will not fall if it has nothing under it! This may be common sense but i've seen this problem alll over servers!
-
Post Thanks / Like - 1 Thanks
AlexTremere (1 members gave Thanks to Renyei for this useful post)
-
Member
Pretty useful, tho as you mentioned it is common sense but seems like many people dont have that much common sense, no offence to anyone. But to be honest i have seen about 6-7 servers where some of the NPCs with that trick started flying to kill some hostiles, thats not too big problem but might get annoying after a while. Easily fixed with faction changing.
-
Contributor
Hand of God
Yes I have this problem aswell .. some person thought it was great to make a mall out of Scyers faction .. uhm hello, alliance are hated by them at first.. the same with Dalaran, tons of people have the guards attacking opposite factions. Easy fix for Dalaran (for me) is make them target dummies (cant attack or move) "isTargetDummy" in DB.
-
Wait - Setting fly to 1 fixes this? I thought that it would of still fallen through. 0_o Never bothered to test, didn't know about this so +Rep
-
★ Elder ★
Holy crap? This works? I never thought of trying this. +Rep
Edit: Remind me tomorrow, given too much out.
-
Contributor
Hand of God
Thanks all
-
Member
-
Contributor
This is awesome. Confirmed working, on ArcEmu at least.
+Rep x2
-
Member
Wow that saves me a shitload of time trying to make it they stay up :O +rep homie
-
Member
I think it's client bug: client loads creature before gameobjects, no ?
I corrected this bug by spawning all NPC a little ahead of the gameobjects, so they fall but the gameobject is loaded in time and they don't go trough.
-
Contributor
Hand of God
Originally Posted by
xdk
I think it's client bug: client loads creature before gameobjects, no ?
I corrected this bug by spawning all NPC a little ahead of the gameobjects, so they fall but the gameobject is loaded in time and they don't go trough.
Well that may be a quick way around it, but I cant stand going to my mall and seeing loads of vendors suddenly fall a few yards.. looks tacky.
Dosn't take long to just edit each spawn to CanFly=1
-
Code:
UPDATE `creature_spawns` SET `flying` = '1' WHERE `map` = '1';
You could use something like this to do it in seconds, depending on where your mall is. If it's in Kalimdor for example then better to just change map to entry, or even displayid if loads of people have the same displayid in the same area.
-
What and where should I edit in mangos? :S Cant find
-
Member
You can also go in-game and just .way addfly at the npc's position.
thanks to P1raten
-
Banned
Originally Posted by
stoneharry
Wait - Setting fly to 1 fixes this? I thought that it would of still fallen through. 0_o Never bothered to test, didn't know about this so +Rep
Our hero got pwned