NexusXVI Posted October 22, 2013 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 227 Reputation: 6 Joined: 01/18/12 Last Seen: May 22, 2022 Share 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 Link to comment Share on other sites More sharing options...
Capuche Posted October 22, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted October 22, 2013 - script ijnoo -1,{ OnInit: while(1) { sleep 60000;// 60 secs cleanmap "<map name>"; } } 1 Quote Link to comment Share on other sites More sharing options...
LuLu Posted October 22, 2013 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 398 Reputation: 131 Joined: 11/10/12 Last Seen: October 6, 2024 Share 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 Link to comment Share on other sites More sharing options...
Moriarty Posted October 22, 2013 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 135 Reputation: 13 Joined: 06/20/12 Last Seen: April 14, 2018 Share Posted October 22, 2013 Wouldn't be easier to use mapflag nodrop ? Quote Link to comment Share on other sites More sharing options...
NexusXVI Posted October 22, 2013 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 227 Reputation: 6 Joined: 01/18/12 Last Seen: May 22, 2022 Author Share Posted October 22, 2013 Well I want people to LOOT something. I just dont want the map to be fulled of trash Quote Link to comment Share on other sites More sharing options...
LuLu Posted October 22, 2013 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 398 Reputation: 131 Joined: 11/10/12 Last Seen: October 6, 2024 Share 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 Link to comment Share on other sites More sharing options...
nanakiwurtz Posted October 22, 2013 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Share 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 Link to comment Share on other sites More sharing options...
NexusXVI Posted October 22, 2013 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 227 Reputation: 6 Joined: 01/18/12 Last Seen: May 22, 2022 Author Share Posted October 22, 2013 Already solved thanks Quote Link to comment Share on other sites More sharing options...
Question
NexusXVI
HI i want to add a command on an npc that triggers @cleanmap every 60sec .
Edited by NexusXVICan anyone share?
Link to comment
Share on other sites
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.