Difference between revisions of "Refresh status"

From Kolmafia
Jump to navigation Jump to search
imported>Bale
(q answered. Added code)
imported>Malurth
m (Grammar.)
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
FunctionPage|
 
FunctionPage|
 
name={{#var:name}}|
 
name={{#var:name}}|
function_category=Adventuring|
 
  
 
function1={{Function|
 
function1={{Function|
Line 14: Line 13:
 
}}|
 
}}|
  
function_description=Refreshes your character's status from the caracter pane. This does not effect the relay browser, only mafia's internal information.|
+
function_description=Refreshes your character's status from the character pane. This does not affect the relay browser, only mafia's internal information.|
  
 
code1={{CodeSample|
 
code1={{CodeSample|
Line 38: Line 37:
 
cli_equiv=The CLI command "refresh" with the parameter "status" has the same function.|
 
cli_equiv=The CLI command "refresh" with the parameter "status" has the same function.|
 
}}
 
}}
 +
 +
[[Category:Adventuring]]

Latest revision as of 18:22, 31 December 2010

Function Syntax

void refresh_status()

Refreshes your character's status from the character pane. This does not affect the relay browser, only mafia's internal information.

Code Samples

Refresh status needs to be used to see if you've gained a new effect.

print("purchasing Ode to Booze from a few buffbots...", "blue");
cli_execute("csend 1 meat to Testudinata");
cli_execute("csend 23 meat to Iocainebot");
int iterations = 0;
while(have_effect($effect[Ode to Booze]) < 1 && iterations < 30) {
   wait(30);
   refresh_status();
   iterations = iterations + 1;
}
if((have_effect($effect[Ode to Booze]) < 1)
   print("failed to get Ode to Booze", "red");

CLI Equivalent

The CLI command "refresh" with the parameter "status" has the same function.