Originally Posted by
jman9368
Alright. I've just been trying to get a grasp of C++ when it comes to these emus. Trying to learn as much as I can. Thanks for the advise

+Rep
Originally Posted by
Sounddead
You always gotta start somewhere Kalash. You can't just start tackling big projects if you don't even know what your doing. Starting small and working your way up is how people learn

I understand what your saying but even something like this is trivial. It's like a 4th chapter in every common book, calling functions. You give some arguments functions, and you're done.
If you were doing a function from scratch and doing all the insides & outs, that'd be neat and I'd absolutely encourage for you to do it in C++, but all you are doing is calling implementation.
Little correct in Aznex code, because according to function definition:
Code:
uint32 GetItemCount(uint32 itemid, bool IncBank = false);
There is no "amount argument" it just returns how many of "this" items you have. So that's why we say if it's equal to 5 then blah blah.
Code:
if (Plr->GetItemInterface()->GetItemCount(ItemID, false) == Amount)
{
// Aznex's code
Plr->SetStanding(Faction, Amount);}
Plr->GetItemInterface()->RemoveItemAmt(ItemID, Amount);
}
else
{
Plr->BroadcastMessage("Error: Items not found in inventory");
}