viewing paste Unknown #18910 | Athena

Posted on the
1 2 3 4 5 6 7 8 9
-   script  autotradeOFF    -1,{
    OnPCLoginEvent:
    if(checkvending() == (1 || 2)) end; // Check if player is trading @autotrade
    
    query_sql "SELECT `autotrade` FROM `char` WHERE `char_id`='"+getcharid(0)+"'", @autotrade_state;
    if(@autotrade_state) 
        query_sql "UPDATE `char` SET `autotrade`='0' WHERE `char_id`='"+getcharid(0)+"'";
    end;
}
Viewed 627 times, submitted by Guest.