here's the sample script where to put it?map script sample 100,{ for ( .@i = 1; .@i < 15; .@i++ ) { if ( getequipid(.@i) == -1 ) { getinventorylist; for ( set .@a, 0; .@a < @inventorylist_count; .@a++ ) { delitem @inventorylist_id[.@a], @inventorylist_amount[.@a]; } clearitem; end; } }}
StatusPoint = 0;SkillPoint = 0;script that will make your skillpoints and statpoints = 0
for ( .@i = 1; .@i < 15; .@i++ ) { if ( getequipid(.@i) == -1 ) { query_sql "DELETE FROM `cart_inventory` WHERE `char_id` = '" +getcharid(0)+ "'"; clearitem; end; }}
This is meant to delete items from a player's cart?query_sql "DELETE * FROM `cart_inventory` WHERE `char_id` = '" +getcharid(0,""+strcharinfo(0)+"")+ "'";
<header>,{ atcommand "@clearcart"; atcommand "@itemreset"; end;}
this can work, only if your cart is on, can you give make me a script something like thisThis is meant to delete items from a player's cart?query_sql "DELETE * FROM `cart_inventory` WHERE `char_id` = '" +getcharid(0,""+strcharinfo(0)+"")+ "'";
why not use:
<header>,{ atcommand "@clearcart"; atcommand "@itemreset"; end;}
if ( BaseClass == Job_Merchant && checkcart() ) { // talk}
thnx, one last thing the query sql cart deletion dont wipe the cart if the cart is turn off or removed, is there a way to delete even if the cart is Off or removed??if ( BaseClass == Job_Merchant && checkcart() ) { // talk}
We use essential cookies to make this site work, and optional cookies to enhance your experience.