Login Form



Who's Online

We have 51 guests online

Statistics

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

 
State Machines


Special Item Container PDF Print E-mail
Written by Mithrandir   
Thursday, 11 February 2010 08:23

This was posted at a previous forum - Skipper was the creator, AFAIK
This container dispenses a Darkstone special item, selectable from menu.
(and the code list is handy to know too) - Sfx

STATE_MACHINE 

KEY { container1SpecialItem } 
COMMENT [This container gives 1 object when we click on it.] 
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    {LIST} 
COMMENT   [Received object1:] 
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 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] 

PARAM 

KEY    {4} 
TYPE    {sound} 
COMMENT   [Sound to play when object is given:] 

PARAM 

KEY    {5} 
TYPE    {LIST} 
COMMENT   [Effect to play when opened:] 
LIST[Absorption Attack=ABSORBMA] 
LIST[Absorption Spell=ABSORBVI] 
LIST[Light=ARMORMAG] 
LIST[Flaming Arrow=ARROWFLAME] 
LIST[Antidote=ANTIPOISON] 
LIST[Antidote No Sound=ANTIPOISON1] 
LIST[Death Dome A=BARRIEREA] 
LIST[Death Dome B=BARRIEREB] 
LIST[Death Dome C=BARRIEREC] 
LIST[Bless=BENEDICT] 
LIST[Berserker=BERSERKE] 
LIST[Bloodtrace=BLOODTRACE] 
LIST[Firefly=BRILLE] 
LIST[Teleport B=BTELEPORT] 
LIST[Confusion=CONFUSION] 
LIST[Crystal=CRYSTAL] 
LIST[DEX Potion=DEXTERITY1] 
LIST[Spark Globe=ECLAIRA] 
LIST[Spark=ECLAIRB] 
LIST[Spark Explode=ECLAIRC] 
LIST[End Arrow=ENDARROW] 
LIST[End Shurinken=ENDSHURIN] 
LIST[Metal Spark=ETINCEL] 
LIST[Flour=FARINE] 
LIST[Fear=FEAR] 
LIST[Fee - White=FEE] 
LIST[Fee2 - Green - No Sound=FEE2] 
LIST[Fireball Red Smoke=FIREBALLA] 
LIST[Fireball Flash=FIREBALLB] 
LIST[Fireball Explode=FIREBALLC] 
LIST[Fireball Red Smoke 2=FIREBALL2A] 
LIST[Fireball Flash 2=FIREBALL2B] 
LIST[Fireball Explode 2=FIREBALL2C] 
LIST[Fireball Red Smoke 3=FIREBALL3A] 
LIST[Fireball Red Smoke 3=FIREBALL3B] 
LIST[Fireball Explode 3=FIREBALL3C] 
LIST[Draak's Breath=FIREDRAAK] 
LIST[Wall of Fire A=FIREWALLA] 
LIST[Wall of Fire B=FIREWALLB] 
LIST[Wall of Fire C=FIREWALLC] 
LIST[Flamethrower - Sound=FLAMEWAVEA] 
LIST[Flamethrower - Little Flame=FLAMEWAVEB] 
LIST[Flamethrower - Big Flame=FLAMEWAVEC] 
LIST[Flash=FLASH] 
LIST[Thunder 1 Purple=FLASH1] 
LIST[Thunder 1 Purple Big=FLASH2] 
LIST[Thunder 2 Blue=FLASH3] 
LIST[Thunder 1 Purple 3 Blue=FLASH4] 
LIST[Thunder 1 Golden 4 Blue=FLASH5] 
LIST[Food=FOOD] 
LIST[Haste=HASTE] 
LIST[Healing=HEAL1] 
LIST[Ice Smoke=ICE] 
LIST[Berserker Smoke=INBERSERKER] 
LIST[Inferno=INFERNO] 
LIST[Flame Smoke=INFLAME] 
LIST[Night Vision=INFRAVISION] 
LIST[Invisibility=INVISIBL] 
LIST[Slowness=LENTEUR] 
LIST[Loading=LOADING] 
LIST[MAG Potion=MAGIC1] 
LIST[Magic Bomb Globe=MAGICBOMBA] 
LIST[Magic Bomb Smoke=MAGICBOMBB] 
LIST[Magic Bomb Explode=MAGICBOMBC] 
LIST[Magic Missile=MAGICMISSA] 
LIST[Magic Missile Flash=MAGICMISSB] 
LIST[Magic Missile Explode=MAGICMISSC] 
LIST[Magic Light=MAGLIGHT] 
LIST[Mana=MANA1] 
LIST[Time Orb=NOVA] 
LIST[Forgetfulness=OUBLI] 
LIST[Poison Cloud=POISON] 
LIST[Poison Potion=POISON1] 
LIST[Poison Weapon=POISONWEAPON] 
LIST[Rain=RAIN] 
LIST[Reflection Spell=REFLECTION] 
LIST[Reflection Shield=REFLECTION2] 
LIST[Youth Potion=REJUV1] 
LIST[Resurrection=RESURECT] 
LIST[Fear Single=RIP] 
LIST[Stone Break=STONCURE] 
LIST[STR Potion=STRENGTH1] 
LIST[Skill Learnt=TALENTL] 
LIST[Storm=TEMPEST] 
LIST[Wall of Fire Yellow Smoke=TFIREWALL] 
LIST[Magic Bomb Yellow Smoke=TMAGICBOMB] 
LIST[Magic Door Open=TOWNPORTALA] 
LIST[Magic Door Enter=TOWNPORTALC] 
LIST[Mutation Spell=TRANSFORM1] 
LIST[Mutation Target=TRANSFORM2] 
LIST[VIT Potion=VITALITY1] 
LIST[Water 1=WATER1] 
LIST[Water 2=WATER2] 
LIST[Explode=EXPLODE] 
LIST[Teleport=TELEPORT] 
LIST[Telekinesis=TELEKINESIS] 
LIST[Stone explode=NOSTONE] 
LIST[Poisoned=POISONED] 
LIST[Smoke=FUMEE] 
LIST[Detection=DETECTION] 
LIST[Werewolf=WEREWOLF] 
LIST[Plumes=PLUMES] 
LIST[Firecamp=FIRECAMP] 
LIST[None= ] 
DEFAULT [Smoke] 

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 

EFFECT { %5 } 
OBJECT   { %3 } 
SOUND { %4 } 




}

 

 
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Page 10 of 63