NexusXVI Posted October 22, 2013 Posted October 22, 2013 (edited) HI i want to add a command on an npc that triggers @cleanmap every 60sec .Can anyone share? Edited October 22, 2013 by NexusXVI Quote
Capuche Posted October 22, 2013 Posted October 22, 2013 - script ijnoo -1,{ OnInit: while(1) { sleep 60000;// 60 secs cleanmap "<map name>"; } } 1 Quote
LuLu Posted October 22, 2013 Posted October 22, 2013 (edited) read this *atcommand "<command>"; This command will run the given command line exactly as if it was typed in from the keyboard by the player connected to the invoking character, and that character belonged to an account which had GM level 99. // This will ask the invoker for a character name and then use the '@nuke' // GM command on them, killing them mercilessly. input @player$; atcommand "@nuke "+@player$; Note that for atcommands bound using 'bindatcmd', this command will execute the original atcommand, not the script-bound atcommand. in your case, you need to put these in you script <map>,<x>,<y>,<f> script <npcname> <id>,{ end; OnInit: while(1) { //loop atcommand "@cleanmap"; sleep 60000; //sleep for 60 seconds } end; } Just edit it by the way you need it. Edited October 22, 2013 by LuLu 2 Quote
Moriarty Posted October 22, 2013 Posted October 22, 2013 Wouldn't be easier to use mapflag nodrop ? Quote
NexusXVI Posted October 22, 2013 Author Posted October 22, 2013 Well I want people to LOOT something. I just dont want the map to be fulled of trash Quote
LuLu Posted October 22, 2013 Posted October 22, 2013 Sorry to tell but there is a downside here. If the timer is running, lets says last wipe was 55 seconds ago, then some player drops an item. After 5 seconds the item that the player dropped will be removed immediately (it has been only 5 seconds since he/she drops it). So if the time is 59 seconds and you drop something, after 1 second, it will be removed. No one can loot it. What if players are teasing each other by dropping a rare item to the floor and the timer is at it's 59th second? That item will be wiped. 1 Quote
nanakiwurtz Posted October 22, 2013 Posted October 22, 2013 Why not use the city cleaner feature? You could spawn some monsters like kukre / andre / poring to help clean up the trash. Or just reduce the delay on your conf file so droppped item will last shorter on the ground.. Quote
Question
NexusXVI
HI i want to add a command on an npc that triggers @cleanmap every 60sec .
Edited by NexusXVICan anyone share?
7 answers to this question
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.