Re: How to access thrown items 'carried' by monsters?
Posted: Mon Oct 22, 2012 4:59 pm
This is kind of relevant to the discussion....
I've just used the addItem() code for an item-stealing monster... my script took an item from a champion's hand or armour slots, destroyed it, but not before grabbing it's name and id, and then spawned a new item to add to the monster... the following seemed to work well with a valid spawn_name and spawn_id because it spawns it "up in the air" as Petri described it.
Of course it now looks like there might be an easier way to do it othr than destroy and spawn.
viewtopic.php?f=14&t=3847
I've just used the addItem() code for an item-stealing monster... my script took an item from a champion's hand or armour slots, destroyed it, but not before grabbing it's name and id, and then spawned a new item to add to the monster... the following seemed to work well with a valid spawn_name and spawn_id because it spawns it "up in the air" as Petri described it.
Code: Select all
Monster:addItem(spawn(spawn_name,nil,nil,nil,nil,spawn_id))viewtopic.php?f=14&t=3847