Cmud trader feed caravan with feedbag

From Elanthipedia
Jump to navigation Jump to search
Cmud trader feed caravan with feedbag
Category utility,Trader
Front-end cmud
Author Tirsten


General Information

Feed caravan with feedbag and associated filling script

Front end: Cmud

The Script

<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
  <trigger priority="12950" copy="yes">
    <pattern>^feedwithbag$</pattern>
    <value>#gag
remove feed</value>
    <trigger>
      <pattern>^You remove</pattern>
      <value>#gag
give elaborate caravan</value>
    </trigger>
    <trigger>
      <pattern>^{You offer the black feedbag to the caravan driver|The driver takes the feedbag}</pattern>
      <value>#gag
wear feed</value>
    </trigger>
    <trigger>
      <pattern>^You attach</pattern>
      <value>#gag
exhale san cry
</value>
    </trigger>
    <trigger>
      <pattern>^You exhale softly on your sanowret crystal</pattern>
      <value>tell cara to go faster</value>
    </trigger>
    <trigger>
      <pattern>^You tell your driver to speed up the pace</pattern>
      <value>#gag
echo donewithfeed</value>
    </trigger>
  </trigger>
</cmud>



The Filling the feedbag Script

<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
  <trigger priority="22890" copy="yes">
    <pattern>^fillthefeedbagwithgrass$</pattern>
    <value>#gag
forage grass</value>
    <trigger>
      <pattern>^Roundtime: (%d) sec</pattern>
      <value>#gag
#alarm +%int(%1) {put my grass in my feed}</value>
    </trigger>
    <trigger>
      <pattern>^({You put|That's too heavy)}</pattern>
      <value>#gag
#if (%1 == "That's too heavy") {
  drop grass
  }
echo donefillingfeedbagwithgrass</value>
    </trigger>
  </trigger>
</cmud>