PHP Code:
public function dropItem(id)
{
temp.n = "object_item";
with(findplayer("Chompy")) {
with(putnpc2(30, 30, "this.join(\"" @ n @ "\" );")) {
...
}
}
}
I'm doing this from a weapon npc..
Any reason why this won't work?
Or do I have to change the npcs array (
with(npcs[npcs.size() - 1]))?
Or is there any other methods?