Paste #12854: Edit of P#12853 - Untitled Paste

Date: 2015/01/12 22:20:32 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


warpscriptgui:
  type: world
  events:
    on player clicks in in@warpscriptmenu:
    - determine passively cancelled
    - inventory update
    - narrate "<cyan>warping in 3 seconds don't move!"
    - flag movement:<player.location>
    - flag index:3
    - while <player.location.is[==].to[<player.flag[movement]>]> {
    - narrate "<green>Mwarping in <player.flag[index].as_int>"
    - flag index:-:1
      - if <player.flag[index]||true> == 0 {
      - teleport <player> <c.item.scriptname.as_location>
      - while stop
      - flag index:!
      }
    - wait 1s
    }
    on player right clicks with i@warpstone:
    - determine passively cancelled
    - inventory open d:in@warpscriptmenu
WarpScriptMenu:
  type: inventory
  inventory: chest
  title: <&5>Warp Menu
  size: 9
  slots:
  - "[90] [i@Hub] [i@StartTown] [i@MarketWarp] [i@LunisWarpStone] [i@MoorhallWarpStone] [i@MontisWarpStone] [i@DesaroWarpStone] [90]"
warpstone:
  type: item
  material: m@grass