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
shelob
Newbie


Joined: 02 Feb 2004
Posts: 3

PostPosted: Mon Feb 02, 2004 3:13 pm   

Controlling items that have limited contents
 
With the following text output from a command (potionlist):

"milky potion32022" Type: Deafness Sips: 46.
"beige potion33157" Type: Strength Sips: 51.
"pink potion44139" Type: Adrenalin Sips: 23.
"pink potion54997" Type: Levitation Sips: 19.
"pink potion65277" Type: Immunity Sips: 41.
"beige potion65375" Type: Mana Restoration Sips: 12.
"pink potion67116" Type: Diffusion Sips: 45.
"pink potion67577" Type: Allheale Sips: 24.
"purple potion69565" Type: Vigour Sips: 41.
"clear potion73491" Type: Holy Water Sips: 35.
"beige potion73531" Type: Adrenalin Sips: 35.
"beige potion73614" Type: Meditation Sips: 36.
"grey potion73680" Type: Resurrection Sips: 34.
"beige potion73873" Type: Mana Restoration Sips: 32.
"pink potion73916" Type: Fire Sips: 54.
"pink potion74147" Type: Invisibility Sips: 54.
"clear potion74168" Type: Levitation Sips: 13.
"pink potion74178" Type: Health Restoration Sips: 51.
"pink potion74389" Type: Antidote Sips: 27.
"pink potion74401" Type: Health Restoration Sips: 40.
"beige potion74532" Type: Mana Restoration Sips: 42.
"blue potion74656" Type: Health Restoration Sips: 21.
"pink potion92802" Type: Speed Sips: 24.
"pink potion94184" Type: Cure Sips: 51.
24 alchemical potion(s) found.

(ignoring the colour of the potion)

I would like to be able to do the following:

Provide a screen report of the number of bottles and sips of each potion type (based on a variable containing single word names of all possible potions).

Create variables for each potion type containing all potions of that type (if any) and number of total sips of that potion type (if any).

Create a variable for an active potion for each potion type.

Put all potions in a container (sack/pack) except 1 of each potion that should be held in hand (based on a variable containing names of potions that need to be held)

An alias to sip a potion and determine whether it's a potion in hand (if so just sip potionxxxxx) or a potion in a container (take potionxxx from sack;sip potionxxxxx;put potionxxxx in sack)

Upon the text after sipping a particular potion type:

Your bottle is now empty

Put the empty bottle (text "empty bottle") in sack, if there is another potion within that particular potion variable assign the active potion as the next on the list, otherwise highlight that all potions of that type are empty.

If anyone could give me any pointers, it would be great,

Thanks!
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Mon Feb 02, 2004 6:12 pm   
 
Ok first of all you did a great job of giving information.
You did neglect how you got the original list
what the contents of this are:
"milky potion32022" Type: Deafness Sips: 46.
color potion(its num? or how many?)

What you meant by this:
Create a variable for an active potion for each potion type.

and last but not least you wanted someone (not you) to do all the work so you never learn a thing, Did I get that right?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Mon Feb 02, 2004 10:49 pm   
 
I have seen someone ask about a potion control script like yours before. You should probably search through the forums to find the previous answer and then we can modify it to meet your needs.

Currently your asking for inventory tracking (what container did I throw that in?), item typing (I have 17 pink potions...what do they do again?), content counting (How many licks does it take to get to the Tootsie Roll center of a Tootsie Pop?), and a fair level of automation to boot. That is a lot to ask. Again search, find the script written before, and lets skip reinventing the wheel.
Reply with quote
shelob
Newbie


Joined: 02 Feb 2004
Posts: 3

PostPosted: Mon Feb 02, 2004 11:27 pm   
 
Please read the whole post before being sem-abusive. This is my 1st time posting and I was really asking for ways in which to do things, not the total solution.

quote:
Originally posted by megamog75

Ok first of all you did a great job of giving information.
You did neglect how you got the original list
what the contents of this are:
"milky potion32022" Type: Deafness Sips: 46.
color potion(its num? or how many?)

What you meant by this:
Create a variable for an active potion for each potion type.

and last but not least you wanted someone (not you) to do all the work so you never learn a thing, Did I get that right?


Reply with quote
shelob
Newbie


Joined: 02 Feb 2004
Posts: 3

PostPosted: Tue Feb 03, 2004 12:32 am   
 
I will do. Now I know what I should be searching for.

Many thanks

quote:
Originally posted by Vijilante

I have seen someone ask about a potion control script like yours before. You should probably search through the forums to find the previous answer and then we can modify it to meet your needs.

Currently your asking for inventory tracking (what container did I throw that in?), item typing (I have 17 pink potions...what do they do again?), content counting (How many licks does it take to get to the Tootsie Roll center of a Tootsie Pop?), and a fair level of automation to boot. That is a lot to ask. Again search, find the script written before, and lets skip reinventing the wheel.

Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Tue Feb 03, 2004 7:30 am   
 
Your right of course, Was just having one of those days :)

It' just I see a lot of people just want the answers to some really hard problems and don't bother to think of how much work goes into them.

Something like your script has been done before do a search on
count and members name Lightbulb, that should yield something.
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