Jump to content
  • 0

@command On NPC


Question

7 answers to this question

Recommended Posts

Posted (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 by LuLu
  • Upvote 2
Posted

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.

  • Upvote 1
Posted

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..  /ok

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...