Login Form



Who's Online

We have 23 guests online

Statistics

OS : Linux t
PHP : 5.2.17
MySQL : 5.6.33
Time : 20:06
Caching : Disabled
GZIP : Enabled
Members : 3138
Content : 170
Web Links : 6
Content View Hits : 165858

 
Container(s) give an obj each click x 1/2/3/4/7 PDF Print E-mail
Written by Mithrandir   
Thursday, 11 February 2010 08:03

from  ELCont_shelf.dsm

STATE_MACHINE
{
KEY { contEtombShelf }

COMMENT [This container gives 1 object each time we click on it x3.]

PARAM 

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

PARAM 

KEY  {2}
TYPE  {frame}
COMMENT [3D object: after grabbing 1st obj (potion) ]
DEFAULT {1EL_BKSHLF_STAT_1}
}

PARAM 

KEY  {3}
TYPE  {frame}
COMMENT [3D object: after grabbing 2nd obj (book) ]
DEFAULT {1EL_BKSHLF_STAT_2}
}

PARAM 

KEY  {4}
TYPE  {frame}
COMMENT [3D object: after grabbing last obj (statue)]
DEFAULT {1EL_BKSHLF_STAT_O}
}
PARAM 

KEY  {5}
TYPE  {OBJECT}
COMMENT [Key Object1:]
DEFAULT {ITEM_POTION_SURPRISE}
OUT {}
}

PARAM 

KEY  {6}
TYPE  {OBJECT}
COMMENT [Key Object2:]
DEFAULT {ITEM_BOOK_INFRAVISION}
OUT {}
}

PARAM 

KEY  {7}
TYPE  {OBJECT}
COMMENT [Key Object3:]
OUT {}
}
PARAM 

KEY  {8}
TYPE  {text}
COMMENT [last text message when empty:]
}

CODE
[
TRAP
{
KEY { %0 }
FLAG { ACTIVE|LIGHTBUFFER|LIGHT|NEEDPOS|SIDEDETECT }
STATE
{
KEY { close }
SETCOLLID { 1 }
FRAME { %1 }
MULTI
{
CONDITION
{
CLICK { } 
GOTO { open }
}
}
}

STATE
{
KEY { open }
SETCOLLID { 1 }
FRAME { %2 }
ACTION
{
SOUND {S_GRAB}
OBJECTMOUSE { %5 }
}
MULTI
{
CONDITION
{
CLICK { } 
GOTO { open1 }
}
}

}

STATE
{
KEY { open1 }
SETCOLLID { 1 }
FRAME { %3 }
ACTION
{
SOUND {S_GRAB}
OBJECTMOUSE { %6 }
}
MULTI
{
CONDITION
{
CLICK { } 
GOTO { openLast }
}
}

}

STATE
{
KEY { openLast }
SETCOLLID { 1 }
FRAME { %4 }
ACTION
{
SOUND {S_GRAB}
OBJECTMOUSE { %7 }
}
MULTI
{
CONDITION
{
CLICK { } 
GOTO { textOnly }
}
}

}

STATE
{
KEY { textOnly }
SETCOLLID { 1 }
FRAME { %4 }
TEXT { %8 }
MULTI
{
CONDITION
{
CLICK { } 
GOTO { textOnly }
}
}

}

STATE
{
KEY { FinFin }
}
}
]
}

STATE_MACHINE
{
KEY { contHutch2Obj }

COMMENT [This container gives 1 object each time we click on it x2.]

PARAM 

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

PARAM 

KEY  {2}
TYPE  {frame}
COMMENT [3D object: after grabbing 1st obj (potion) ]
DEFAULT {1EL_HUTCH_1}
}

PARAM 

KEY  {3}
TYPE  {frame}
COMMENT [3D object: after grabbing 2nd obj (book) ]
DEFAULT {1EL_HUTCH_E}
}

PARAM 

KEY  {5}
TYPE  {OBJECT}
COMMENT [Recieved Object1:]
DEFAULT {ITEM_POTION_MAGIC}
OUT {}
}

PARAM 

KEY  {6}
TYPE  {LIST}
COMMENT [Received object2:]
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]
}

PARAM 

KEY  {8}
TYPE  {text}
COMMENT [last text message when empty:]
}

CODE
[
TRAP
{
KEY { %0 }
FLAG { ACTIVE|LIGHTBUFFER|LIGHT|NEEDPOS|SIDEDETECT }
STATE
{
KEY { close }
SETCOLLID { 1 }
FRAME { %1 }
MULTI
{
CONDITION
{
CLICK { } 
GOTO { open }
}
}
}

STATE
{
KEY { open }
SETCOLLID { 1 }
FRAME { %2 }
ACTION
{
SOUND {S_GRAB}
OBJECTMOUSE { %5 }
}
MULTI
{
CONDITION
{
CLICK { } 
GOTO { open1 }
}
}

}

STATE
{
KEY { open1 }
SETCOLLID { 1 }
FRAME { %3 }
ACTION
{
SOUND {S_GRAB}
OBJECTMOUSE { %6 }
}
MULTI
{
CONDITION
{
CLICK { } 
GOTO { textOnly }
}
}

}

STATE
{
KEY { textOnly }
SETCOLLID { 1 }
FRAME { %3 }
TEXT { %8 }
MULTI
{
CONDITION
{
CLICK { } 
GOTO { textOnly }
}
}

}

STATE
{
KEY { FinFin }
}
}
]
}

STATE_MACHINE
{
KEY { contHutch7Obj }

COMMENT [This container gives 1 object each time we click on it x7.]

PARAM 

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

PARAM 

KEY  {2}
TYPE  {frame}
COMMENT [3D object: after grabbing 1st obj (Str Potion) ]
DEFAULT {1EL_LEPHUTCH_1}
}

PARAM 

KEY  {3}
TYPE  {frame}
COMMENT [3D object: after grabbing 2nd obj (book) ]
DEFAULT {1EL_LEPHUTCH_2}
}

PARAM 

KEY  {4}
TYPE  {frame}
COMMENT [3D object: after grabbing 3rd obj (Mgc Potion) ]
DEFAULT {1EL_LEPHUTCH_3}
}

PARAM 

KEY  {5}
TYPE  {frame}
COMMENT [3D object: after grabbing 4th obj (Yth Potion) ]
DEFAULT {1EL_LEPHUTCH_4}
}

PARAM 

KEY  {6}
TYPE  {frame}
COMMENT [3D object: after grabbing 5th obj (book) ]
DEFAULT {1EL_LEPHUTCH_5}
}

PARAM 

KEY  {7}
TYPE  {frame}
COMMENT [3D object: after grabbing 6th obj (Dex Potion) ]
DEFAULT {1EL_LEPHUTCH_6}
}

PARAM 

KEY  {8}
TYPE  {frame}
COMMENT [3D object: after grabbing Last obj (Sur Potion) ]
DEFAULT {1EL_LEPHUTCH_E}
}

PARAM 

KEY  {9}
TYPE  {OBJECT}
COMMENT [Recieved Object1:]
DEFAULT {ITEM_POTION_STRENGTH}
OUT {}
}

PARAM 

KEY  {10}
TYPE  {LIST}
COMMENT [Received object2:]
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]
}

PARAM 

KEY  {11}
TYPE  {OBJECT}
COMMENT [Recieved Object3:]
DEFAULT {ITEM_POTION_MAGIC}
OUT {}
}

PARAM 

KEY  {12}
TYPE  {OBJECT}
COMMENT [Recieved Object4:]
DEFAULT {ITEM_POTION_JOUVENCE}
OUT {}
}

PARAM 

KEY  {13}
TYPE  {LIST}
COMMENT [Received object5:]
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]
}

PARAM 

KEY  {14}
TYPE  {OBJECT}
COMMENT [Recieved Object6:]
DEFAULT {ITEM_POTION_DEXTERITY}
OUT {}
}

PARAM 

KEY  {15}
TYPE  {OBJECT}
COMMENT [Recieved Object7:]
DEFAULT {ITEM_POTION_SURPRISE}
OUT {}
}

PARAM 

KEY  {16}
TYPE  {text}
COMMENT [last text message when empty:]
}

CODE
[
TRAP
{
KEY { %0 }
FLAG { ACTIVE|LIGHTBUFFER|LIGHT|NEEDPOS|SIDEDETECT }
STATE
{
KEY { close }
SETCOLLID { 1 }
FRAME { %1 }
MULTI
{
CONDITION
{
CLICK { } 
GOTO { open }
}
}
}

STATE
{
KEY { open }
SETCOLLID { 1 }
FRAME { %2 }
ACTION
{
SOUND {S_GRAB}
OBJECTMOUSE { %9 }
}
MULTI
{
CONDITION
{
CLICK { } 
GOTO { open1 }
}
}

}
STATE
{
KEY { open1 }
SETCOLLID { 1 }
FRAME { %3 }
ACTION
{
SOUND {S_GRAB}
OBJECTMOUSE { %10 }
}
MULTI
{
CONDITION
{
CLICK { } 
GOTO { open2 }
}
}

}
STATE
{
KEY { open2 }
SETCOLLID { 1 }
FRAME { %4 }
ACTION
{
SOUND {S_GRAB}
OBJECTMOUSE { %11 }
}
MULTI
{
CONDITION
{
CLICK { } 
GOTO { open3 }
}
}

}
STATE
{
KEY { open3 }
SETCOLLID { 1 }
FRAME { %5 }
ACTION
{
SOUND {S_GRAB}
OBJECTMOUSE { %12 }
}
MULTI
{
CONDITION
{
CLICK { } 
GOTO { open4 }
}
}

}
STATE
{
KEY { open4 }
SETCOLLID { 1 }
FRAME { %6 }
ACTION
{
SOUND {S_GRAB}
OBJECTMOUSE { %13 }
}
MULTI
{
CONDITION
{
CLICK { } 
GOTO { open5 }
}
}

}
STATE
{
KEY { open5 }
SETCOLLID { 1 }
FRAME { %7 }
ACTION
{
SOUND {S_GRAB}
OBJECTMOUSE { %14 }
}
MULTI
{
CONDITION
{
CLICK { } 
GOTO { open6 }
}
}

}

STATE
{
KEY { open6 }
SETCOLLID { 1 }
FRAME { %8 }
ACTION
{
SOUND {S_GRAB}
OBJECTMOUSE { %15 }
}
MULTI
{
CONDITION
{
CLICK { } 
GOTO { textOnly }
}
}

}

STATE
{
KEY { textOnly }
SETCOLLID { 1 }
FRAME { %8 }
TEXT { %16 }
MULTI
{
CONDITION
{
CLICK { } 
GOTO { textOnly }
}
}

}

STATE
{
KEY { FinFin }
}
}
]
}

STATE_MACHINE
{
KEY { contBkShlf3Obj }

COMMENT [This container gives 1 object each time we click on it x3.]

PARAM 

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

PARAM 

KEY  {2}
TYPE  {frame}
COMMENT [3D object: after grabbing 1st obj (potion) ]
DEFAULT {1EL_LEPBKSHLF_1}
}

PARAM 

KEY  {3}
TYPE  {frame}
COMMENT [3D object: after grabbing 2nd obj (ring) ]
DEFAULT {1EL_LEPBKSHLF_2}
}

PARAM 

KEY  {4}
TYPE  {frame}
COMMENT [3D object: after grabbing Last obj (scroll) ]
DEFAULT {1EL_LEPBKSHLF_E}
}

PARAM 

KEY  {5}
TYPE  {OBJECT}
COMMENT [Recieved Object1:]
DEFAULT {ITEM_POTION_MANA}
OUT {}
}

PARAM 

KEY  {6}
TYPE  {LIST}
COMMENT [Received object2:]
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]
}

PARAM 

KEY  {7}
TYPE  {OBJECT}
COMMENT [Recieved Object3: ( quest item )]
OUT {}
}

PARAM 

KEY  {8}
TYPE  {text}
COMMENT [last text message when empty:]
}

CODE
[
TRAP
{
KEY { %0 }
FLAG { ACTIVE|LIGHTBUFFER|LIGHT|NEEDPOS|SIDEDETECT }
STATE
{
KEY { close }
SETCOLLID { 1 }
FRAME { %1 }
MULTI
{
CONDITION
{
CLICK { } 
GOTO { open }
}
}
}

STATE
{
KEY { open }
SETCOLLID { 1 }
FRAME { %2 }
ACTION
{
SOUND {S_GRAB}
OBJECTMOUSE { %5 }
}
MULTI
{
CONDITION
{
CLICK { } 
GOTO { open1 }
}
}

}

STATE
{
KEY { open1 }
SETCOLLID { 1 }
FRAME { %3 }
ACTION
{
SOUND {S_GRAB}
OBJECTMOUSE { %6 }
}
MULTI
{
CONDITION
{
CLICK { } 
GOTO { open2 }
}
}

}
STATE
{
KEY { open2 }
SETCOLLID { 1 }
FRAME { %4 }
ACTION
{
SOUND {S_GRAB}
OBJECTMOUSE { %7 }
}
MULTI
{
CONDITION
{
CLICK { } 
GOTO { textOnly }
}
}

}

STATE
{
KEY { textOnly }
SETCOLLID { 1 }
FRAME { %4 }
TEXT { %8 }
MULTI
{
CONDITION
{
CLICK { } 
GOTO { textOnly }
}
}

}

STATE
{
KEY { FinFin }
}
}
]
}

STATE_MACHINE
{
KEY { contHutch4Obj }

COMMENT [This container gives 1 object each time we click on it x4.]

PARAM 

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

PARAM 

KEY  {2}
TYPE  {frame}
COMMENT [3D object: after grabbing 1st obj (book) ]
DEFAULT {1EL_MONHUTCH_1}
}

PARAM 

KEY  {3}
TYPE  {frame}
COMMENT [3D object: after grabbing 2nd obj (Potion) ]
DEFAULT {1EL_MONHUTCH_2}
}

PARAM 

KEY  {4}
TYPE  {frame}
COMMENT [3D object: after grabbing 3rd obj (book) ]
DEFAULT {1EL_MONHUTCH_3}
}

PARAM 

KEY  {5}
TYPE  {frame}
COMMENT [3D object: after grabbing last obj (scroll) ]
DEFAULT {1EL_MONHUTCH_O}
}

PARAM 

KEY  {6}
TYPE  {LIST}
COMMENT [Received object1:]
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]
}

PARAM 

KEY  {8}
TYPE  {OBJECT}
COMMENT [Recieved Object2:]
DEFAULT {ITEM_POTION_DEXTERITY}
OUT {}
}

PARAM 

KEY  {7}
TYPE  {LIST}
COMMENT [Received object3:]
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]
}

PARAM 

KEY  {9}
TYPE  {OBJECT}
COMMENT [Recieved Object4:]
OUT {}
}

PARAM 

KEY  {10}
TYPE  {text}
COMMENT [last text message when empty:]
}

CODE
[
TRAP
{
KEY { %0 }
FLAG { ACTIVE|LIGHTBUFFER|LIGHT|NEEDPOS|SIDEDETECT }
STATE
{
KEY { close }
SETCOLLID { 1 }
FRAME { %1 }
MULTI
{
CONDITION
{
CLICK { } 
GOTO { open }
}
}
}

STATE
{
KEY { open }
SETCOLLID { 1 }
FRAME { %2 }
ACTION
{
SOUND {S_GRAB}
OBJECTMOUSE { %6 }
}
MULTI
{
CONDITION
{
CLICK { } 
GOTO { open1 }
}
}

}
STATE
{
KEY { open1 }
SETCOLLID { 1 }
FRAME { %3 }
ACTION
{
SOUND {S_GRAB}
OBJECTMOUSE { %8 }
}
MULTI
{
CONDITION
{
CLICK { } 
GOTO { open2 }
}
}

}
STATE
{
KEY { open2 }
SETCOLLID { 1 }
FRAME { %4 }
ACTION
{
SOUND {S_GRAB}
OBJECTMOUSE { %7 }
}
MULTI
{
CONDITION
{
CLICK { } 
GOTO { open3 }
}
}

}
STATE
{
KEY { open3 }
SETCOLLID { 1 }
FRAME { %5 }
ACTION
{
SOUND {S_GRAB}
OBJECTMOUSE { %9 }
}
MULTI
{
CONDITION
{
CLICK { } 
GOTO { textOnly }
}
}

}

STATE
{
KEY { textOnly }
SETCOLLID { 1 }
FRAME { %5 }
TEXT { %10 }
MULTI
{
CONDITION
{
CLICK { } 
GOTO { textOnly }
}
}

}

STATE
{
KEY { FinFin }
}
}
]
}