greenrider
Member
My first (admittedly simple) contribution to the scripting community. Any thoughts would be greatly appreciated!
Update: old crappy code removed. Here's what it looks like now:
Update: old crappy code removed. Here's what it looks like now:
Code:
boolean play_pool(int stance)
{
// VIP Pool Script by Greenrider
//
// Arguments: int stance
// 1 = Billiard Belligerence (+50% weapon damange, +5 familiar weight)
// 2 = Mental A-Cue-Ity (+50% spell damage, +10MP recovery per adventure)
// 3 = Hustlin' (+50% initiative, +10% item drops)
// Actions: attempts to play pool using given stance
// Returns: TRUE if pool visit appears to have worked, FALSE otherwise
//
if(stance < 1 || stance > 3)
return false;
return contains_text(visit_url("clan_viplounge.php?action=pooltable&preaction=poolgame&stance=" + stance),"You acquire an effect");
}
boolean table_exists()
{
// Arguments: none
// Actions: none
// Returns: TRUE if character has VIP pool table, FALSE otherwise
return contains_text(visit_url("clan_viplounge.php?action=pooltable"),"pool table");
}
void main (int stance)
{
play_pool(stance);
return;
}
Attachments
Last edited: