Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="iso-8859-1"?>
- <!DOCTYPE muclient>
- <!-- Saved on Thursday, September 17, 2015, 5:38 AM -->
- <!-- MuClient version 4.94 -->
- <!-- Plugin "Race_Emotes" generated by Plugin Wizard -->
- <!--
- Get better at life Bagz!
- -->
- <muclient>
- <plugin
- name="Race_Emotes"
- author="Mostly Nick Gammon w Bagz Hacks"
- id="19df337f76ec93929842f9c3"
- language="Lua"
- purpose="To give unconcious movement to characters based on race/body type"
- date_written="2015-09-17 05:34:23"
- requires="1.00"
- version="1.0"
- >
- <description trim="y">
- <![CDATA[
- SPECIAL THANKS TO XAVIOUS FOR DEBUG HELP!
- This makes an alias that uses a list of emotes or socials you define in the "speech" table. (would like to figure out how to change this on the fly in game and not have to hard code it. Would eventually like to add support for various races.)
- It picks one emote or social from the list ever 35 to 90 seconds (also defined in the script in the line with:
- wait.time (35 + math.random (35)) -- 35 to 90 seconds
- start with: raceemotes on
- stop with: raceemotes off
- ]]>
- </description>
- </plugin>
- <!-- Get our standard constants -->
- <include name="constants.lua"/>
- <!-- Aliases -->
- <aliases>
- <alias
- match="raceemotes on"
- enabled="y"
- send_to="12"
- sequence="100"
- >
- <send>ColourNote ("silver", "purple", "-=(Hutt Racial Emotes Enabled)=-")
- require "wait"
- wait.make (function () --- coroutine below here
- speech = {
- "emote wriggles and shifts their massive form to redistribute their weight.",
- "emote shudders deeply and gives a low, rumbling belch.",
- "emote blinks their bulbous eyes quickly, then slowly narrows them as they refocus their vision.",
- "emote stretches their diminutive arms and flicks their tail back and forth to stimulate blood circulation.",
- "emote flares their cavernous nostrils and pulls themself up straight, switching postures to ease their back muscles.",
- "emote lets out a long breath of air with an audible, 'OOOoooOoooooooowwwwhHHh'",
- "emote relaxes their muscles and shifts down into a softer more gelatonous form of themself."
- -- more here
- } -- end of speech table
- last_random = 1 --Initialize to prevent errors
- while not GetVariable ("stop_raceemotes") do
- wait.time (35 + math.random (55)) -- 35 to 90 seconds
- -- wait.time (10) 10 seconds for testing
- current_random = math.random(1, #speech)
- if current_random == last_random then --If our random variable is the same as the last one..
- current_random = current_random + 1
- end --if
- Send (speech [ current_random ])
- last_random = current_random --Our last array item used..
- end -- while
- DeleteVariable ("stop_raceemotes")
- ColourNote ("silver", "", "-=(Hutt Racial Emotes Disabled)=-")
- end) -- end of coroutine
- </send>
- </alias>
- <alias
- match="raceemotes off"
- enabled="y"
- variable="stop_raceemotes"
- send_to="12"
- sequence="100"
- >
- <send>SetVariable("stop_raceemotes", "1")</send>
- </alias>
- </aliases>
- <!-- Plugin help -->
- <aliases>
- <alias
- script="OnHelp"
- match="Race_Emotes:help"
- enabled="y"
- >
- </alias>
- </aliases>
- <script>
- <![CDATA[
- function OnHelp ()
- world.Note (world.GetPluginInfo (world.GetPluginID (), 3))
- end
- ]]>
- </script>
- </muclient>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement