spawn("coin_gold",3,22,6,1,0,"wiz_coin1")
setMouseItem("wiz_coin1.item")
The error says: invalid item. The coin is areal item when placed somewhere on the floor etc.. What am I doing wrong? Thxs

"wiz_coin1.item" is a string. setMouseItem() takes an ItemComponent as an argument, not a string. It looks like this is what you intended to do:Mysterious wrote:Hi I am having trouble trying to set the mouse item eg:
spawn("coin_gold",3,22,6,1,0,"wiz_coin1")
setMouseItem("wiz_coin1.item")
The error says: invalid item. The coin is areal item when placed somewhere on the floor etc.. What am I doing wrong? Thxs
Code: Select all
spawn("coin_gold",3,22,6,1,0,"wiz_coin1")
setMouseItem(wiz_coin1.item)
Code: Select all
setMouseItem(spawn("coin_gold",nil,nil,nil,nil,nil,"wiz_coin1").item)