User Tools

Site Tools


samples

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
samples [2013/06/02 00:32]
kimoszin [Examples]
samples [2013/09/21 03:40]
megano0body [Examples]
Line 55: Line 55:
  
 <code>3000 {Drop Empty Flask} X:=Self.X() Y:=Self.Y() Z:=Self.Z() X1:=1 Y1:=1 VarAdd(X, !X1!) VarSub(Y, !Y1!) Self.Capacity()<=150 Map.Thrown(285, 100, !X!, !Y!, !Z!) Exit()</code> <code>3000 {Drop Empty Flask} X:=Self.X() Y:=Self.Y() Z:=Self.Z() X1:=1 Y1:=1 VarAdd(X, !X1!) VarSub(Y, !Y1!) Self.Capacity()<=150 Map.Thrown(285, 100, !X!, !Y!, !Z!) Exit()</code>
 +
 +=== Auto Gather Potion from Ground with Cap ===
 +
 +== Variables ==
 +<code>PotionID=XXXX
 +PotionCap=YYYY
 +MinCap=ZZZ</code>
 +== Macros ==
 +<code>1000 {Smart Potion From Ground} Self.Capacity()>=!MinCap! NumPot:=Self.Capacity() VarSub(NumPot, !MinCap!) VarDiv(NumPot, !PotionCap!) X:=Self.X() Y:=Self.Y() Z:=Self.Z() Map.PickUpEx(!PotionID!, !NumPot!, 0, !X!, !Y!, !Z!, 3)</code>
samples.txt ยท Last modified: 2021/11/15 16:43 (external edit)