Login Form



Who's Online

We have 69 guests online

Statistics

OS : Linux t
PHP : 5.2.17
MySQL : 5.6.33
Time : 21:26
Caching : Disabled
GZIP : Enabled
Members : 3138
Content : 170
Web Links : 6
Content View Hits : 159389

 
Containers~RARE PDF Print E-mail
Written by Mithrandir   
Wednesday, 10 February 2010 08:38

Taken from Pilgrim's old post:

Holy poo! These machines just shouldn't be allowed! :spin: Containers that dispense randomly the twelve unique weapons that are prefixed with ~RARE! Use sparingly in your quest or not at all. If you're gonna have a monster guarding one of these it's probably best if you're a little more ambitious than a goblin. Maybe two goblins? One machine dispenses with a click and the other dispenses after being unlocked.

STATE_MACHINE {
KEY {Container~RARE}
COMMENT [Container that dispenses when clicked one of the twelve rare weapons.]

PARAM {
KEY {1}
TYPE {FRAME}
COMMENT [Closed frame:]
DISPLAY {}}

PARAM {
KEY {2}
TYPE {FRAME}
COMMENT [Open frame:]}

PARAM {
KEY {3}
TYPE {SOUND}
DEFAULT {CHESTOPEN}
COMMENT [Sound when container opens:]}

PARAM {
KEY {4}
TYPE {ALPHA}
COMMENT [Effect when container unlocks:]}

PARAM {
KEY {5}
TYPE {LIST}
LIST [On floor=OBJECT]
LIST [In mouse=OBJECTMOUSE]
DEFAULT [On floor]
COMMENT [Dispense on floor or in mouse?]}

CODE [
TRAP {
KEY {%0}
FLAG {ACTIVE|LIGHT|LIGHTBUFFER|NEEDPOS|SIDEDETECT}

STATE {
KEY {UNLOCK1}
SETCOLLID {1}
FRAME {%1}
MULTI {
CONDITION {
CLICK {}
GOTO {GET1}}
CONDITION {
TIMER {0}
GOTO {UNLOCK2}}}}

STATE {
KEY {GET1}
SETCOLLID {1}
FRAME {%2}
ACTION {
SOUND {%3}
EFFECT {%4}
%5 {~RARE2HAXE1}}
JUMP {END}}

STATE {
KEY {UNLOCK2}
SETCOLLID {1}
FRAME {%1}
MULTI {
CONDITION {
CLICK {}
GOTO {GET2}}
CONDITION {
TIMER {0}
GOTO {UNLOCK3}}}}

STATE {
KEY {GET2}
SETCOLLID {1}
FRAME {%2}
ACTION {
SOUND {%3}
EFFECT {%4}
%5 {~RARE2HMAS1}}
JUMP {END}}

STATE {
KEY {UNLOCK3}
SETCOLLID {1}
FRAME {%1}
MULTI {
CONDITION {
CLICK {}
GOTO {GET3}}
CONDITION {
TIMER {0}
GOTO {UNLOCK4}}}}

STATE {
KEY {GET3}
SETCOLLID {1}
FRAME {%2}
ACTION {
SOUND {%3}
EFFECT {%4}
%5 {~RARE2HSWORD1}}
JUMP {END}}

STATE {
KEY {UNLOCK4}
SETCOLLID {1}
FRAME {%1}
MULTI {
CONDITION {
CLICK {}
GOTO {GET4}}
CONDITION {
TIMER {0}
GOTO {UNLOCK5}}}}

STATE {
KEY {GET4}
SETCOLLID {1}
FRAME {%2}
ACTION {
SOUND {%3}
EFFECT {%4}
%5 {~RARE2HSWORD2}}
JUMP {END}}

STATE {
KEY {UNLOCK5}
SETCOLLID {1}
FRAME {%1}
MULTI {
CONDITION {
CLICK {}
GOTO {GET5}}
CONDITION {
TIMER {0}
GOTO {UNLOCK6}}}}

STATE {
KEY {GET5}
SETCOLLID {1}
FRAME {%2}
ACTION {
SOUND {%3}
EFFECT {%4}
%5 {~RAREAXE1}}
JUMP {END}}

STATE {
KEY {UNLOCK6}
SETCOLLID {1}
FRAME {%1}
MULTI {
CONDITION {
CLICK {}
GOTO {GET6}}
CONDITION {
TIMER {0}
GOTO {UNLOCK7}}}}

STATE {
KEY {GET6}
SETCOLLID {1}
FRAME {%2}
ACTION {
SOUND {%3}
EFFECT {%4}
%5 {~RAREBOW1}}
JUMP {END}}

STATE {
KEY {UNLOCK7}
SETCOLLID {1}
FRAME {%1}
MULTI {
CONDITION {
CLICK {}
GOTO {GET7}}
CONDITION {
TIMER {0}
GOTO {UNLOCK8}}}}

STATE {
KEY {GET7}
SETCOLLID {1}
FRAME {%2}
ACTION {
SOUND {%3}
EFFECT {%4}
%5 {~RAREBOW2}}
JUMP {END}}

STATE {
KEY {UNLOCK8}
SETCOLLID {1}
FRAME {%1}
MULTI {
CONDITION {
CLICK {}
GOTO {GET8}}
CONDITION {
TIMER {0}
GOTO {UNLOCK9}}}}

STATE {
KEY {GET8}
SETCOLLID {1}
FRAME {%2}
ACTION {
SOUND {%3}
EFFECT {%4}
%5 {~RAREMAS1}}
JUMP {END}}

STATE {
KEY {UNLOCK9}
SETCOLLID {1}
FRAME {%1}
MULTI {
CONDITION {
CLICK {}
GOTO {GET9}}
CONDITION {
TIMER {0}
GOTO {UNLOCK10}}}}

STATE {
KEY {GET9}
SETCOLLID {1}
FRAME {%2}
ACTION {
SOUND {%3}
EFFECT {%4}
%5 {~RARESCE1}}
JUMP {END}}

STATE {
KEY {UNLOCK10}
SETCOLLID {1}
FRAME {%1}
MULTI {
CONDITION {
CLICK {}
GOTO {GET10}}
CONDITION {
TIMER {0}
GOTO {UNLOCK11}}}}

STATE {
KEY {GET10}
SETCOLLID {1}
FRAME {%2}
ACTION {
SOUND {%3}
EFFECT {%4}
%5 {~RARESCE2}}
JUMP {END}}

STATE {
KEY {UNLOCK11}
SETCOLLID {1}
FRAME {%1}
MULTI {
CONDITION {
CLICK {}
GOTO {GET11}}
CONDITION {
TIMER {0}
GOTO {UNLOCK12}}}}

STATE {
KEY {GET11}
SETCOLLID {1}
FRAME {%2}
ACTION {
SOUND {%3}
EFFECT {%4}
%5 {~RARESTAFF1}}
JUMP {END}}

STATE {
KEY {UNLOCK12}
SETCOLLID {1}
FRAME {%1}
MULTI {
CONDITION {
CLICK {}
GOTO {GET12}}
CONDITION {
TIMER {0}
GOTO {UNLOCK1}}}}

STATE {
KEY {GET12}
SETCOLLID {1}
FRAME {%2}
ACTION {
SOUND {%3}
EFFECT {%4}
%5 {~RARESTAFF2}}
JUMP {END}}

STATE {
KEY {END}
SETCOLLID {1}
FRAME {%2}}}]}

 

STATE_MACHINE {
KEY {ContainerKey~RARE}
COMMENT [Container that dispenses when clicked one of the twelve rare weapons after it has been unlocked.]

PARAM {
KEY {1}
TYPE {FRAME}
COMMENT [Closed frame:]
DISPLAY {}}

PARAM {
KEY {2}
TYPE {FRAME}
COMMENT [Unlocked frame:]}

PARAM {
KEY {3}
TYPE {FRAME}
COMMENT [Open frame:]}

PARAM {
KEY {4}
TYPE {OBJECT}
COMMENT [Key to unlock:]}

PARAM {
KEY {5}
TYPE {LIST}
LIST [Keep=]
LIST [Lose=CLEARMOUSE]
DEFAULT [Lose]
COMMENT [Keep or lose key?]}

PARAM {
KEY {6}
TYPE {TEXT}
COMMENT [Fail text:]}

PARAM {
KEY {7}
TYPE {SOUND}
DEFAULT {CLIC3}
COMMENT [Sound when container unlocks:]}

PARAM {
KEY {8}
TYPE {ALPHA}
COMMENT [Effect when container unlocks:]}

PARAM {
KEY {9}
TYPE {SOUND}
DEFAULT {CHESTOPEN}
COMMENT [Sound when container opens:]}

PARAM {
KEY {10}
TYPE {ALPHA}
COMMENT [Effect when container unlocks:]}

PARAM {
KEY {11}
TYPE {LIST}
LIST [On floor=OBJECT]
LIST [In mouse=OBJECTMOUSE]
DEFAULT [On floor]
COMMENT [Dispense on floor or in mouse?]}

CODE [
TRAP {
KEY {%0}
FLAG {ACTIVE|LIGHT|LIGHTBUFFER|NEEDPOS|SIDEDETECT|%5}

STATE {
KEY {CLOSED}
SETCOLLID {1}
FRAME {%1}
MULTI {
CONDITION {
OBJECT {%4}
GOTO {UNLOCKFX}}}
FAIL {%6}}

STATE {
KEY {UNLOCKFX}
SETCOLLID {1}
FRAME {%2}
ACTION {
SOUND {%7}
EFFECT {%8}}
JUMP {UNLOCK1}}

STATE {
KEY {UNLOCK1}
SETCOLLID {1}
FRAME {%2}
MULTI {
CONDITION {
CLICK {}
GOTO {GET1}}
CONDITION {
TIMER {0}
GOTO {UNLOCK2}}}}

STATE {
KEY {GET1}
SETCOLLID {1}
FRAME {%3}
ACTION {
SOUND {%9}
EFFECT {%10}
%11 {~RARE2HAXE1}}
JUMP {END}}

STATE {
KEY {UNLOCK2}
SETCOLLID {1}
FRAME {%2}
MULTI {
CONDITION {
CLICK {}
GOTO {GET2}}
CONDITION {
TIMER {0}
GOTO {UNLOCK3}}}}

STATE {
KEY {GET2}
SETCOLLID {1}
FRAME {%3}
ACTION {
SOUND {%9}
EFFECT {%10}
%11 {~RARE2HMAS1}}
JUMP {END}}

STATE {
KEY {UNLOCK3}
SETCOLLID {1}
FRAME {%2}
MULTI {
CONDITION {
CLICK {}
GOTO {GET3}}
CONDITION {
TIMER {0}
GOTO {UNLOCK4}}}}

STATE {
KEY {GET3}
SETCOLLID {1}
FRAME {%3}
ACTION {
SOUND {%9}
EFFECT {%10}
%11 {~RARE2HSWORD1}}
JUMP {END}}

STATE {
KEY {UNLOCK4}
SETCOLLID {1}
FRAME {%2}
MULTI {
CONDITION {
CLICK {}
GOTO {GET4}}
CONDITION {
TIMER {0}
GOTO {UNLOCK5}}}}

STATE {
KEY {GET4}
SETCOLLID {1}
FRAME {%3}
ACTION {
SOUND {%9}
EFFECT {%10}
%11 {~RARE2HSWORD2}}
JUMP {END}}

STATE {
KEY {UNLOCK5}
SETCOLLID {1}
FRAME {%2}
MULTI {
CONDITION {
CLICK {}
GOTO {GET5}}
CONDITION {
TIMER {0}
GOTO {UNLOCK6}}}}

STATE {
KEY {GET5}
SETCOLLID {1}
FRAME {%3}
ACTION {
SOUND {%9}
EFFECT {%10}
%11 {~RAREAXE1}}
JUMP {END}}

STATE {
KEY {UNLOCK6}
SETCOLLID {1}
FRAME {%2}
MULTI {
CONDITION {
CLICK {}
GOTO {GET6}}
CONDITION {
TIMER {0}
GOTO {UNLOCK7}}}}

STATE {
KEY {GET6}
SETCOLLID {1}
FRAME {%3}
ACTION {
SOUND {%9}
EFFECT {%10}
%11 {~RAREBOW1}}
JUMP {END}}

STATE {
KEY {UNLOCK7}
SETCOLLID {1}
FRAME {%2}
MULTI {
CONDITION {
CLICK {}
GOTO {GET7}}
CONDITION {
TIMER {0}
GOTO {UNLOCK8}}}}

STATE {
KEY {GET7}
SETCOLLID {1}
FRAME {%3}
ACTION {
SOUND {%9}
EFFECT {%10}
%11 {~RAREBOW2}}
JUMP {END}}

STATE {
KEY {UNLOCK8}
SETCOLLID {1}
FRAME {%2}
MULTI {
CONDITION {
CLICK {}
GOTO {GET8}}
CONDITION {
TIMER {0}
GOTO {UNLOCK9}}}}

STATE {
KEY {GET8}
SETCOLLID {1}
FRAME {%3}
ACTION {
SOUND {%9}
EFFECT {%10}
%11 {~RAREMAS1}}
JUMP {END}}

STATE {
KEY {UNLOCK9}
SETCOLLID {1}
FRAME {%2}
MULTI {
CONDITION {
CLICK {}
GOTO {GET9}}
CONDITION {
TIMER {0}
GOTO {UNLOCK10}}}}

STATE {
KEY {GET9}
SETCOLLID {1}
FRAME {%3}
ACTION {
SOUND {%9}
EFFECT {%10}
%11 {~RARESCE1}}
JUMP {END}}

STATE {
KEY {UNLOCK10}
SETCOLLID {1}
FRAME {%2}
MULTI {
CONDITION {
CLICK {}
GOTO {GET10}}
CONDITION {
TIMER {0}
GOTO {UNLOCK11}}}}

STATE {
KEY {GET10}
SETCOLLID {1}
FRAME {%3}
ACTION {
SOUND {%9}
EFFECT {%10}
%11 {~RARESCE2}}
JUMP {END}}

STATE {
KEY {UNLOCK11}
SETCOLLID {1}
FRAME {%2}
MULTI {
CONDITION {
CLICK {}
GOTO {GET11}}
CONDITION {
TIMER {0}
GOTO {UNLOCK12}}}}

STATE {
KEY {GET11}
SETCOLLID {1}
FRAME {%3}
ACTION {
SOUND {%9}
EFFECT {%10}
%11 {~RARESTAFF1}}
JUMP {END}}

STATE {
KEY {UNLOCK12}
SETCOLLID {1}
FRAME {%2}
MULTI {
CONDITION {
CLICK {}
GOTO {GET12}}
CONDITION {
TIMER {0}
GOTO {UNLOCK1}}}}

STATE {
KEY {GET12}
SETCOLLID {1}
FRAME {%3}
ACTION {
SOUND {%9}
EFFECT {%10}
%11 {~RARESTAFF2}}
JUMP {END}}

STATE {
KEY {END}
SETCOLLID {1}
FRAME {%3}}}]}