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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 10-27-2013, 12:24 PM
rixcraven
Sarnak
 
Join Date: Nov 2008
Location: UK
Posts: 57
Default Changing a NPC race in Perl, please help

ub EVENT_SPAWN {
#Set a random timer between 5 and 30
my $StartMove = int(rand(25)) + 5;
quest::settimer("roam", $StartMove);
}

sub EVENT_TIMER {
if ($timer eq "roam") {
quest::stoptimer("roam");
plugin::RandomRoam(100, 100);
my $NextMove = int(rand(25)) + 5;
quest::settimer("roam", $NextMove);
}
sub EVENT_COMBAT {
quest::npcfeature("race", 454);


}
sub EVENT_SLAY {
quest::npcfeature("race", 1);
}
}

This script is supposed to change an NPC, from human female into a Werewolf when she is attacked..
Could anyone shed any light on why it isn't working???
What happens is, she changes into a human female??? not a werewolf..
please help
Reply With Quote
  #2  
Old 10-27-2013, 12:40 PM
NatedogEZ's Avatar
NatedogEZ
Developer
 
Join Date: Dec 2012
Posts: 515
Default

Guessing you need to change Gender to 2 when she turns into a werewolf, then back to 1 for female when she dies.
Reply With Quote
  #3  
Old 10-27-2013, 01:12 PM
rixcraven
Sarnak
 
Join Date: Nov 2008
Location: UK
Posts: 57
Default

Quote:
Originally Posted by NatedogEZ View Post
Guessing you need to change Gender to 2 when she turns into a werewolf, then back to 1 for female when she dies.
I got the first change to work
I used quest::npcrace(454) and she turns into a lovely werewolf

However, she won't change back after she's killed whatever attacked her,
Any ideas????

I'm halfway there!!
Reply With Quote
  #4  
Old 10-27-2013, 01:20 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

You could use quest::npcrace(1); and quest::npcgender(1); to possibly solve your issue.
Reply With Quote
  #5  
Old 10-27-2013, 01:38 PM
rixcraven
Sarnak
 
Join Date: Nov 2008
Location: UK
Posts: 57
Default Solved!!!

Quote:
Originally Posted by Kingly_Krab View Post
You could use quest::npcrace(1); and quest::npcgender(1); to possibly solve your issue.
THANKS
Got it....
She's working beautifully!
Reply With Quote
  #6  
Old 10-29-2013, 02:08 AM
knowom's Avatar
knowom
Discordant
 
Join Date: Jun 2006
Posts: 371
Default

This was a cool idea btw rixcraven defiantly gives me ideas heck you could devote a entire zone like Kithicor Forrest to a Human vs Lycan vs Vampire scenario of sorts or maybe a couple of zones even so the Lycans and Vampires would retreat to some tunnel dwellings free from daylight then come out at night again.
__________________
"We are all on the same team, and I think not enough people realize this."
- Leetsauce
Reply With Quote
  #7  
Old 10-31-2013, 03:26 PM
rixcraven
Sarnak
 
Join Date: Nov 2008
Location: UK
Posts: 57
Default

I know!!! lol if only I had the ability
The npc is Angua (from Discworld), and it looks really great when players see her change into a werewolf and back..
I too would love to use the day/night cycles, how are you at using them?
Reply With Quote
  #8  
Old 10-31-2013, 03:50 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default

The excitement that you guys are sharing with eachother reminds me of...

Reply With Quote
Reply


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 02:38 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3