02-27-2012, 10:35 AM
Sorry guys, I just can't find out why this script won't work.
Any ideas?
Spoiler below!
PHP Code:
void BlueRodFunc (string &in asItem, string &in asEntity)
{
RemoveItem(asItem);
SetEntityActive("BlueStatic", true);
AddGlobalVarInt("rodmachine", 1);
GetGlobalVarInt("rodmachine");
{
if(GetGlobalVarInt("rodmachine") == 0)
//..
}
if(GetGlobalVarInt("rodmachine") == 1)
{
//..
}
if(GetGlobalVarInt("rodmachine") == 2)
{
//..
}
if(GetGlobalVarInt("rodmachine") == 3)
{
SetMessage("Messages", "DoneRodsQuestM", 0);
CompleteQuest("rodq", "RodsQuest");
}
}
Any ideas?