Версия для печати темы

Нажмите сюда для просмотра этой темы в обычном формате

UoKit.com Форумы _ UO Pilot _ Checking if one tab (script is active) and enabling another

Автор: Fearuz 10.1.2023, 21:11

English verison: Hi, is there a way to check if a tab is active or inactive? and if its active, resume another script in pilot?

Russian:

Privet, yest' li sposob proverit', aktivna li vkladka ili neaktivna? i yesli on aktiven, vozobnovit' drugoy skript v pilotnoy versii?

Ty in advance!

Автор: Cockney 10.1.2023, 21:31

See https://uopilot.uokit.com/wiki/index.php?title=Scripts_(Lua) for lua and https://uopilot.uokit.com/wiki/index.php?title=Get_scripts for pilot version

https://uopilot.uokit.com/wiki/index.php?title=Resume_script - for resume scripts (pilot version)

For lua

Код

resume_script(<script number>)

Автор: nykep 10.1.2023, 21:35

i used variables for this. Сheck the value of the variable in the desired script to determine its state. For example
if #a.1 = 0 //if script 1 is not running then #a has no value
resume_script 2
end_if

Автор: Fearuz 12.1.2023, 2:06

Ty both very much, after messing around with it I FINALLY understand. Much Appreciated to the both of you.

Русская версия Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)