Skip to content

13. Store Terminal Request Board (PostStoreRequest) ​

The shop computer terminal features a Requests board where factions and NPCs post timed item commissions. NpcFrameworkSdk.PostStoreRequest constructs a StoreRequest and activates it immediately via StoreRequest.ActivateRequest(req, force).


SDK Signature ​

csharp
public static bool PostStoreRequest(
    string id,
    string title,
    string description,
    string requesterName,
    string factionId,
    string requiredItemId,
    int requiredCount = 1,
    int durationDays = 5,
    int creditReward = 200,
    int reputationReward = 10,
    bool force = true)

Code Example ​

csharp
NpcFrameworkSdk.PostStoreRequest(
    id: "v_afterlife_chip_req",
    title: NpcFrameworkSdk.T("来生佣兵义体芯片悬赏", "Afterlife Merc Aug Chip Bounty"),
    description: NpcFrameworkSdk.T("V 需要额外的原型义体芯片用于修复神经突触,报酬丰厚。", "V needs an extra Augmentation Chip for neural calibration. Pays top credit."),
    requesterName: "V (Vincent)",
    factionId: "FACTION_BLACK_MARKET",
    requiredItemId: "aug_chip",
    requiredCount: 1,
    durationDays: 6,
    creditReward: 450,
    reputationReward: 15,
    force: true
);

Custom NPC Framework Documentation