Forum > Serverside Modding
[QUESTION] SmartAI problem
(1/2) > >>
Смердокрыл:
Basically, I need an npc (by guid) to walk to a certain point, when an event starts.
Script:
--- Code: ---DELETE FROM `smart_scripts` WHERE (`entryorguid`=15737508 AND `source_type`=0); INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES (15737508, 0, 0, 1, 68, 0, 100, 0, 70, 0, 0, 0, 59, 0, , , , , , 1, , , , , , , , ""), (15737508, 0, 1, , 68, 0, 100, 0, 70, , , , 69, 0, 0, 0, 0, , , 8, , , , 1632.454956, 226.362778, 62.593037, 1.057432, ""); --- End code ---
Error: [attachment=0:h2t6wxsv]smartaierror.jpg[/attachment:h2t6wxsv]
schlumpf:
You can't just have a list of commas. Give a value for all fields you specified or specify less fields.
Смердокрыл:
Thanks, the problem with execution is fixed. I also changed the guid in the script from 15737508 to -15737508, so its processed as a guid.
New script(s):
--- Code: ---REPLACE INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES (15737508, 0, 0, 1, 68, 0, 100, 0, 70, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, '');
REPLACE INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES (15737508, 0, 1, 0, 68, 0, 100, 0, 70, 0, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 1632.45, 226.363, 62.593, 1.05743, ''); --- End code ---
Still, when I run the event (that triggers this smart script), the npc doesnt move.
Смердокрыл:
Can anyone help? please
Смердокрыл:
Ok, modcraft is dead
Navigation
[0] Message Index
[#] Next page
|