Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
WhereWolf_9000
Newbie


Joined: 09 May 2002
Posts: 0

PostPosted: Sun Apr 07, 2002 5:51 pm   

recording information to the database
 
when i use the command "info inventory" to get the items and number from my inventory
the mud output window looks like this
1120h, 1120m cef([{-}]) info inventory
"backpack2837"a large back-pack.
"chainmail3101"a suit of silver chainmail.
"runekit9417" a rune fashioning kit.
"pouch14670" a leather herb pouch.
"pouch25223" a leather herb pouch.
"charm25815" a magical charm.
"lorerobes29117"a thick robe spangled with gemstones.
"seedbelt30368"a seedbelt.
"pouch32298" a leather herb pouch.
"longsword34876"a copper longsword.
"pipe36795" a long metal pipe.
"pouch37291" a leather herb pouch.
"barrel44074" a barrel of essence.
"pouch48899" a leather herb pouch.
"pouch52242" a leather herb pouch.
"pouch52498" a leather herb pouch.
"rune53166" a spiral-shaped rune.
"rune54003" a pyramid-shaped rune.
"rune55683" a cross-shaped rune.
"rune55942" a sphere-shaped rune.
"key56216" a platinum key.
"rune56259" an arrow rune.
"key58371" an iron key.
"shell59807" a large conch shell.
"rune60157" a crescent-shaped rune.
"ring60677" a golden ring.
"belt60909" a sturdy utility belt.
"amulet60925" a ruby amulet.
"ring62534" a golden ring.
"bracelet62559"a delicate bracelet.
"viol62638" a wonderful viol.
"ring62801" a golden ring.
"ring62843" a golden ring.
"bracelet63879"a delicate bracelet.
"ring65211" a golden ring.
"lorestaff65423"a lore-staff of oak.
"lyre65439" a golden lyre.
"crucifix65454"a gold encrusted crucifix.
"white potion65767"a white potion.
"turquoise potion66185"a turquoise potion.
"turquoise potion66737"a turquoise potion.
"white potion66750"a white potion.
"white potion66948"a white potion.
"white potion67755"a white potion.
"white potion67882"a white potion.
"white potion68248"a white potion.
"white potion68627"a white potion.
"white potion68804"a white potion.
"turquoise potion69190"a turquoise potion.
"turquoise potion69630"a turquoise potion.
"turquoise potion69675"a turquoise potion.
"ring70164" a star-sapphire ring.
"white potion70924"a white potion.

so i use the following triggers to catch the information and save in the database


trigger: "&%w{color} (&%w{item}&%d{itemnumber})"
commands: #new eqpt name=@name number=@itemnumber item=@item

trigger: "(&%w{item}&%d{itemnumber})"%s(&{name})
commands: #new eqpt name=@name number=@itemnumber item=@item

trigger: "(&%w{item}&%d{itemnumber})"a(&{name})
commands: #new eqpt name= @name number= @itemnumber item= @item

unless i info a specific item in which case it looks like this

You are able to perceive that a copper longsword can also be known as longsword12345

so i use these triggers:


trigger: You are able to perceive that a &%*{name} can also be known as
commads: #noop

trigger: (&%w{item}&%d{itemnumber}).
commands: #new eqpt name= @name number= @itemnumber item= @item



my question is why is it that it saves the items twice and sometimes will not save the name of the item. i play avalon.
also the autolog triggers twice. how can i prevent this.

any help is greatly appreciated.

dempsey deveral
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net