|
palmermarc Newbie
Joined: 29 Dec 2008 Posts: 1
|
Posted: Thu Jul 26, 2018 2:32 pm
Help capturing quest items on Diku MUDS |
Hey guys,
I've been doing a lot of research in packages, completed scripts, and just scouring the forums but I haven't found anything that helps. So .. Here I am.
The output that I'm looking to capture is:
Quote: |
You still need to find the following:
A curved halberd.
A jagged spear.
A small dusk of timian herbs.
A rusty curved scimitar. |
Now, obviously the item names are random. I already have a window called qitems that I want to post the items to.
My end goal is a lot more grandiose than this - I want this to actually grab the item name, check the database to see if it's in there already or not, and if so push it to another window with all of the data in the database. I know how to do this part, it's capturing the items themselves that I'm struggling with hardcore.
Can anyone help me out? |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: Fri Jul 27, 2018 9:32 am |
We will likely need a state trigger for this.
I will assume there are no empty lines in the middle, yet there would be at the end?
#TR {You still need the following:} {neededItems=""}
#COND {*} {#IF (%line!=%null) {#STATE 1;#ADDITEM neededItems %line}} {within|Param=1}
This checks whether the following line is blank.
If it's not blank, it makes sure it checks the next line too, an adds the contents of this line to the list. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|
|
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
|
|