Vincent Posted October 5, 2013 Group: Members Topic Count: 130 Topics Per Day: 0.03 Content Count: 528 Reputation: 18 Joined: 09/11/12 Last Seen: March 5, 2020 Share Posted October 5, 2013 Hello, is there any way to kick vending merchants after a set time? Quote Link to comment Share on other sites More sharing options...
Patskie Posted October 5, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: November 10, 2024 Share Posted October 5, 2013 Try : - script Sample -1,{ OnInit: addtimer 5000,strnpcinfo(0)+"::OnCheck"; // 5 seconds end; OnCheck: if ( checkvending() ) atcommand "@kick " +strcharinfo(0); end; } Quote Link to comment Share on other sites More sharing options...
Vincent Posted October 5, 2013 Group: Members Topic Count: 130 Topics Per Day: 0.03 Content Count: 528 Reputation: 18 Joined: 09/11/12 Last Seen: March 5, 2020 Author Share Posted October 5, 2013 Thanks i will test it. Quote Link to comment Share on other sites More sharing options...
Vincent Posted October 7, 2013 Group: Members Topic Count: 130 Topics Per Day: 0.03 Content Count: 528 Reputation: 18 Joined: 09/11/12 Last Seen: March 5, 2020 Author Share Posted October 7, 2013 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) Quote Link to comment Share on other sites More sharing options...
Patskie Posted October 7, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: November 10, 2024 Share Posted October 7, 2013 Attach the rid of players who is in vending mode ( Refer Getcharid & Attachrid ) Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 7, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: Wednesday at 12:29 PM Share Posted October 7, 2013 conf/battle/misc.conf#L102 // Set this to the amount of minutes autotrade chars will be kicked from the server. at_timeout: 0 1 Quote Link to comment Share on other sites More sharing options...
Question
Vincent
Hello,
is there any way to kick vending merchants after a set time?
Link to comment
Share on other sites
5 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.