Yoko

All sides of Injection
It is currently 2025-11-02 19:45:46

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Аля рунбука
PostPosted: 2008-08-17 22:11:04 
Offline

Joined: 2006-03-10 19:24:12
Posts: 30
Зародисля идеей сделать рунбуку на инжекте. Суть указываешь на мешок с рунами, а потом через UI ASM`a по ним летаешь.

Подскажите возможно ли такое реализовать?

Я сначала решил сделать записи о рунах через ini файлы

[id]
1=0x00000000
2=0x00000000
[name]
1=Brita
2=Dom
и тд.

Но выяснилось что в UO.asmSetIniVar можно использовать уже готовые значения, тоесть не получится сделать что то типа
Code:
 for i=1 to kolvo
       UO.asmSetIniVar('runes.ini', 'ID', 'i', 'runeidd[i]')
       UO.asmSetIniVar('runes.ini', 'NAME', 'i', 'runename[i]')
       next


Цель скрипта минимально лезть в код для исправления количества рун.
Возможно ли то что я задумал? Мне кажется что нет, но хотелось бы выслушать еще кого то.


Top
   
 Post subject:
PostPosted: 2008-08-18 11:55:47 
Offline
User avatar

Joined: 2007-06-20 15:38:11
Posts: 53
я страдал уже таким
но скрипт у меня оч топорный, но выручал меня сильно
Code:
sub rb()
uo.deletejournal()
wait(200)
uo.print('-=Rune Book=- ')
uo.print('Дестард     10')
uo.print('Дом        11')
uo.print('Дом низ      12')
uo.print('Дом верх   13')
uo.print('Дом низ   14')
uo.print('Дом верх   15')
uo.print('Большой Дом 16')
uo.print('База шата    17')
uo.print('Чтобы открыть гейт добавьте "г" между двумя числами')
uo.print('Если вам перехотелось лететь нажмите -')
wait(1000)
runki()
end sub



sub runki()
start:

 if uo.injournal('-')then
    uo.exec('terminate rb')
     wait(100)
       uo.exec('terminate runki')
        wait(100)
         end if


 if uo.injournal('10')then
  uo.cast('Recall','0x4000E3FC')
   wait(500)
    uo.exec('terminate rb')
     wait(100)
       uo.exec('terminate runki')
        wait(100)
         end if


 if uo.injournal('11')then
  uo.cast('Recall','0x4004FF3A')
   wait(500)
    uo.exec('terminate rb')
     wait(100)
       uo.exec('terminate runki')
        wait(100)
         end if

 if uo.injournal('12')then
  uo.cast('Recall','0x40066B98')
   wait(500)
    uo.exec('terminate rb')
     wait(100)
       uo.exec('terminate runki')
        wait(100)
         end if

 if uo.injournal('13')then
  uo.cast('Recall','0x4007AC4E')
   wait(500)
    uo.exec('terminate rb')
     wait(100)
       uo.exec('terminate runki')
        wait(100)
         end if

 if uo.injournal('14')then
  uo.cast('Recall','0x40051904')
   wait(500)
    uo.exec('terminate rb')
     wait(100)
       uo.exec('terminate runki')
        wait(100)
         end if

 if uo.injournal('15')then
  uo.cast('Recall','0x400B331E')
   wait(500)
    uo.exec('terminate rb')
     wait(100)
       uo.exec('terminate runki')
        wait(100)
         end if


 if uo.injournal('16')then
  uo.cast('Recall','0x400ABF25')
   wait(500)
    uo.exec('terminate rb')
     wait(100)
       uo.exec('terminate runki')
        wait(100)
         end if


 if uo.injournal('17')then
  uo.cast('Recall','0x4001B2A6')
   wait(500)
    uo.exec('terminate rb')
     wait(100)
       uo.exec('terminate runki')
        wait(100)
         end if
         
if uo.injournal('1г0')then
  uo.cast('Gate','0x4000E3FC')
   wait(500)
    uo.exec('terminate rb')
     wait(100)
       uo.exec('terminate runki')
        wait(100)
         end if


 if uo.injournal('1г1')then
  uo.cast('Gate','0x4004FF3A')
   wait(500)
    uo.exec('terminate rb')
     wait(100)
       uo.exec('terminate runki')
        wait(100)
         end if

 if uo.injournal('1г2')then
  uo.cast('Gate','0x40066B98')
   wait(500)
    uo.exec('terminate rb')
     wait(100)
       uo.exec('terminate runki')
        wait(100)
         end if

 if uo.injournal('1г3')then
  uo.cast('Gate','0x4007AC4E')
   wait(500)
    uo.exec('terminate rb')
     wait(100)
       uo.exec('terminate runki')
        wait(100)
         end if

 if uo.injournal('1г4')then
  uo.cast('Gate','0x40051904')
   wait(500)
    uo.exec('terminate rb')
     wait(100)
       uo.exec('terminate runki')
        wait(100)
         end if

 if uo.injournal('1г5')then
  uo.cast('Gate','0x400B331E')
   wait(500)
    uo.exec('terminate rb')
     wait(100)
       uo.exec('terminate runki')
        wait(100)
         end if


 if uo.injournal('1г6')then
  uo.cast('Gate','0x400ABF25')
   wait(500)
    uo.exec('terminate rb')
     wait(100)
       uo.exec('terminate runki')
        wait(100)
         end if


 if uo.injournal('1г7')then
  uo.cast('Gate','0x4001B2A6')
   wait(500)
    uo.exec('terminate rb')
     wait(100)
       uo.exec('terminate runki')
        wait(100)
         end if


wait(1000)
goto start
end sub


Top
   
 Post subject:
PostPosted: 2008-08-18 13:16:41 
Offline

Joined: 2006-03-10 19:24:12
Posts: 30
Это все зависит от содержимого скрипта, я же хочу сделать скрипт который бы полностью регулировался интерфейсом.

Кстати не где не могу найти описание комманд по работе с файлами, может кто нибудь написать что и как?


Top
   
 Post subject:
PostPosted: 2008-08-18 14:36:30 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Code:
var file = "myfile.txt";
file = file( file );
file.open()
while( !file.eof() ){
    file.readNumber();
    file.readString();
}
file.close();
file.create();
file.open();
file.writeln( "hello" );
file.close();


Больше ничего обычно не требуется.

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 13 guests


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:  
Powered by phpBB® Forum Software © phpBB Limited