 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4790 Location: Pensacola, FL, USA
|
Posted: Tue Feb 18, 2003 12:59 am
a loot grabbing script |
ok now im trying to figure oout how to do this and its been giving me trouble. the game i play has many different types of loot which i have been systimatically trying to sort into various varable arrays
@gem for cheap gems
@gems for valuable gems
@skin for skins
@magic for magical items
and a few others
now i want it to be able to look at a room and sort through the items on the floor to grab what i want and stick them into different containers depending on which variable its in
stuff on the floor looks like the following:
You also see a blue dreamstone, a small statue and a blue crystal.
the problem is this mud only lets you queue so many commands before excess commands are ignored (GemStone III)
is there a way to do this easily without shooting to many commands to the mud all at once?
Shalimar
AIM: shalimarwildcat |
|
|
|
 |
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: Tue Feb 18, 2003 1:13 am |
try using the #WAIT function?
|
|
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4790 Location: Pensacola, FL, USA
|
Posted: Tue Feb 18, 2003 1:17 am |
Do not use the WAIT command in a trigger if the same trigger might fire again before the WAIT is complete.
Shalimar
AIM: shalimarwildcat |
|
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4790 Location: Pensacola, FL, USA
|
Posted: Tue Feb 18, 2003 2:15 am |
i have an idea half gleaned from somewhere else,
#IF (@commands) {
#SEND %item( @commands, 1)
#DELNITEM commands 1
}
just need the trigger to insert the series of commands to perform into @command, then a means to keep checking it after a set period of time... #ALARM maybe....
Shalimar
AIM: shalimarwildcat |
|
|
|
 |
Anabasis Wanderer
Joined: 26 Jan 2001 Posts: 74
|
Posted: Tue Feb 18, 2003 4:40 pm |
I use the @commands buffer in DR on a three second alarm (to combat lag). Just use the #ADDI command to put things into the buffer.
#TR {string} {#ADDI commands ["get @item"];#ADDI commands ["put @item in @container"]}
Ana |
|
|
|
 |
|
|
|