Jump to content
  • 0

Autokick Vender's after time


Question

5 answers to this question

Recommended Posts

Posted

Try : 

-    script    Sample    -1,{
    OnInit:
        addtimer 5000,strnpcinfo(0)+"::OnCheck"; // 5 seconds
        end;
        
    OnCheck:
        if ( checkvending() )
            atcommand "@kick " +strcharinfo(0);
        end;
        
}
Posted

Try : 

-    script    Sample    -1,{
    OnInit:
        addtimer 5000,strnpcinfo(0)+"::OnCheck"; // 5 seconds
        end;
        
    OnCheck:
        if ( checkvending() )
            atcommand "@kick " +strcharinfo(0);
        end;
        
}

I tested it now and get this error:

 

[Error]: script_rid2sd: fatal error ! player not attached!
[Debug]: Function: addtimer (2 parameters):
[Debug]: Data: number value=402000
[Debug]: Data: string value="Merchkick::OnCheck"
[Debug]: Source (NPC): Merchkick (invisible/not on a map)

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