Another Item Hunt
By Akkarin
Morning all! This is a script that i developed for my server circa 2007 and it's been collecting digital dust since then to be honest. Basically, this is an Item Hunt script that can be fully automated by adding OnClock labels.
What's different about this one to everyone elses? Not a lot. Except one of the NPCs uses the npcwalk script so he moves around the map moaning about his lost items that you've got to find.
The configs should be fairly self-explainatory:
//================
// CONFIGS START
//================
// This is the array of items that the NPCs will ask your players to find.
// They must be separated by a comma (,) and cannot contain more than
// 127 items. That's the law. End of.
setarray $FindItems[0],913,507;
// Set the min amount of an item to look for
set $FIMIN,5;
// Set the max amount of an item to look for
set $FIMAX,30;
// Set your prize item ID here!
set $FIPrize,501;
// Set your prize quantity here!
set $FIPrizeAmt,2;
// Jacob is Jacob by default, but you can change his name here
set $FIJname$,"Jacob";
// Colette is Colette by default, but you can change her name here
set $FICname$,"Colette";
// GM Level / Group required to start/stop scripts
set $FIAuth,80;
//================
// CONFIGS END
//================
To start the event manually, send a PM to NPC:Jacob saying "start" (no "").
You may notice that the NPC sprite is uhm... custom:
prontera,144,178,4<TAB>script<TAB>Jacob<TAB>2500,{
Since this NPC walks, the normal NPC sprites look silly just gliding along. This was originally intended to use the mob_avail.txt e.g.
// Add to db/mob_avail.txt to make Jacob look like a High Priest
2500,4009,1,23,1,0,0,0,0,0,0,1
Obviously, client-side needs to be updated (npcidentity.lu[a/b] and jobname.lu[a/] if i recall correctly) and if you want to use a custom mob, don't forget to add him to the database! If not, change 2500 to a normal NPC sprite. Or use the poring sprite and watch him bounce around while talking..
As it's been a -VERY- long time since I've done any decent scripting, and like i said - this script is old, half of it looks another language (no pun intended..) so if there's something that can be optimised, or that should be using a different function, please let me know
jacob.txt