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
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4790
Location: Pensacola, FL, USA

PostPosted: 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
Reply with quote
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Tue Feb 18, 2003 1:13 am   
 
try using the #WAIT function?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4790
Location: Pensacola, FL, USA

PostPosted: 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
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4790
Location: Pensacola, FL, USA

PostPosted: 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
Reply with quote
Anabasis
Wanderer


Joined: 26 Jan 2001
Posts: 74

PostPosted: 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
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