So I kinda worked up something I feel it will/should resemble for a particular instance for me. I just don't know what to put where I placed "???"
Code:
#By: Luccian
#This script will be used to have variable spawn appearances of NPCs. Through class, texture, race, wep1, and wep2.
sub EVENT_SPAWN
{
# Random Races: Human, Barbarian, Erudite, Wood Elf, High Elf, Dark Elf, Half Elf Dwarf
# : Troll, Ogre, Halfling, Gnome, Iksar, Vah Shir, Guktan, Drakkin
my $randomrace=quest::ChooseRandom(1,2,3,4,5,6,7,8,9,10,11,12,128,130,330,522);
quest::???($randomrace);
# Random Classes: Warrior, Cleric, Paladin, Ranger, Shadow Knight, Druid, Monk, Bard, Rogue
# : Shaman, Necromancer, Wizard, Magician, Enchanter, Beastlord, Berserker
my $randomclass=quest::ChooseRandom(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16);
quest::???($randomclass);
# Random Texture: Cloth, Leather, Chain, Plate
my $randomtexture=quest::ChooseRandom(0,1,2,3);
quest::???($randomtexture);
# Random Weapons: Revamped Old Weapons- 2 Handed Sword, Longsword, Dagger, Nail Board, Broken Bottle
my $randomweapon=quest::ChooseRandom(10648,10649,10650,10688,10692);
#Weapon1
quest::wearchange(7, $randomweapon);
#Weapon2
quest::wearchange(8, $randomweapon);
}