Yoko

All sides of Injection
It is currently 2025-11-12 17:37:17

All times are UTC+02:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: 2006-03-29 09:37:12 
Offline
User avatar

Joined: 2005-07-17 15:30:52
Posts: 308
Location: www.drw.ru
Сохраняется ли значение переменной при завершении работы скрипта?

например:

sub test()
VAR i
if uo.injournal('You put') then
i = 1
uo.deletejournal('You put')
else
i = 0
endif
if i == 1 then
uo.print('Вы что то положили в пак')
else
wait(100)
endif
if i == 0 then
uo.print('Вы ничего не положили в пак')
else
wait(100)
endif
end sub

допустим я положил что то в инвентори, юзанул этот скрипт, скрипт мне написал "вы положи...." под конец скрипта значение i = 1, если я его юзану еще раз, то значение i изменится на 0 и скрипт мне напишет "Вы ничего..." или нет, извените что спрашиваю, тк скрипты пишу на работе, нет возможности проверить их работоспособность, зарание благодарю.


Top
   
 Post subject:
PostPosted: 2006-03-29 09:47:22 
Offline

Joined: 2005-06-12 22:12:15
Posts: 247
nelegche, i bystreje samomu proverit' takije tonkosti?


Top
   
 Post subject:
PostPosted: 2006-03-29 10:35:06 
Offline
User avatar

Joined: 2005-07-17 15:30:52
Posts: 308
Location: www.drw.ru
До меня дошло как это проверить :)


Top
   
 Post subject:
PostPosted: 2006-03-29 19:34:52 
Offline

Joined: 2005-06-12 22:12:15
Posts: 247
vtomto i delo.. :) 4to proverit' sekundnoje delo...


Top
   
 Post subject:
PostPosted: 2006-03-29 21:48:04 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
Не сохранит.
Используй глобальные переменные:
UO.SetGlobal()
UO.GetGlobal()


Top
   
 Post subject:
PostPosted: 2006-03-30 00:39:55 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
А так же setEasyUO(number,string) и getEasyUO(number), незнаю, что говорят другие люди - но они однощначно надёжнее, с ними реже падает скрипт и ваще они работают с реестром (необходимо создать соответсвующую ветку. наличие изьки не обязательно).


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited