Add server-authoritative switchbot (automatic attribute change) v1
/mt_switchbot 1 attrs|start|stop|status runs one bot per character that calls the original UseItem path every 250 ms, so checks, probabilities, ItemLog CHANGE_ATTRIBUTE and scroll use are the manual path's. Up to two alternatives of 1-5 targets; stops on matched/limit/no_scroll/item_gone/ rejected/busy/stopped, erased on logout or warp. Per-roll INFO lines are held back via a quiet flag on ChatPacket. MTF1 cap mask advertises 64. Verified live on 203 with an extra channel-5 core (port 13040) running the isolated build: limit, matched, already-matched, move during run, stop and logout during run; 72 ItemLog rows for 72 rolls. No attribute lock yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
1a367197f5
commit
afb3dfb1db
@@ -106,7 +106,7 @@ int main(){
|
||||
assert(rewards[0].total==100 && rewards[0].rule==WIKI_SINGLE);
|
||||
rewards=items.PortWikiChest(50012);assert(rewards[1].rule==WIKI_INDEPENDENT && rewards[1].weight==150 && rewards[1].total==100);
|
||||
assert(items.PortWikiChest(50013).empty() && items.PortWikiChest(19).empty());
|
||||
Character ch;query(ch,"1 1 cap");assert(ch.messages.back()=="MTF1 cap 1 1 63 1700000000");
|
||||
Character ch;query(ch,"1 1 cap");assert(ch.messages.back()=="MTF1 cap 1 1 127 1700000000");
|
||||
ch.messages.clear();query(ch,"1 2 mob 101 0");assert(ch.messages.size()==10 && ch.messages.back()=="MTF1 end 2 8");
|
||||
query(ch,"1 3 mob 101 999");assert(ch.messages.back()=="MTF1 error 3 offset");
|
||||
query(ch,"1 4 mob 9001 0");assert(ch.messages.back()=="MTF1 error 4 missing");
|
||||
|
||||
Reference in New Issue
Block a user