Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Plugins & Mods

Quests::Plugins & Mods Completed plugins for public use as well as modifications.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #12  
Old 01-17-2018, 06:31 PM
Splose's Avatar
Splose
Discordant
 
Join Date: Apr 2014
Posts: 280
Default

Quote:
Originally Posted by Aardil View Post
I am looking for a way to scale only certain NPC's. I dont want to scale the whole zone. Note that stats will stay the same unless using Akka's scaling system or adding a bit more code.

Is it possible?
if so how?

Aardil
yeah.. you can use default.pl to control any npc in the zone provided they don't already have their own script.

Here is a very simple example of doing that.

quests/zonesn/default.pl

Code:
sub EVENT_SPAWN {
	$nn = $npc->GetCleanName();	
	
	if($nn=~/skeleton/i) {
		$npc->SetLevel(60);		#:: Set all npcs in the zone with 'skeleton' in their name to level 60
	}
	
	if($nn eq "Fippy Darkpaw") {
		$npc->SetLevel(75);		#:: Set any npc with the name 'Fippy Darkpaw' to level 75
	}
}
Reply With Quote
 

Thread Tools
Display Modes

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 06:17 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