Refresh status: Difference between revisions
Jump to navigation
Jump to search
imported>Bale mNo edit summary |
imported>Malurth m Grammar. |
||
(One intermediate revision by the same user not shown) | |||
Line 13: | Line 13: | ||
}}| | }}| | ||
function_description=Refreshes your character's status from the | 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| |
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.