Code:
1000 {PickUpPotions} X:=Self.X() Y:=Self.Y() Z:=Self.Z() Potion:=238 Amount:=100 Self.Capacity()>400 Map.PickUpEx(!Potion!, !Amount!, 0, !X!, !Y!, !Z!, 3)
Explain:
on Potion: it's id of Great Mana, you can change ID.
on Amount: it's amount of manas to pick up, you can change amount.
on Capacity: it's capacity to pick up potions, if your capacity is 400 or more, the character go pick up potions, can you change it too.