View Single Post
  #14  
Old 01-17-2018, 06:31 PM
Splose
Banned
 
Join Date: Apr 2014
Posts: 279
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