EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Random Race/Class/Texture/Weapons on spawn (https://www.eqemulator.org/forums/showthread.php?t=34941)

Luccian 02-23-2012 07:39 PM

Quote:

Originally Posted by Luccian (Post 207494)
Personally I would prefer not to use the RandomWeapons plugin all together. Its an excellent tool, however I feel I have more control if I were able to just ChooseRandom. I just dont know how to use it to select a primary/ sec item.

I thought the entry was quest::wearchange(7,(weapon#)), where I could make the weapon number a chooserandom, however I was mistaken.

Quote:

Originally Posted by joligario
Is that vBulletin or is there really a space in 10650 weapon?

Quote:

Originally Posted by Harcourt
No space, probably just a typo.

This small amount of chat made me think I mistakenly put a space in my initial submission, and found that I had infact done that. Which caused the wearchange quest to no work correctly. SO all in all, I got the last answer I was looking for =)

Thanks!! Now I can randomize the npcs, textures, races, genders and even select certain weapons to apply based on location. You're all a huge huge help.

Luccian 02-23-2012 07:42 PM

Just for closure, the final result I used was this. In the future if anyone has questions similar to mine they could always save the trouble and check out here!

Code:

sub EVENT_SPAWN
{
quest::settimer("feature",1);
}

sub EVENT_TIMER
{
        if ($timer eq "feature")
        {
                quest::stoptimer("feature");
                my $randomweapon=quest::ChooseRandom(10648,10649,10650,10688,10692);
                        quest::wearchange(7,$randomweapon);
                        quest::wearchange(8,$randomweapon);
                plugin::SpawnDynNPC(quest::ChooseRandom(1,2,3,4,5,6,7,8,9,10,11,12,128,130,330,522),quest::ChooseRandom(1,2,3),quest::ChooseRandom(0,1));
                plugin::RandomFeatures($npc);
        }
}



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

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.