I have atm one spawnscript that is loading with one npc in my database it works fine when i first load up my server and when attacked this npc will chase you but if i wait 10 mins after it is loaded the npc no longer responds to hails or any other fuction.
He also will not move from his spot when attacked he just stays rooted in place and he can hit you from quite a distance away he stops attacking if you go far enough away say on the isle where the stairs are once you get off the boat he can hit ya till you get to where the boat is at.
I have tried using the /reload options for spawnscripts and the luasystem and repops nothing makes the npc script work again untill i restart the world.
there are somethings that i should note to get the emu to compile i had to edit the makefile and change where -llua5.1 to -llua because i was getting errors about it finding lua but after that it complied fine.
the npc stops running the script exactly 10 mins eatch time after the world is restarted. i have tested this by starting the world waiting then waiting 10 mins then logging in and trying to talk to him he never responded.
if i log in as soon as i restart he faces me like he is suppose to and says his killed event. and will do so untill 10 mins has passed.
I have dumped my database and reloaded it once to make sure i did not change something that i should not have.
I dont get any error like messages at the 10 min mark from eq2world or in my messege log.
Code: Select all
0: 13 00 00 00 | ....
0: 13 00 00 00 | ....
0: 13 00 00 00 | ....
0: 13 00 00 00 | ....
0: 13 00 00 00 | ....
0: 13 00 00 00 | ....
0: 13 00 00 00 | ....
0: 13 00 00 00 | ....
0: 13 00 00 00 | ....
0: 13 00 00 00 | ....
0: 13 00 00 00 | ....
0: 13 00 00 00 | ....
0: 13 00 00 00 | ....
0: 13 00 00 00 | ....
0: 13 00 00 00 | ....
0: 13 00 00 00 | ....
0: 13 00 00 00 | ....
0: 25 00 01 00 31 | %...1
0: 25 00 01 00 30 | %...0
0: 54 01 00 00 | T...
Unhandled command: clearallqueuedabilities
0: 35 00 0A 00 34 32 39 34 - 39 36 37 32 39 35 | 5...4294967295
0: 54 01 00 00 | T...
Unhandled command: clearallqueuedabilities
OP_Unknown Received 0x00b2
0: 01 01 | ..
0: 54 01 00 00 | T...
Unhandled command: clearallqueuedabilities
0: 25 00 01 00 30 | %...0
0: 23 00 01 00 31 | #...1
Left Grid 4294967295 and Entered Grid 924281492
Left Grid 924281492 and Entered Grid 819993724
0: 54 01 00 00 | T...
Unhandled command: clearallqueuedabilities
the script that is running is a simple one and works great for 10 mins.
Code: Select all
function spawn(NPC)
--Syntax is NPC, x, y, z, speed, delay (in seconds)
--MovementLoopAddLocation(NPC, x, y, z, 2, 30)
end
function respawn(NPC)
end
function hailed(NPC,Spawn)
FaceTarget(NPC,Spawn)
end
function aggro(NPC, Spawn)
Say(NPC, "You have ruined your own lands. You shall not ruin mine!")
end
function attacked(NPC)
end
function killed(NPC, Spawn)
Say(NPC, "Another falls by my blade.")
end