I want to make a trigger to sell items automatically for there is so many items on the ground which will make a lag. Now i have two ideas.
1st:I can set the item's HP equal to it's price ,so i can add player's money
through item's HP.but the problem is that i have more than 300 types of
items in my map,this way may take me a lot of time....
2nd:i can set custom value of the item equal to it's price in map initialization,
..... it looks like i will use custom value of the item in other aspects,so this
is inappropriate,any better ideas??? thanks...

1st:I can set the item's HP equal to it's price ,so i can add player's money
through item's HP.but the problem is that i have more than 300 types of
items in my map,this way may take me a lot of time....
2nd:i can set custom value of the item equal to it's price in map initialization,
..... it looks like i will use custom value of the item in other aspects,so this
is inappropriate,any better ideas??? thanks...

