The setUrl native AI script function sets a URL action on all bots in the group. This adds an entry to the bot's right-click contextual menu that opens the specified URL in the in-game browser when clicked by a player.
()setUrl(actionName: s, url: s)
"*" to clear the URL and remove the menu entry.CCreatureSetUrlMsg is sent to EGS for each spawned bot in the groupWebPageFlag in the creature's BotChat program and stores the URL and action nameWebPageFlag is set)// Add a web link to the NPC
()setUrl("Visit our website", "https://app.ryzom.dev/example.php");
// Dynamic URL with player context
($playerEid)getCurrentPlayerEid();
()setUrl("Check your stats", "https://app.ryzom.dev/stats.php?eid=" + $playerEid);
// Clear the URL (removes the menu entry)
()setUrl("", "*");
"*" clears the WebPageFlag on EGS, effectively removing the contextual menu entry.Source: ryzom/server/src/ai_service/nf_grp.cpp (setUrl_ss_), ryzom/server/src/entities_game_service/creature_manager/creature_manager.cpp (CCreatureSetUrlImp::callback)