Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 07-18-2017, 07:59 AM
Baelu
Sarnak
 
Join Date: Jun 2017
Posts: 30
Default

idk man only models im using are playable races, and the code I originally used worked fine, was just having a sizing issue. Here is the code im using now

Code:
sub EVENT_SPAWN {
	# keys start at 1, add as many key/value pairs as you'd like, first element in array is race, second is size, third is gender
	%SpawnHash = (
	1		=>	[1, 6, 0],
	2		=>	[2, 7, 1],
	3		=>	[3, 6, 1],
	4		=>	[4, 5, 1],
	5		=>	[5, 6, 0],
	6		=>	[6, 5, 1],
	7		=>	[7, 5.5, 0],
	8		=>	[8, 4, 1],
	9		=>	[9, 8, 0],
	10		=>	[10, 9, 1],
	11		=>	[11, 3.5, 1],
	12		=>	[12, 3, 0],
	13		=>	[130, 7, 1],
	14		=>	[522, 6, 0],
	15		=>	[128, 6, 0],
	16		=>	[330, 5, 1],
	);
	my $selectedkey = quest::ChooseRandom(1..(scalar keys %SpawnHash));
	quest::npcrace($SpawnHash[$selectedkey][0]);
	quest::npcsize($SpawnHash[$selectedkey][1]);
	quest::npcgender($SpawnHash[$selectedkey][2]);
}

And here is my first code,

Code:
@races = (1,2,3,4,5,6,7,8,);
@gender = (0,1);
sub EVENT_SPAWN
{
quest::npcrace(quest::ChooseRandom(@races));
quest::npcgender(quest::ChooseRandom(@gender));
}
The first code produces only tiny humans, the 2nd code changes the races and genders but you end up with giant sized gnomes and small ogres lol. Anyone have a suggestion?
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 10:37 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3