Thread: GetRace issue
View Single Post
  #2  
Old 02-25-2013, 07:39 AM
Drajor's Avatar
Drajor
Developer
 
Join Date: Nov 2012
Location: Halas
Posts: 355
Default

I can not see anything wrong with what you have and I do not have time right now to test it. Here is what I do with my guards.

Code:
sub EVENT_SPAWN {
	@races = (1..12);
	@weapons = (10518, 10519, 10625, 10657, 10786);
	$racesNum = @races;
	$weaponsNum = @weapons;
	quest::npcrace($races[int(rand($racesNum))]);
	quest::npctexture(3);
	
	quest::wearchange(7, $weapons[int(rand($weaponsNum))]);
	quest::wearchange(8, $weapons[int(rand($weaponsNum))]);
}
__________________
Drajor regards you indifferently -- what would you like your tombstone to say?
Reply With Quote