I'm in a bit of a pickle.
function GameConnection::upgradeSponsor(%client,%csponsor)
{
echo("got upgrade request");
if(%client.credits >= $uprgadeCost[%csponsor,%client.sponsor[%csponsor]])
{
if(%client.sponsor[%csponsor] != $maxSponsorLevel[%csponsor])
{
%client.sponsor[%csponsor]++;
messageClient(%client,'',"\c6Thank you for your investment!");
}
else
{
messageClient(%client,'',"\c6You already have all the available sponsorship from this company!");
}
}
else
{
messageClient(%client,'',"\c6Insufficient funds!");
}
}
function GameConnection::addWeapons(%client)
{
for(%i = 0; i < 5; i++)
{
%slotTempItem[%i] = getSponsorWeapon(%client, %client.inventorySlot[%i]);
%client.player.tool[%i]=%slotTempItem[%i].getID();
messageClient(%client,'MsgItemPickup','',%i,%slotTempItem[%i].getID());
}
}
registerOutputEvent(GameConnection,upgradeSponsor,"list Eventis 0 Maelstrom 1 Control 2 Aeon 3 Galaxy 4 Tsotoshi 5 Remington 6");
registerOutputEvent(GameConnection,addWeapons,"");
Neither of these do ANYTHING, not even a syntax error. Halp?