Yoko

All sides of Injection
It is currently 2026-01-16 19:42:27

All times are UTC+02:00




Post new topic  Reply to topic  [ 9 posts ] 
Author Message
PostPosted: 2009-06-14 22:54:19 
Offline

Joined: 2007-05-29 22:42:06
Posts: 14
Граждане, разобраться хочу первый параметр WaitTargetTile - который tilenum. Это вообще тип я так понял поверхности или что?
И нет ли универсалього значения этого tilenum?


Top
   
 Post subject:
PostPosted: 2009-06-15 03:55:00 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Есть - 0.

Только в некоторых случаях он может не работать.

_________________
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
   
 Post subject:
PostPosted: 2009-06-15 09:03:47 
Offline

Joined: 2007-05-29 22:42:06
Posts: 14
то-то я смотрю все наши "рудокопы" тут пишут там или 0 или -1....чисто в эксперементальных целях залез в шахту пробовал...нифига.
Но есть ещё товарищи, которые указывают конкретный тайл этого дела, помоему 1393, или что-то в этом роде...залез пробовал...мне кажется находит но не всё...видимо там всё же пол шахты предсталвен несколькими разновидностями....в таких случаях навернео целесообразно применять массив тайлов, и в цикле крутить их на всякое движение рудокопа к тому или иному куску местности...ну это мои измышления.


Top
   
 Post subject:
PostPosted: 2009-06-15 09:25:39 
Offline
Expert!
User avatar

Joined: 2004-04-04 11:13:54
Posts: 1205
Location: Балаково, Саратовская обл.
Code:
sub DigItStay(MaxWeight,MaxDistance,BaseX,BaseY)
   VAR x,y,TempX,TempY
   VAR Last=0,LastTimer, ContFlag=1
   VAR MaxTimer=160,Count=1
   VAR TileB=1339
   VAR TileE=1359
   Var Tile

   For x=-MaxDistance to MaxDistance
      For y=-MaxDistance to MaxDistance

         Tile=-1
         Tile=TileB
         While NOT UO.PrivateGetTile(UO.GetX()+x,UO.GetY()+y,-1,Tile,Tile) AND Tile<TileE
            Tile=Tile+1
         Wend

         If Tile<TileE Then

Установка патчей на клеточки в шахте приводит к неработоспособности функции приватгеттайл.


Top
   
 Post subject:
PostPosted: 2009-06-15 09:32:27 
Offline

Joined: 2007-05-29 22:42:06
Posts: 14
Тоесть ты хочешь сказать, что тайлы на полу шахты всегда находятся в пределах
от 1339 до 1359


Top
   
 Post subject:
PostPosted: 2009-06-15 09:42:48 
Offline
Expert!
User avatar

Joined: 2004-04-04 11:13:54
Posts: 1205
Location: Балаково, Саратовская обл.
На ранке так. На поле вроде тоже так же, не помню уже. На сфере 1 тип тайла в шахте.


Top
   
 Post subject:
PostPosted: 2009-06-15 10:11:38 
Offline

Joined: 2007-05-29 22:42:06
Posts: 14
ну тогда все более мене просто, не нужно отдельно массивы формировать, циклом можно обойтись.
Тоесть более мене унификация для копания земли достигнута.
А как быть с камнями, или с кажем с песком на предмет песка?


Top
   
 Post subject:
PostPosted: 2009-06-15 15:53:49 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
Code:
Sub HarvestTiles(X,Y)
var i
if UO.PrivateGetTile(X, Y, -1, 616, 618) then
 for i=616 to 618
  if UO.PrivateGetTile(X, Y, -1, i, i) then
   return i
  end if
 next
end if
if UO.PrivateGetTile(X, Y, -1, 1339, 1363) then
 for i=1339 to 1363
  if UO.PrivateGetTile(X, Y, -1, i, i) then
   return i
  end if
 next
end if
if UO.PrivateGetTile(X, Y, -1, 2272, 2282) then
 for i=2272 to 2282
  if UO.PrivateGetTile(X, Y, -1, i, i) then
   return i
  end if
 next
end if
if UO.PrivateGetTile(X, Y, -1, 4963, 4973) then
 for i=4963 to 4973
  if UO.PrivateGetTile(X, Y, -1, i, i) then
   return i
  end if
 next
end if
if UO.PrivateGetTile(X, Y, -1, 6001, 6012) then
 for i=6001 to 6012
  if UO.PrivateGetTile(X, Y, -1, i, i) then
   return i
  end if
 next
end if
if UO.PrivateGetTile(X, Y, -1, 13121, 13369) then
 for i=13121 to 13369
  if UO.PrivateGetTile(X, Y, -1, i, i) then
   return i
  end if
 next
end if
if UO.PrivateGetTile(X, Y, -1, 13446, 13455) then
 for i=13446 to 13455
  if UO.PrivateGetTile(X, Y, -1, i, i) then
   return i
  end if
 next
end if
if UO.PrivateGetTile(X, Y, -1, 13484, 13492) then
 for i=13484 to 13492
  if UO.PrivateGetTile(X, Y, -1, i, i) then
   return i
  end if
 next
end if
if UO.PrivateGetTile(X, Y, -1, 13625, 13628) then
 for i=13625 to 13628
  if UO.PrivateGetTile(X, Y, -1, i, i) then
   return i
  end if
 next
end if
return 0; No Harvest Tiles
end sub

:roll:


Top
   
 Post subject:
PostPosted: 2009-06-15 20:27:56 
Offline

Joined: 2007-05-29 22:42:06
Posts: 14
Я хренею на глазах...
а что это за PrivateGetTile?
Что-то я у Ёко в хелпе такого не вижу....


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited