User Tools

Site Tools


samples

This is an old revision of the document!


Samples

This session will take a few examples of practical and easy macros.

Legend:

  • 0 == auto-execut Off
  • >0 == auto-execute On

Auto Mount

3000 {Auto Mount} Status.InPZ()==0 Self.Mount()==0 Self.ToggleMount()

Utura with conditions

3000 {Utura} Self.Health%()⇐VALUE Self.Mana()>=VALUE Status.Buff()==0 Self.Say(Utura)

Equip Sword Ring

3000 {Equip Sword Ring} Self.Attacking() Self.Inventory.Ring()==0 Self.Equip.Ring(3091)

Open Door Without Key

0 {Open Door Without Key} X:=Self.X() Y:=Self.Y() Z:=Self.Z() Map.Use(ID_DOOR, !X!, !Y!, !Z!, 2)

Open Door With key

0 {Open Door Without Key} X:=Self.X() Y:=Self.Y() Z:=Self.Z() Map.UseOn(ID_KEY, ID_DOOR, !X!, !Y!, !Z!, 2)

Destroy Furniture

1500 {Destroy Furniture} X:=Self.X() Y:=Self.Y() Z:=Self.Z() weapon:=Self.Inventory.LeftHand Map.UseOn(!weapon!, 2434, !X!, !Y!, !Z!, 5)<>1 Map.UseOn(!weapon!, 2471, !X!, !Y!, !Z!, 5)<>1 Map.UseOn(!weapon!, 2472, !X!, !Y!, !Z!, 5)<>1 Map.UseOn(!weapon!, 2482, !X!, !Y!, !Z!, 5)<>1 Map.UseOn(!weapon!, 2480, !X!, !Y!, !Z!, 5)<>1 Map.UseOn(!weapon!, 2481, !X!, !Y!, !Z!, 5)<>1 Map.UseOn(!weapon!, 2473, !X!, !Y!, !Z!, 5)<>1 Map.UseOn(!weapon!, 2469, !X!, !Y!, !Z!, 5)<>1 Map.UseOn(!weapon!, 2470, !X!, !Y!, !Z!, 5)<>1 Map.UseOn(!weapon!, 2434, !X!, !Y!, !Z!, 5)<>1 Map.UseOn(!weapon!, 2433, !X!, !Y!, !Z!, 5)<>1 Map.UseOn(!weapon!, 2432, !X!, !Y!, !Z!, 5)<>1 Map.UseOn(!weapon!, 2431, !X!, !Y!, !Z!, 5)<>1 Map.UseOn(!weapon!, 2358, !X!, !Y!, !Z!, 5)<>1 Map.UseOn(!weapon!, 2359, !X!, !Y!, !Z!, 5)<>1 Map.UseOn(!weapon!, 2360, !X!, !Y!, !Z!, 5)<>1 Map.UseOn(!weapon!, 2361, !X!, !Y!, !Z!, 5)<>1 Map.UseOn(!weapon!, 2319, !X!, !Y!, !Z!, 5)<>1 Map.UseOn(!weapon!, 2524, !X!, !Y!, !Z!, 5)<>1 Map.UseOn(!weapon!, 2523, !X!, !Y!, !Z!, 5)<>1 Map.UseOn(!weapon!, 2982, !X!, !Y!, !Z!, 5)<>1 Map.UseOn(!weapon!, 2465, !X!, !Y!, !Z!, 5)<>1

Change Soft to BoH and Vice Versa

3000 {ChangeSoftToBoh} Self.Mana()⇐100 [jump] Self.Equip.Boots(ID_SOFT) Exit() {jump} Self.Mana()>=300 Self.Equip.Boots(ID_BOH) Exit()

samples.1347067656.txt.gz · Last modified: 2021/11/15 16:43 (external edit)