Hello everyone,
I'd like to ask help for you with this action. Its from one of the script I've created for the MWC Twisted Waters. In a nutshell, the script will collect items (dead creature corpses) from the ground and then throw it in a certain SQM (inside the lake). I've already managed to make the script work fine, but now I'd like to add a counter, so that we can know the exact ammount of corpses that have already been thrown into the lake. So let's go to the action:
This is the action that makes the character collect the bodies from the floor. Then, when the backpack if full, or in case the character has no more cap, it will force the character to go to the location where it will throw the bodies in the lake.Code:init start local monsters = {"3994", "3995", "3996", "3998", "3999", "4000", "4188", "4189", "4190", "4378", "4992"} local corpsesbp = getlootingdestination("corpsesbp") init end auto(200) if $wptsection == "hunt" then collectitems(corpsesbp, table.unpack(monsters)) end
Then there will be an action somewhat like:
moveitems (id, position)
So how can I add a code to make it count everytime it drops a body in the lake? I've tried to put "While itemcount(id) do" but it didnt work.
Thanks in advance