I'm trying to remove item stacking, while allowing augments, so I've narrowed it down to:
Code:
void command_summonitem(Client *c, const Seperator *sep)
{
if (!sep->IsNumber(1))
c->Message(0, "Usage: #summonitem [item id] [charges], charges are optional");
else {
int32 itemid = atoi(sep->arg[1]);
if (database.GetItemStatus(itemid) > c->Admin())
c->Message(13, "Error: Insufficient status to summon this item.");
else if (sep->argnum==2 && sep->IsNumber(2)) {
c->SummonItem(itemid, atoi(sep->arg[2]) );
else {
c->SummonItem(itemid);
}
}
}
I was wondering if there was some kind of "is item an augment" thing (kinda like sep->IsNumber(2) but for augments)
Thanks,
Dillon