Its a good IDEA, just make it sure that u will not make a mistake in pricing after clicking the OK button or else u dont have time anymore in re checking it..
Thank you @@malufett. it's working!@vending.c
safestrncpy(sd->message, message, MESSAGE_SIZE);clif->openvending(sd,sd->bl.id,sd->vending);clif->showvendingboard(&sd->bl,message,0);+atcommand->exec(sd->fd, sd, "@autotrade", true);idb_put(vending->db, sd->status.char_id, sd);}
![]()
Its a good IDEA, just make it sure that u will not make a mistake in pricing after clicking the OK button or else u dont have time anymore in re checking it..
- script auto_autotrade -1,{attachnpctimer ""+strcharinfo(0)+"";initnpctimer;// Added this so the vendor will have 10 seconds to recheck the vended items before it goes to autotrade modeOnTimer10000; atcommand "@autotrade"; end; }
Oh, I mean, like the script will be triggered before it enters autotrade mode..nah..you don't need that you can set it at 'conf/battle/misc.conf'
// Set this to the amount of minutes autotrade chars will be kicked from the server.at_timeout: 0
![]()
Damn. Yeah. Haven't think of thatyou can use 'bindatcmd'
![]()
We use essential cookies to make this site work, and optional cookies to enhance your experience.