Yoko
http://forum.yoko.com.ua/

open door
http://forum.yoko.com.ua/viewtopic.php?f=17&t=13935
Page 1 of 1

Author:  iRuLez [ 2008-08-27 15:04:03 ]
Post subject:  open door

Code:
sub open_door()
   var i
   dim asd[8]
      asd[0] = "0x068D"
      asd[1] = "0x068F"
      asd[2] = "0x06A5"
      asd[3] = "0x06A7"
      asd[4] = "0x06AD"
      asd[5] = "0x06AF"
      asd[6] = "0x0824"
      asd[7] = "0x0826"
         
   #for i = 0 to 3
      if uo.getDistance(asd[i]) then
         uo.usefromground(asd[i])
         return
      end if
   #next
end sub


line 307: Bad operations for this type of variable - ASD
the line 307 is this
Code:
if uo.getDistance(asd[i]) then

Author:  Destruction [ 2008-08-27 15:07:50 ]
Post subject: 

Each element of asd array - graphic type (or something other, not the item ID or object link), not the object.

U must first find object and then get distance to found object..

Turn on u logic, man...

Author:  Kynep [ 2008-08-27 19:45:18 ]
Post subject: 

Destruction wrote:
Turn on u logic, man...


You think this is real? :twisted:

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/