Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
Worgzark
Beginner


Joined: 03 Jul 2008
Posts: 10

PostPosted: Thu Jul 10, 2008 6:49 am   

Simple Inventory Clearing Tool.
 
This could probably be adapted for any mud but was created for use in Dark and Shattered Lands. I used this to sell the great piles of pointless spam items that cloged up my inventory due to autoloot. First item on the list was a list, created and maintained through the following menu:

#MENU sale {#ADDITEM sale %selword}

Allowing me to right click keywords I want to add to the list called sale.

I then created a class called Forsale:

#CLASS Forsale 1

In which I put the following triggers.

#TRIG {%s*%s(%w)} {#IF (%ismember(%1,@sale)) {sell %1} {}}
#TRIG {~(%s(%d)~)*%s(%w)} {#IF (%ismember(%2,@sale)) {#REPEAT %1-1 {sell %2}} {}}
#TRIG {The %w looks uninterested in*%s(%w)} {drop %1}

I then used an alias to access this class as required:

#AL Sale {#T+ Forsale;I;#WAIT 2000;#T- Forsale}

Anything you wish to keep you just put into a container.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts 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