Hey,
I'm not 100% sure if anyone has made a tutorial on this sort-of thing before but I've decided to write one anyways.
Note: This does require that you are the server's owner or have access to the server's database, with the ability to edit it.
How to make you're NPC's equip items
Info:
This part of the tutorial is very simple and most people should know how to do this.
How-to:
===Step01===
Look up the number of a bow/gun and what ever weapon you would like the NPC to equip. (This is done the same way that you would look up an item to give to yourself.)
Write these numbers down like this:
12345 - Sword
54321 - Shield
51423 - Bow
===Step02===
Select you're npc and type the following:
.Npc equip1 12345
.Npc equip2 54321
.Npc equip3 51423
Now let me explain what these do:
equip1 (This is the NPC's main hand weapon.)
equip2 (This is the NPC's off-hand weapon.)
equip3 (This is the NPC's ranged weapon.)
After you've equipped all of you're npc's items to him/her proceed to the next step.
===Step03===
Now select you're npc again and type [.Npc Info]. Remember the npc's SpawnID!
===Step04===
Download HeidiSQL and then open up you're database.
Go to the table creature_proto.
Click the button that says [Filter] and type in the npc's SpawnID then click [Apply Filter].
Scroll all the way down the list until you see the column that is labeled [can_ranged] then type 1 in that feild.
Now fill out the columns that say [rangedattacktime], [rangedmindamage], and [rangedmaxdamage]. They should be simple and self-explanatory as to what should be filled out.
When you're finished filling all of the above columns out scroll down the columns until you find the column that says [combat_reach], type 3 in that field. Scroll to the column [bounding_radius], type 0.304 in that field.
Now for the last column. Scroll to the column that says [spell1] and type 45223.
===step05===
Now accept the changes to the npc by clicking the green check-mark near the top left corner of HeidiSQL.
===step06===
Finally restart you're server and test out the npc!
~This was originally uploaded onto AcWeb by me, but I figured it might be of some use here to =P