Xees
1
(Entry, 0, 1, 0, 38, 0, 100, 1, 0, 1, 10, 300, 53, 0, 5005090, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ‘Creature starts waypoint’);
waypoint ID = 5005090
Cooldown max = 300
cooldown min = 10
action_type = 53 - SMART_ACTION_WP_START
i would like the creature to start moving his waypoint and stop at a certain waypoint id.
Nay
2
At SMART_EVENT_WAYPOINT_REACHED (Event1 = point id) call SMART_ACTION_WP_PAUSE
Xees
3
but my npc is not even starting to walk , his movement type is 2 and he is not loading the waypoint at all
Nay
4
You are using table waypoints, right?
Xees
5
so Smartai does not use waypoint_data and waypoint_scripts ?
ok, il convert all my waypoints to waypoints table, many thanks nay
Xees
6
is there anyway to add waypoints for SmartAI from ingame, without having to convert all my waypoints ? like 32 waypoints or so with scripts
Nay
7
No, there isn’t but converting from one table format to other isn’t difficult at all.
Entry is npc_entry (multiplied by 1). Pointid starts at 1
Xees
8
so path_id is not used ?
or should it be creature entry ?
and to start the creature walking should i say , START pathid = creature entry ?
Nay
9
Post here the SQL to create the 32 waypoints in waypoint_data or waypoint_scripts, I will “convert” it for you…
Xees
10
Many, thanks converted but my questions now are:
when using action_type = 53 - SMART_ACTION_WP_START , should action_param2 have the creature waypoint path id aka entry ?
really appreciated Nay - many thanks.
Nay
11
Yes, param2 is path entry which is creature entry (Wiki corrected)
Xees
12
most epicest thing i ever seen /emoticons/default_biggrin.png entire script works perfectly. thanks a lot Nay , you are da man