Akkarin Posted August 23, 2012 Group: Forum Manager Topic Count: 282 Topics Per Day: 0.06 Content Count: 3144 Reputation: 1630 Joined: 03/26/12 Last Seen: Tuesday at 10:17 AM Share Posted August 23, 2012 (edited) 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 Edited August 23, 2012 by Akkarin Quote Link to comment Share on other sites More sharing options...
Blunic Posted September 12, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 4 Reputation: 0 Joined: 08/05/12 Last Seen: July 2, 2016 Share Posted September 12, 2012 NPC not moving. Quote Link to comment Share on other sites More sharing options...
Akkarin Posted September 24, 2012 Group: Forum Manager Topic Count: 282 Topics Per Day: 0.06 Content Count: 3144 Reputation: 1630 Joined: 03/26/12 Last Seen: Tuesday at 10:17 AM Author Share Posted September 24, 2012 Could you elaborate a bit more o.O do you get any mapserver errors? did you change the sprite? are you using a custom/class sprite? did you change any of the co-ordinates? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.