Jump to content

NPC Equipment/Weapons


Guest kaotik

Recommended Posts

It's quite simple actually on Quice.

Tab creature template, at the right, you can find a equipement_id field.

You must enter a equipement_id (and NOT entry of an item). You can't equip every item; you can find an existing NPC with the weapon you'd like to equip, then see what is in the equipement_id field, and copy/paste to your npc :)

Link to comment
Share on other sites

It really should not be a problem if you use the Creature_template tab in Quice. If you want to preview and immediately apply equipment_id in-game, see the code for .npc setequipment in ticket 373. It still works with the latest revision but you'll probably have to apply the changes manually at this point.

Link to comment
Share on other sites

Ah ok thanks :D sending the patch to the powers-that-be for review and implementation. Another quick question. I was able to get melee and bows equipped on the npc's, but on a select npc I am trying to get it to just stand there and shoot at the target. Tried various commands through .wp for it to just shoot, but it error's out. Making the target hostile, the npc shoots once, and runs in and autoattacks. o.O just thought of it while writing this, hehe, maybe autoshot? Not sure how else to get him to stay ranged, short of freezing him to the ground, but that's not restart-proof.

Link to comment
Share on other sites

  • 2 weeks later...

Figured it out using EventAI:

DELETE FROM `creature_ai_scripts` WHERE (`creature_id`=25244);
INSERT INTO `creature_ai_scripts` VALUES 
( 2680227, 25244, 1, 0, 100, 6, 0, 0, 0, 0, 21, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 'Warsong Marksman - Prevent Combat Movement and Prevent Melee on Spawn'),
( 2680228, 25244, 4, 0, 100, 6, 0, 0, 0, 0, 28, 0, 47543, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Warsong Marksman - Remove Frozen Prison on Aggro'),
( 2680229, 25244, 4, 0, 100, 2, 0, 0, 0, 0, 11, 15620, 1, 0, 23, 1, 0, 0, 0, 0, 0, 0, 'Warsong Marksman (Normal) - Cast Shoot and Set Phase 1 on Aggro'),
( 2680230, 25244, 9, 1, 100, 3, 5, 30, 2300, 3800, 11, 15620, 1, 0, 40, 2, 0, 0, 0, 0, 0, 0, 'Warsong Marksman (Normal) - Cast Shoot and Set Ranged Weapon Model (Phase 1)'),
( 2680231, 25244, 4, 0, 100, 4, 0, 0, 0, 0, 11, 22907, 1, 0, 23, 1, 0, 0, 0, 0, 0, 0, 'Warsong Marksman (Heroic) - Cast Shoot and Set Phase 1 on Aggro'),
( 2680232, 25244, 9, 1, 100, 5, 5, 30, 2300, 3800, 11, 22907, 1, 0, 40, 2, 0, 0, 0, 0, 0, 0, 'Warsong Marksman (Heroic) - Cast Shoot and Set Ranged Weapon Model (Phase 1)'),
( 2680233, 25244, 9, 1, 100, 6, 25, 80, 0, 0, 21, 1, 1, 0, 20, 1, 0, 0, 0, 0, 0, 0, 'Warsong Marksman - Start Combat Movement and Start Melee at 25 Yards (Phase 1)'),
( 2680234, 25244, 9, 1, 100, 6, 0, 5, 0, 0, 21, 1, 0, 0, 40, 1, 0, 0, 20, 1, 0, 0, 'Warsong Marksman - Start Combat Movement and Set Melee Weapon Model and Start Melee Below 5 Yards (Phase 1)'),
( 2680235, 25244, 9, 1, 100, 6, 5, 15, 0, 0, 21, 0, 1, 0, 20, 0, 0, 0, 0, 0, 0, 0, 'Warsong Marksman - Prevent Combat Movement and Prevent Melee at 15 Yards (Phase 1)'),
( 2680236, 25244, 9, 0, 100, 3, 5, 45, 9500, 10000, 11, 47777, 1, 1, 40, 2, 0, 0, 0, 0, 0, 0, 'Warsong Marksman (Normal) - Cast Incendiary Shot and Set Ranged Weapon Model'),
( 2680237, 25244, 9, 0, 100, 5, 5, 45, 9500, 10000, 11, 56933, 1, 1, 40, 2, 0, 0, 0, 0, 0, 0, 'Warsong Marksman (Heroic) - Cast Incendiary Shot and Set Ranged Weapon Model'),
( 2680238, 25244, 0, 0, 100, 7, 12000, 15000, 16100, 19000, 11, 48191, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 'Warsong Marksman - Cast Rapid Shot'),
(2680239, 25244, 7, 0, 100, 6, 0, 0, 0, 0, 22, 0, 0, 0, 40, 1, 0, 0, 0, 0, 0, 0, 'Warsong Marksman - Set Phase to 0 and Set Melee Weapon Model on Evade');

P.S.- Also figured out why WP's were erroring... core was corrupt. fresh x64 build solved it.

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use