The setUrl native AI script function sets a URL action on all spawned 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)
CCreatureSetUrlMsg listing every spawned bot of the group is sent to EGSWebPageFlag 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://example.ryzom.dev/example.php");
// Dynamic URL with player context
($playerEid)getCurrentPlayerEid();
()setUrl("Check your stats", "https://example.ryzom.dev/stats.php?eid=" + $playerEid);
// Remove the menu entry again
()clearUrl();
WITH_RYZOM_FORGE), setting the URL to "*" removes the menu entry as well. In any other build "*" has no special meaning and is stored as the URL.Source: ryzom/server/src/ai_service/nf_grp.cpp (setUrl_ss_), ryzom/server/src/entities_game_service/creature_manager/creature_manager.cpp (CCreatureSetUrlImp::callback)