Quote:
Hello guys,
I'm trying to make NPC walking as guards patrols (which are monsters).
Also I tried to modify, in NPCResource table, columns : is_roam (1) , roaming_id (ex : 4004), standard_walk_speed (40), standard_run_speed (80), walk_speed (40) and run_speed (80)
Gameserver crash when roaming_id > 0
I took my roaming_id from RoamingResource table, but I think it is a different table for NPCs ...
Is someone have tried to make NPC moving?
Thanks
Wen
The Roaming System is quiet easy. You just have to open your eyes... :D
You have to use the RoamingResource Table. Create a new, not used id, fill the needed infos (if i remember correct you have to use hate_type 1 for peacefull).
Than go ahead to The RoamingPointResource and create entrys for each way point.
e.g.
Point 0 goes to 1, 1 goes to 2 and so on.
And the last step is, you have to fill the needed LUA entrys for that roaming id.
So open up your monster_roaming.lua and add the lines for each mob/npc wich has to walk in that group
e.g.
Code:
respawn_roaming_mob( roaming_id, npc_id, position_in_group, count, time_it_lasts )