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
Previous revision
Next revision Both sides next revision
samples [2012/09/25 03:10]
dexter
samples [2013/09/21 03:40]
megano0body [Examples]
Line 19: Line 19:
  
 <code>3000 {Auto Mount} Status.InPZ()==0 Self.Mount()==0 Self.ToggleMount()</code> <code>3000 {Auto Mount} Status.InPZ()==0 Self.Mount()==0 Self.ToggleMount()</code>
 +
 +=== Equip/Unequip ring with x monsters ===
 +
 +<code>1500 {Equip/Unequip ring with x monsters} monstersCount:=2 idRingOFF:=3052 idRingON:=3089  Creatures.ByName(Cyclops)>=!monstersCount! [else] Self.Inventory.Ring()<>!idRingON! Self.Equip.Ring(!idRingOFF!) Exit() {else} Self.Inventory.Ring()==!idRingON! Self.UnEquip.Ring(0)</code>
  
 === Utura with conditions=== === Utura with conditions===
Line 51: 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)