Vincent Posted October 5, 2013 Posted October 5, 2013 Hello, is there any way to kick vending merchants after a set time? Quote
Patskie Posted October 5, 2013 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
Vincent Posted October 7, 2013 Author 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
Patskie Posted October 7, 2013 Posted October 7, 2013 Attach the rid of players who is in vending mode ( Refer Getcharid & Attachrid ) Quote
Emistry Posted October 7, 2013 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
Question
Vincent
Hello,
is there any way to kick vending merchants after a set time?
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.