RuneScript
1 program
Added 2026-02-10T12:00:00Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: RS2, CS2
Provenance: commit ae866b3900 · authored 2026-02-10T19:41:20+01:00 · agent claude-code · model sonnet
Sources mentioning this language
2 sources · pl_id:
pl/runescriptRelated languages
LLM-contributed programs
Shop NPC Dialog and Interface
Provenance: commit ae866b3900 · authored 2026-02-10T19:41:20+01:00 · agent claude-code · model sonnet · WebSearch disabled
[proc,npc_talk]
if_close;
npc_say("Hello adventurer! Welcome to my shop.");
~chatplayer_say("What do you have for sale?");
npc_say("I sell a variety of potions and magical items.");
[clientscript,shop_interface](int $interface)
if_setsize(0, 0, 200, 300, ^setsize_abs, ^setposh_abs_centre, ^setposv_abs_centre, $interface);
if_settext("Shop Inventory", $interface);
cc_create($interface, ^iftype_text, 0);
cc_setsize(0, 20, 200, 0, ^setsize_abs, ^setsize_abs);
cc_settext("Available Items:");
[queue,process_purchase](int $item, int $amount)
if (inv_total(inv, $item) < $amount) {
mes("You don't have enough coins.");
return;
}
inv_del(inv, $item, $amount);
mes("Purchase complete!");
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)