(03-14-2013, 09:06 PM)Your Computer Wrote: You're supposed to provide the (internal) name of the item, not the file name, to RemoveItem. If the item was picked up from the environment, then it should be the entity name. If it was given through a script, then you were the one that gave it a name.
Also, 700+ lines of code for a merchant script? That sounds absurd.
I know right? I'm sure there is an easier way to do this... but actually I have 3000+ lines of script... hahahahaha! Wait, have you made a merchant script? If so- it would be awesome to take a look at for a future reference! :3
But, here is the tricky part - I'm using 160 different billboards to show the player the store stock OR how much they have - with that, I need to provide 160 box lights. I have to do codes like this too - hundreds of times:
if(HasItem("battery_25"))
{
if(GetGlobalVarInt("Rb") == 0)
{
RemoveItem("battery_25");
AddGlobalVarInt("Rb", 1);
}
}