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
only85
Beginner


Joined: 17 Jul 2002
Posts: 11
Location: USA

PostPosted: Mon Apr 07, 2003 6:21 am   

Help with Autoauction Trigger>
 
Alright
Right now I have an "auction" class folder with various auction triggers in it, and variables
Variables such as Waist, wrist, neck - *Etc for each slot* Then I have the affects of each item I have in those slots, in the variables
like ac3 3dam|ac3 3dex|ac2 1hr 4mr ETC
So, I have all the equip in various slots
I have a trigger, so when someone gives me a tell with what slot they want to look at, I send them the items i have in that slot via Tell

What I am trying to do, is have some easy way to Get/Remove items from slots
so I dont have to go manually enter things into a variable
Perhaps using a prompt
Also,,, I want to perhaps expand my system, so they can look up information on items based on what the items affect, like Dam Dex STR Wis , etc,, I had it that way before I changed it to the Slot based

I have an inkling how to create the prompt and such to add/remove items from the Slot Based Variables
But I have no idea how to do it from 2 different sets of variables for 2 different parts of an item... Where worn/what affect

Any help would be appriciated
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Mon Apr 07, 2003 6:03 pm   
 
so basically you want someone here to write a script to let you use you database to answer questions on items you have identified in your database?

well yes it can be done and I hope some one does it for you.

but in the mean time just start by doing rresearch on these topics:

%find
%query
%dbget
%db
%ismember
%item
%dbexpand
#var
#send
#trigger

useing these things will get what you want but to what extent is you own.

Start by using %find for the item name then use %dbget to get the info on it maybe %dbexpand to put it in the right order and use a #trigger for them to ask you. good luck.

megamog75
Keeper of the only printable help files for Zmud.
Reply with quote
only85
Beginner


Joined: 17 Jul 2002
Posts: 11
Location: USA

PostPosted: Tue Apr 08, 2003 12:57 am   
 
Actually, I'm not using the database at all
I'm using variables

I have variables such as @wrist and @neck, with all the items listed in them,,,
When someone gives me a tell with Wrist as the only word, it replys to them with the variable in ther eply, spitting out all the current parts to that variable

for instance
Ink tells you, 'wrist'.
*here is trigger*
^(%w) tells you, '(%w)'.
#IF (!%null(@{%2})) {tell %1 {@{%2}}}
That checks to make sure the variable exists that they are asking for..like wrist and arms..etc..and if it does exist it replys with that variable - spittout out its contents like this
tell Ink {3dam ac3|2int|3dex 8wis} ETC

So in conjunction with my earlier request..
I'm looking to tap into those variables using prompts perhaps
to add/remove items from them
and perhaps have 2 diff sets of variables..one for where worn, the other for what it does..so people have the option of asking me Only about Damage,, oronly about the Feet slot

Any clearer :P
thanks for your help
Collin
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Tue Apr 08, 2003 6:41 pm   
 
mog tells you, "wrist,dex"

#TRIGGER {^(%w) tells you, '(%w)~,dex'.} {#IF (!%null(@{%2})) {tell %1 %item({@%2},1)}}

This is ofcorse if you keep all your stuff in the #vars in the same order.

This will give you the first item which would be dex .

goodluck

megamog75
Keeper of the only printable help files for Zmud.
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