mredge73
Member
Hey
How do you donate meat to your clan through ash?
The command calls for items to be donated: put_stash(int, item)
I want to donate fluid meat, trying to build a function that pulls dense meat stacks from the stash, autosells them, and dumps the meat into the stash for advertising.
I cannot figure out the visit_url() to do that, there must be an existing function that can do that.
How do you donate meat to your clan through ash?
The command calls for items to be donated: put_stash(int, item)
I want to donate fluid meat, trying to build a function that pulls dense meat stacks from the stash, autosells them, and dumps the meat into the stash for advertising.
I cannot figure out the visit_url() to do that, there must be an existing function that can do that.
Code:
int IncreaseCoffer(int howmuch)
{
int howmany= howmuch/1000 +1;
if(!take_stash( howmany, $item[dense meat stack] ))
print("Your Clan does not have enough Meat Stacks or you don't have permission to take them","red");
else
{
autosell( howmany, $item[dense meat stack] );
//visit_url("clan_stash.php?&action=contribute&howmuch="+howmuch.to_string());
}
return howmany;
}