Login Form



Who's Online

We have 63 guests online

Statistics

OS : Linux t
PHP : 5.2.17
MySQL : 5.6.36
Time : 05:36
Caching : Disabled
GZIP : Enabled
Members : 3138
Content : 170
Web Links : 6
Content View Hits : 170336

 
Container open by VO, give Unique PDF Print E-mail
Written by Mithrandir   
Thursday, 11 February 2010 08:01

Opens by VO, gives ObjB when clicked on. adds FAIL if try before.

STATE_MACHINE
{
KEY { contVrObj1Unique }

COMMENT [This container opens with a vrObj and gives object B when we click on it. adds fail if try before.]

PARAM 

KEY  {1}
TYPE  {frame}
COMMENT [3D object: initial close]
DISPLAY {}
}

PARAM 

KEY  {2}
TYPE  {frame}
COMMENT [3D object: final open]
}

PARAM 

KEY  {3}
TYPE  {object}
COMMENT [VrObj required to open the Container:]
IN {}
}

PARAM 

KEY  {4}
TYPE  {LIST}
COMMENT [Received object:]
LIST[Unique Double Handed Axe=~RARE2HAXE1]
LIST[Unique Big Mace=~RARE2HMAS1]
LIST[Unique Jagged Master Sword=~RARE2HSWORD1]
LIST[Unique Blue Master Sword=~RARE2HSWORD2]
LIST[Unique Stone Curse Axe=~RAREAXE1]
LIST[Unique Silver Bow=~RAREBOW1]
LIST[Unique Green Bow=~RAREBOW2]
LIST[Unique Spikey Mace=~RAREMAS1]
LIST[Unique Blue Sceptre=~RARESCE1]
LIST[Unique Cinnamon-Bun Staff=~RARESCE2]
LIST[Unique Skull Staff=~RARESTAFF1]
LIST[Unique Cristmas Staff=~RARESTAFF2]
LIST[The Holy Bow=ITBOWAERON]
LIST[Time Crystal=ITEM_TIME_CRYSTAL]
LIST[Ring +200 To All Attributes=ITCHEAT]    
List[Horn Of Plenty=ITCORNEABONDANCE] 
LIST[Horn Of Plenty2=ITCORNEABONDANCE2]
LIST[Astral Hand=ITEM_ASTRAL_HAND]
LIST[Axe Vampire Steals 20%=ITEM_AXEVAMPIRE]
LIST[Shield Of Light=ITEM_BOUCLIERLUM] 
LIST[Bow 2-4 Storm=ITEM_CUSTOM1] 
LIST[Blank Scroll=ITEM_CUSTOM2]
LIST[Potion Of Surprise Blue?=ITEM_CUSTOM3]
LIST[The Cursed Sword=ITEM_CUSTOM4]
LIST[Horn Of Plenty3=ITEM_CUSTOM5]
LIST[The Armor Of Fear=ITEM_FEARARMOR]
LIST[Fire Bow 8-10 FireElement=ITEM_FIREBOW]
LIST[Staff 4-14 Poison+30 Damage Points=ITEM_FIRESTAFF]
LIST[Sword 12-14 FireElement=ITEM_FIRESWORD]
LIST[1000 GoldPieces=ITEM_GOLD]
LIST[GoldPieces=GOLD1]
LIST[1000 GoldPieces=ITEM_GOLD3]
LIST[Magic Bow 8-10 Magic Missiles 10-20 Damage=ITEM_MMBOW] 
LIST[ObiPot (Potion Of Imortallity)=ITEM_POTION] 
LIST[Potion Of Youth=ITEM_POTION_JOUVENCE]
LIST[Potion Of Surprise=ITEM_POTION_SURPRISE]
LIST[Concentration Rune=ITEM_RUNFIXATION] 
LIST[MasterSword Poison=ITEM_SWORDPOISON] 
LIST[Wooden Sword=ITEM_SWORD_WOOD] 
LIST[Njolner=ITEM_THOR] 
LIST[Bow +10% To Hit=ITEM_XARC_06] 
LIST[Bow +20% To Hit=ITEM_XARC_07] 
LIST[Bow +30% To Hit=ITEM_XARC_08] 
LIST[Bow +40% To Hit=ITEM_XARC_09] 
LIST[Bow +50% To Hit=ITEM_XARC_10] 
LIST[Scythe +5% Dammage=ITEM_XFAU_02]
LIST[Scythe +10% Dammage=ITEM_XFAU_03]
LIST[Scythe +15% Dammage=ITEM_XFAU_04]
LIST[Scythe +20% Dammage=ITEM_XFAU_05]
LIST[Axe 6-27 25/25=ITEM_XHA1_04]
LIST[BigMace Prist 65-121 80/80=ITEM_XMAS_05]
LIST[Bow 40-50 Storm=ITEM_XUARC_01]
LIST[Bow 2-4 Confusion=ITEM_XUARC_02] 
LIST[Staff Confusion=ITEM_XUBAT_01]
LIST[Sword 40-50 Storm=ITEM_XUEP1_01]
LIST[Sword Green 40-50=ITEM_XUEP1_02]
LIST[Machette 40-50=ITEM_XUEP1_04]
LIST[Sword Great 40-50=ITEM_XUEP1_05]
LIST[Sword Long 40-50=ITEM_XUEP1_06]
LIST[Sword Arab Cool 40-50=ITEM_XUEP2_05] 
LIST[Scythe Push Target Back 40-50=ITEM_XUFAU_01]
LIST[Axe 40-50 Dur 100/100=ITEM_XUHA1_04] 
LIST[Trowing Axe 1-4 Stone Curse=ITEM_XUHAJ_01]  
LIST[The Fire-Hammer=ITEM_XUMA2_05]
LIST[Cursed Ring -10Str -15Dex=ITRINGCURSED]
LIST[Ring Abundance=RINGU1]
LIST[Ring Eternal Youth=RINGU10]
LIST[Ring +8 To All Attributes=RINGU11]
LIST[Ring +21 To All Attributes=RINGU12]
LIST[Ring +22 To All Attributes=RINGU13]
LIST[Ring +17 To All Attributes=RINGU14]
LIST[Ring Life Recovery=RINGU2]
LIST[Ring Quick Mana Recovery=RINGU3]
LIST[Ring Poisons Effect Slowed Down=RINGU4]
LIST[Ring Light Aura=RINGU5]
LIST[Ring +21 To All Attributes=RINGU6]
LIST[Ring Spell Duration Increased=RINGU7]
LIST[Ring Permanent Perception=RINGU8] 
LIST[Ring Mana Shield=RINGU9]
LIST[TownPortal=TOWNPORTAL]
LIST[Book Absorption=ITEM_BOOK_ABSORPTION]
LIST[Book Antidote=ITEM_BOOK_ANTIPOISON]
LIST[Book Confusion=ITEM_BOOK_BENEDICTION]
LIST[Book Berserker=ITEM_BOOK_BERSERKER]
LIST[Book Detection=ITEM_BOOK_DETECTION]
LIST[Book Spark=ITEM_BOOK_ECLAIR]
LIST[Book Fear=ITEM_BOOK_FEAR]
LIST[Book Fireball=ITEM_BOOK_FIREBALL]
LIST[Book Firewall=ITEM_BOOK_FIREWALL]
LIST[Book Flamethrower=ITEM_BOOK_FLAMEWAVE]
LIST[Book Thunder=ITEM_BOOK_FLASH]
LIST[Book Food=ITEM_BOOK_FOOD]
LIST[Book Invocation=ITEM_BOOK_GOLEM]
LIST[Book Haste=ITEM_BOOK_HASTE]
LIST[Book Healing=ITEM_BOOK_HEALING]
LIST[Book Slowness=ITEM_BOOK_IDENTIFY]
LIST[Book Deathdome=ITEM_BOOK_INFERNO]
LIST[Book Infravision=ITEM_BOOK_INFRAVISION]
LIST[Book Invisibility=ITEM_BOOK_INVISIBILITY]
LIST[Book Light=ITEM_BOOK_LIGHT]
LIST[Book Mutation=ITEM_BOOK_MAGICARMOR]
LIST[Book Magicbomb=ITEM_BOOK_MAGICBOMB]
LIST[Book Magicmissile=ITEM_BOOK_MAGICMISSILE]
LIST[Book Storm=ITEM_BOOK_NOVA]
LIST[Book Poisoncloud=ITEM_BOOK_POISONCLOUD]
LIST[Book Forgetfulness=ITEM_BOOK_RECHARGE]
LIST[Book Reflection=ITEM_BOOK_REFLECTION]
LIST[Book Resurrect=ITEM_BOOK_RESURRECT]
LIST[Book Stone=ITEM_BOOK_STONE]
LIST[Book Telekenesis=ITEM_BOOK_TELEKINESIS] 
LIST[Book Teleport=ITEM_BOOK_TELEPORT] 
LIST[Book Townportal=ITEM_BOOK_TOWNPORTAL]
LIST[Scroll Absorption=ITEM_SCROLL_ABSORPTION]
LIST[Scroll Confusion=ITEM_SCROLL_BENEDICTION]
LIST[Scroll Berserker=ITEM_SCROLL_BERSERKER]
LIST[Scroll Detection=ITEM_SCROLL_DETECTION]
LIST[Scroll Spark=ITEM_SCROLL_ECLAIR]
LIST[Scroll Fear=ITEM_SCROLL_FEAR]
LIST[Scroll Fireball=ITEM_SCROLL_FIREBALL]
LIST[Scroll Firewall=ITEM_SCROLL_FIREWALL]
LIST[Scroll Flamethrower=ITEM_SCROLL_FLAMEWAVE] 
LIST[Scroll Thunder=ITEM_SCROLL_FLASH]
LIST[Scroll Food=ITEM_SCROLL_FOOD]
LIST[Scroll Invocation=ITEM_SCROLL_GOLEM] 
LIST[Scroll Haste=ITEM_SCROLL_HASTE]
LIST[Scroll Slowness=ITEM_SCROLL_IDENTIFY]
LIST[Scroll Deathdome=ITEM_SCROLL_INFERNO]
LIST[Scroll Infravision=ITEM_SCROLL_INFRAVISION] 
LIST[Scroll Invisibility=ITEM_SCROLL_INVISIBILITY] 
LIST[Scroll Light=ITEM_SCROLL_LIGHT]
LIST[Scroll Mutation=ITEM_SCROLL_MAGICARMOR] 
LIST[Scroll Magicbomb=ITEM_SCROLL_MAGICBOMB]
LIST[Scroll Magicmissile=ITEM_SCROLL_MAGICMISSILE]
LIST[Scroll Storm=ITEM_SCROLL_NOVA]
LIST[Scroll Poisoncloud=ITEM_SCROLL_POISONCLOUD] 
LIST[Scroll Reflection=ITEM_SCROLL_REFLECTION]
LIST[Scroll Resurrect=ITEM_SCROLL_RESURRECT]
LIST[Scroll Stonecurse=ITEM_SCROLL_STONECURSE] 
LIST[Scroll Telekenesis=ITEM_SCROLL_TELEKINESIS] 
LIST[Scroll Teleport=ITEM_SCROLL_TELEPORT]
LIST[Scroll Townportal=ITEM_SCROLL_TOWNPORTAL] 
OUT {}
}

PARAM 

KEY  {5}
TYPE  {sound}
COMMENT [Sound to play when chest is opened:]
}

PARAM
{
KEY { 6 }
TYPE {TEXT}
COMMENT [Text when open fails:]
}

CODE
[
TRAP
{
KEY { %0 }
FLAG { ACTIVE|LIGHTBUFFER|LIGHT|NEEDPOS|SIDEDETECT }
STATE
{
KEY { wait }
SETCOLLID { 1 }
FRAME { %1 }
MULTI
{
CONDITION
{
OBJECT { %3 } 
GOTO { close }
}
}
FAIL { %6 }
}

STATE
{
KEY { close }
SETCOLLID { 1 }
FRAME { %1 }
MULTI
{
CONDITION
{
CLICK { } 
GOTO { open }
}
}
}

STATE
{
KEY { open }
SETCOLLID { 1 }
FRAME { %2 }
ACTION
{
OBJECT { %4 }
SOUND { %5 }
}
}
}
]
}