API UO ResetProfile - LIHACHTETAN/ClassicUO-BadNewbie-BasicIDE GitHub Wiki
ClassicUO / Basic IDE
Оглавление · Алфавитный указатель · Profiles & Configuration
Resets the currently loaded ClassicUO/Basic character profile to default.json (or built-in defaults when no default file exists). The profile identity is preserved: account/user name, connected server name and character name are copied back into the reset profile. The result is saved to the current server-specific profile.json.
The profile directory is not v2: it remains under Data/Profiles/<connected server name>/<character serial>/ (or the configured ProfilesPath equivalent).
UO.ResetProfile() -> Unit
Регистр имени не важен. Any — динамическое значение Basic; Unit — отсутствие возвращаемого значения. Integer — знаковое 32-битное число, Decimal — число с плавающей точкой. Правила типов, serial, индексов и ожиданий.
None; this command's registered overload takes no positional arguments.
No parameters; no argument defaults apply.
This resets settings for the currently loaded character profile; it does not delete the profile directory.
- Server/account/character identity is preserved intentionally.
- If no character profile is active, the command reports an error and performs no reset.
- Runtime/UI objects that read profile settings use the new profile after the reset; settings that require recreating a window may become visually apparent after reopening that window.
Возвращает: Unit — значения нет. Выполняйте вызов отдельной строкой; его нельзя использовать как проверку успеха. Эффект и ограничения зависят от команды.
Каждый блок — самостоятельный скрипт из мануала проекта. Параметры демонстрационного объекта/контейнера и условия действия необходимо сопоставить с вашей игровой ситуацией.
SUB Main()
UO.ResetProfile()
END SUBSUB Main()
UO.ResetProfile()
END SUBSUB Main()
IF UO.Connected THEN
UO.ResetProfile()
END IF
END SUBSUB RunAction()
UO.ResetProfile()
END SUB
SUB Main()
# Запуск процедуры выполняет действие:
RunAction()
END SUBРеализация и проверка контракта
InjectionScript.Runtime.InjectionApiUO+<>c__DisplayClass62_0.<RegisterLegacyManualAliases>b__1
Соответствующая ветвь совместимого обработчика в InjectionApiUO.cs. Arg(i)/Text(i) читают позицию с нуля; bridge обращается к клиенту. Прямые типизированные перегрузки перечислены выше и могут иметь отдельный маршрут.
bridge.ResetProfile(); break;Источник реестра и отчёт сверки. Примеры проверяются загрузчиком/парсером включённого runtime. Действия на игровом сервере этой проверкой не исполняются.