Page 1 of 1

SpawnChecker v1.0...

Posted: Sun Jun 06, 2004 4:50 am
by anon123
SpawnChecker v1.0...

Description: SpawnChecker follows the KISS methodology(Keep It Simple Stupid), and simply checks a list of npc names for their presence in the zone. If the mob is present the script will echo
<<<<::..A Mob is present!

Hint: This script can be very useful! Let others do the work for you ;-) Log in after a hard day at work, take a quick stroll over to Veksars, and run this script. Most likely placeholders have been being killed all day yet you now have the ability to check for nameds with one command "/macro veksar"!

I will post a few examples of SpawnChecker zone files to get you all started. Please review these lists and make sure they are accurate and complete.

If you create your own SpawnChecker macro, be kind, return to the community and post it here! That is all I ask.

One thing to remember when creating a SpawnChecker zone file: The NPC name used in:

/Call CheckForSpawn "NPC's Name" MUST be spelled correctly, and is not case sensative.

SpawnChecker - Veksar...

Code: Select all

| SpawnChecker v1.0 - Veksar
| veksar.mac 
| Author      : Anon123 
| Version     : v1.0 2004-06-06
| Useage      : /macro veksar 
| Description : This macro will check if any nameds who drop loot are up in Veksar.
| Props       : Props to necrotalk.com for helping me with necro related issues. 
|------------------------------------------------------------------------------------

|-------------------------------------------------------------------------------- 
|SUB: Check for spawn sub declared here..
|-------------------------------------------------------------------------------- 

Sub CheckForSpawn(SpawnName) 
/declare mySpawnID int local 0 
/varset mySpawnID ${Spawn[NPC ${SpawnName}].ID} 
/echo checking for ${SpawnName}..
/if (${mySpawnID}) { 
   /echo <<<<<<..::${Spawn[${mySpawnID}].CleanName} is present! 
} 
/return

Sub Main

|-------------------------------------------------------------------------------- 
|Call CheckForSpawn "Enter spawn name here" 
|-------------------------------------------------------------------------------- 

/call CheckForSpawn "a plagued slave"
/call CheckForSpawn "a sad slave"
/call CheckForSpawn "an undead thief"
/call CheckForSpawn "a decaying slavemaster"
/call CheckForSpawn "a rotting shopkeeper"
/call CheckForSpawn "a decaying slavemaster"
/call CheckForSpawn "a kylong crusader"
/call CheckForSpawn "an iksar highborn"
/call CheckForSpawn "trooper muruk"
/call CheckForSpawn "warlock dirloz"
/call CheckForSpawn "warlock gurag"
/call CheckForSpawn "feral lord gulok"
/call CheckForSpawn "hierophant ginai"
/call CheckForSpawn "hierophant vradik"
/call CheckForSpawn "an iksar behemoth"
/call CheckForSpawn "an undying blacksmith"
/call CheckForSpawn "champion kamak"
/call CheckForSpawn "luminary salox"
/call CheckForSpawn "remains of sythrax"


/return
SpawnChecker - Droga...

Code: Select all

| SpawnChecker v1.0 - Droga
| veksar.mac 
| Author      : Anon123 
| Version     : v1.0 2004-06-06
| Useage      : /macro Droga 
| Description : This macro will check if any nameds who drop loot are up in Droga.
| Props       : Props to necrotalk.com for helping me with necro related issues. 
|------------------------------------------------------------------------------------

|-------------------------------------------------------------------------------- 
|SUB: Check for spawn sub declared here..
|-------------------------------------------------------------------------------- 

Sub CheckForSpawn(SpawnName) 
/declare mySpawnID int local 0 
/varset mySpawnID ${Spawn[NPC ${SpawnName}].ID} 
/echo checking for ${SpawnName}..
/if (${mySpawnID}) { 
   /echo <<<<<<..::${Spawn[${mySpawnID}].CleanName} is present! 
} 
/return

Sub Main

|-------------------------------------------------------------------------------- 
|Call CheckForSpawn "Enter spawn name here" 
|-------------------------------------------------------------------------------- 

/call CheckForSpawn "bone knight runri"
/call CheckForSpawn "bone caster fizzik"
/call CheckForSpawn "bone trooper grolin"
/call CheckForSpawn "dirt criminal vakov"
/call CheckForSpawn "dust hoodlum heaprit"
/call CheckForSpawn "earth mystic gedak"
/call CheckForSpawn "earth seer gamolk"
/call CheckForSpawn "flame master japal"
/call CheckForSpawn "ice adept amozik"
/call CheckForSpawn "ice master cialin"
/call CheckForSpawn "jailor maufan"
/call CheckForSpawn "king dronan"
/call CheckForSpawn "minion of xalgoz"
/call CheckForSpawn "magic adept xabok"
/call CheckForSpawn "stone crook piklo"
/call CheckForSpawn "whip cracker krazzim"
/call CheckForSpawn "moss knight yortal"
/call CheckForSpawn "slinker ukul"
/call CheckForSpawn "cave guardian prehtil"
/call CheckForSpawn "bone caller nathid"
/call CheckForSpawn "dirt defender gropp"
/call CheckForSpawn "blood ritualist taprom"
/call CheckForSpawn "stalag trooper biamas"
/call CheckForSpawn "flame adept verdalix"
/call CheckForSpawn "death ritualist stromik"
/call CheckForSpawn "stone seer kaigek"
/call CheckForSpawn "a savage drogan spider"
/call CheckForSpawn "a fierce drogan spider"


/return

Posted: Sun Jun 06, 2004 5:04 am
by Fuergrissa
its a very nice macro and im sure a lot of hard work has gone into it but why dont you just use the spawnalert plugin, it will do a better job cus it will check every zone you enter and it also will ALLWAYS be on.

Posted: Sun Jun 06, 2004 5:35 am
by anon123
Yeah I heard about that plugin...

This is for those who dont want to bother with a plugin and recompiling and such...

Anyways, i'm a noob heheh, didnt know it checks all zones etc. Either way this is a simplified version of that system i guess :)

Posted: Sun Jun 06, 2004 4:13 pm
by Glasscoin
A more efficient way of doing this, imo, would be to have an INI with the long zone names as sections, with the list of rare mobs under said sections. Then you wouldn't have to have a macro for every zone you visited, which is pretty inefficient.

Posted: Sun Jun 06, 2004 8:08 pm
by Drumstix42
If you care, both say veskar.mac in the comment area.

Posted: Wed Jun 09, 2004 1:44 pm
by hakcenter
added my own flufs to it, so i dont have to edit the macro to check for multi things, or make 'multiple' copies, you know ^_^

Code: Select all

| SpawnChecker v1.1
| spawn.mac
| Author      : Anon123 --edit Hakcenter
| Version     : v1.0 2004-06-09
| Useage      : /macro spawnname #ofbeeps
| Description : This macro will check for spawns of any mob
| Props       : 
|------------------------------------------------------------------------------------

Sub CheckForSpawn(SpawnName)

/declare beep int local 
/declare mySpawnID int local 0
/varset mySpawnID ${Spawn[NPC ${SpawnName}].ID}

/echo Checking for ${SpawnName}..
:loop
   /if (${mySpawnID}) {
      /echo ${Spawn[${mySpawnID}].CleanName} is present!
      /echo Time of spawn is ${Time.Time24}
         /for beep 1 to ${Param1}
            /beep
         /next beep
   /endmacro
   }
/goto :loop
/return

Sub Main

/if (!${Defined[Param0]}) {  
   /echo Usage:  /macro spawn.mac name #beeps
   /endmacro
}
/if (!${Defined[Param1]}) {
   /echo Usage:  /macro spawn.mac name #beeps
   /endmacro
}

/call CheckForSpawn ${Param0}
/return
wanted to make a mental note, the for -beeps- crap dont work at all