Skip to content

Commit a9883b3

Browse files
committed
Add run energy function back.
Added missing world and weight functions.
1 parent bf47ad0 commit a9883b3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Internal/RSClient.simba

+15
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,16 @@ begin
372372
Result := False; //(W <> 765) or (H <> 503);
373373
end;
374374

375+
Function RSClient.RunEnergy: Int32; static;
376+
begin
377+
Result := RGetInt(R_EIOS, nil, CLIENT_ENERGY) div 100;
378+
end;
379+
380+
Function RSClient.Weight: Int32; static;
381+
begin
382+
Result := RGetInt(R_EIOS, nil, CLIENT_WEIGHT);
383+
end;
384+
375385
Function RSClient.GetVarBit(ID: Int32): Int32; static;
376386
var
377387
Definition: RSVarbitDefinition;
@@ -478,3 +488,8 @@ Function RSClient.AccountStatus: Int32; static;
478488
begin
479489
Result := RGetStaticInt(R_EIOS, Login_AccountStatus);
480490
end;
491+
492+
Function RSClient.CurrentWorld: Int32; static;
493+
begin
494+
Result := RGetInt(R_EIOS, nil, CLIENT_CURRENTWORLD);
495+
end;

0 commit comments

Comments
 (0)