From Stealth Client

Jump to: navigation, search
m (1 revision)
Line 6: Line 6:
</noinclude>
</noinclude>
== Backpack ==
== Backpack ==
-
<source lang="pascal">function Backpack() : Cardinal</source>
+
<source lang="pascal">function Backpack():Cardinal</source>
-
Возвращает параметр чара - ''ID рюкзака'' (Backpack ID).
+
Returns the char -'' ID backpack''(Backpack ID).
-
В случае, если отсутствует соединение с UO сервером - вернет 0.  
+
If there is no connection to the UO server - returns 0.  
-
Часто используется, например, в поиске, указателем получателя для перетаскивания вещей, и прочее.
+
Often used, for example, in the search, index recipient to drag things on and so forth.
-
'''Пример 1:'''
+
'''Example 1:'''
<source lang="pascal">
<source lang="pascal">
if Count(runes) < 10 then
if Count(runes) < 10 then
begin
begin
-
   MoveItem(runestack,10-Count(runes),Backpack,0,0,0)
+
   MoveItem(runestack ,10-Count(runes), Backpack, 0,0,0)
-
end;
+
end;  
</source>
</source>
-
 
+
'''Example 2:'''
-
'''Пример 2:'''
+
<source lang="pascal">
<source lang="pascal">
-
   FindType($EED,Backpack)
+
   FindType($ EED, Backpack)
</source>
</source>

Revision as of 21:39, 15 February 2012


Backpack

function Backpack():Cardinal

Returns the char - ID backpack(Backpack ID).

If there is no connection to the UO server - returns 0.

Often used, for example, in the search, index recipient to drag things on and so forth.

Example 1:

if Count(runes) < 10 then
begin
   MoveItem(runestack ,10-Count(runes), Backpack, 0,0,0)
end;

Example 2:

  FindType($ EED, Backpack)