Advertisement
Guest User

Untitled

a guest
Nov 11th, 2013
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.07 KB | None | 0 0
  1. Basic "how things work" - you can manually go in and change settings, but some things (like attack) you can change via aliases.
  2.  
  3. aba = auto bashing on
  4. abo = auto bashing off
  5. a = attack
  6. x = target (IE "x xorani" will target Xorani)
  7. dr = drink health
  8. dm = drink mana
  9. kk = set attack type (IE "kk dsw" will set the attack alias to "dsw @tar", "kk jab" will set it to 'jab tar')
  10. There is a trigger cluster for vermin (only enorian's right now, but I aim to add all of the lines for auto-vermining (so long as at computer) for the other cities).
  11. g = get gold/get corpsex3
  12. pgp = put gold in pack
  13.  
  14. Next on the agenda:
  15. - web recognition/set a leader/auto target-switch
  16. - aliases for path finding to bashing grounds (I've started gathering some of the vnums. I sent in a request to be able to organize aliases into groups like you can with triggers, because this will get rather unwieldy).
  17.  
  18.  
  19.  
  20. // +++++ GENERAL OPTIONS +++++ //
  21. client.echo_input = true;
  22. client.clear_input = true;
  23. client.disable_ui_transparency = true;
  24. client.no_prompts = false;
  25. client.font_stack = "Verdana"
  26. client.font_size = "13px"
  27. client.stack_delimiter = "|"
  28.  
  29. // +++++ ALIASES +++++ //
  30. client.aliases = new Array();
  31. client.aliases[client.aliases.length] = {"alias":"x", "replace_with":"@set tar"};
  32. client.aliases[client.aliases.length] = {"alias":"a", "replace_with":"@attack @tar"};
  33. client.aliases[client.aliases.length] = {"alias":"asa", "replace_with":"empower right with sacrifice|strike @tar"};
  34. client.aliases[client.aliases.length] = {"alias":"dr", "replace_with":"drink health"};
  35. client.aliases[client.aliases.length] = {"alias":"dm", "replace_with":"drink mana"};
  36. client.aliases[client.aliases.length] = {"alias":"gseal", "replace_with":"outc 1 goldenseal|eat goldenseal"};
  37. client.aliases[client.aliases.length] = {"alias":"broot", "replace_with":"outc 1 bloodroot|eat bloodroot"};
  38. client.aliases[client.aliases.length] = {"alias":"ts", "replace_with":"touch shield"};
  39. client.aliases[client.aliases.length] = {"alias":"g", "replace_with":"get gold|get corpse|get corpse|get corpse"};
  40. client.aliases[client.aliases.length] = {"alias":"pgp", "replace_with":"put gold in pack"};
  41. client.aliases[client.aliases.length] = {"alias":"kk", "replace_with":"@set attack"};
  42. client.aliases[client.aliases.length] = {"alias":"aba", "replace_with":"@set bash 1"};
  43. client.aliases[client.aliases.length] = {"alias":"abo", "replace_with":"@set bash 0"};
  44. client.aliases[client.aliases.length] = {"alias":"gabs", "replace_with":"absorb ylem"};
  45. client.aliases[client.aliases.length] = {"alias":"saca", "replace_with":"@set emsacrifice 1"};
  46. client.aliases[client.aliases.length] = {"alias":"saco", "replace_with":"@set emsacrifice 0"};
  47.  
  48.  
  49. // +++++ BINDINGS +++++ //
  50. client.bindings = new Array();
  51.  
  52.  
  53. // +++++ FUNCTIONS +++++ //
  54. client.functions = new Array();
  55. client.functions[client.functions.length] = {"name":"onLoad", "code":"// Place any code here you'd like to autorun when the system is loaded //"};
  56. client.functions[client.functions.length] = {"name":"onGMCP", "code":"// Place any code here you'd like to run when a GMCP message is received //\n// - The GMCP message is received as \"args.gmcp_method\" and \"args.gmcp_args\"\n// - \"args.gmcp_args\" is a JSON object ready to be used\n// - To see what you're receiving, try:\n// print(args.gmcp_method + '<br/>' + JSON.stringify(args.gmcp_args));"};
  57.  
  58.  
  59. // +++++ TRIGGERS +++++ //
  60. client.triggers = new Array();
  61. client.triggers[client.triggers.length] = {"name":"Balanceline","group":"AutoBashing","criteria":"You have recovered balance on all limbs.","case_insensitive":false,"gag":false,"hilight":true,"hilight_fg":"#f2dd24","hilight_bg":"#0028ba","print":"","send":"","function_name":"","code":"if (get_variable(\"bash\") == 1)\n { if (get_variable(\"emsacrifice\") == 1)\n { \n send_as_normal(\"empower left with sacrifice\");\n send_as_normal(\"empower right with sacrifice\");\n send_as_normal(\"@attack @tar\");\n }\n { if (get_variable(\"emsacrifice\") == 0)\n {\n send_as_normal(\"@attack @tar\");\n }\n }\n }\n","active":true};
  62. client.triggers[client.triggers.length] = {"name":"","group":"Vermin","criteria":"Tongue flicking to taste the air, a pebbly black snake comes into view.","case_insensitive":false,"gag":false,"hilight":false,"hilight_fg":"#000000","hilight_bg":"#ffffff","print":"","send":"","function_name":"","code":"/*****************************************************************************************\n :: Basic Scripting Guidelines ::\n\n General Notes:\n - BE CAREFUL about alerts and time delays: output may pause while they're\n being executed!\n - args[0] is the FULL text that matched\n - args[1]-args[n] are the backreferences\n - Ex: If we receive \"1000h, 950m\" and apply the trigger \"(d+)h, (d+)m\",\n the variable \"args\" would be an array as follows:\n [\"1000h, 950m\", \"1000\", \"950\"]\n*****************************************************************************************/\n\n@attack snake","active":true};
  63. client.triggers[client.triggers.length] = {"name":"v1","group":"Vermin","criteria":"Tongue flicking to taste the air, a pebbly black snake comes into view.","case_insensitive":false,"gag":false,"hilight":false,"hilight_fg":"#000000","hilight_bg":"#ffffff","print":"","send":"@attack snake","function_name":"","code":"\n","active":true};
  64. client.triggers[client.triggers.length] = {"name":"v2","group":"Vermin","criteria":"With a faint slithering noise, a pebbly black snake enters.","case_insensitive":false,"gag":false,"hilight":false,"hilight_fg":"#000000","hilight_bg":"#ffffff","print":"","send":"@attack snake","function_name":"","code":"\n\n","active":true};
  65. client.triggers[client.triggers.length] = {"name":"v3","group":"Vermin","criteria":"The glint of pebbly scales alerts you to the entrance of a black snake.","case_insensitive":false,"gag":false,"hilight":false,"hilight_fg":"#000000","hilight_bg":"#ffffff","print":"","send":"@attack snake","function_name":"","code":"\n\n","active":true};
  66.  
  67.  
  68. // +++++ VARIABLES +++++ //
  69. client.variables = new Array();
  70. client.variables[client.variables.length] = {"name":"tar", "value":"snake"};
  71. client.variables[client.variables.length] = {"name":"attack", "value":"bash"};
  72. client.variables[client.variables.length] = {"name":"bash", "value":"0"};
  73. client.variables[client.variables.length] = {"name":"emsacrifice", "value":"0"};
  74.  
  75.  
  76. // +++++ PACKAGES +++++ //
  77. client.reflex_packages = new Array();
  78. client.reflex_packages[client.reflex_packages.length] = {"name":"IRE_KeyPadMovement", "url":"/reflexes/ire_keypadmovement.js"};
  79. client.load_all_reflex_packages();
  80.  
  81.  
  82. // +++++ DISPLAY ELEMENTS +++++ //
  83. client.display_elements = client.unstringify_display_elements([{"ui_version":3},{"id":"container_1","name":"container_1","size":{"width":0.2,"height":0.6,"offset":{"width":0,"height":0}},"position":{"top":0,"left":0,"offset":{"top":0,"left":0}},"class":"tabs draggable resizable","active":true,"tabs":[{"id":"room","tab_type":"content","tab_title":"Room Info","tab_html":"Room","content_html":"<div id=\"container_room_contents\"><h5><i id=\"i_expand_room_description\" class=\"icon-plus-sign icon-white right\"></i><span id=\"s_room_name\"></span></h5><div id=\"div_room_description\"></div><h6><i id=\"i_expand_room_players\" class=\"icon-minus-sign icon-white\"></i> Players</h6><div id=\"div_room_players\"></div><h6><i id=\"i_expand_room_mobs\" class=\"icon-minus-sign icon-white\"></i> Mobs</h6><div id=\"div_room_mobs\"></div><h6><i id=\"i_expand_room_items\" class=\"icon-minus-sign icon-white\"></i> Items</h6><div id=\"div_room_items\"></div></div>","tab_sort":0,"active":true},{"id":"inventory","tab_type":"content","tab_title":"Inventory","tab_html":"Inventory","tab_click":"function () {\n send_GMCP('Char.Items.Inv', '');\n }","content_html":"<div id=\"div_inventory\" class=\"\"></div>","tab_sort":1,"active":true}],"on_ui_redraw":"function () {\n\n }","on_element_resized":"function () {\n\n }","on_element_moved":"function () {\n\n }"},{"id":"container_map","name":"container_map","title":"Map Window","size":{"width":0.2,"height":0.4,"offset":{"width":0,"height":0}},"position":{"top":0.6,"left":0,"offset":{"top":0,"left":0}},"class":"draggable resizable","active":false,"content":"<div id=\"map_room_name\"></div><div id=\"map_container\"> <div id=\"map_nomap\">NO MAP AVAILABLE</div> <div id=\"map_inner\"> <table id=\"map\"></table> <canvas id=\"map_canvas\"></canvas> </div></div><div id=\"map_room_exits\"></div>","bordered":false,"options":{"inline":true},"on_ui_redraw":"function () {\n\n Map.init(mudhost);\n\n Map.cArea = $(\"#area_list option:selected\").val();\n Map.cZ = 0;\n Map.load_map_data({onComplete:function () {\n //display_levels();\n }});\n }","on_element_resized":"function () {\n $(\"#map_container\").height($(\"#container_map\").height() - 16 - 34 - 10);\n }","on_element_moved":"function () {\n\n }"},{"id":"container_2","name":"container_2","size":{"width":0.25,"height":0.5,"offset":{"width":0,"height":0}},"position":{"top":0,"left":0.75,"offset":{"top":0,"left":0}},"class":"tabs draggable resizable","active":true,"tabs":[{"id":"quests","tab_type":"content","tab_title":"Quests","tab_html":"Quests","content_html":"<table id=\"tbl_quests\" class=\"tab_table\" style=\"border:0;\"><tbody></tbody></table>","tab_sort":0,"active":true},{"id":"skills","tab_type":"content","tab_title":"Skills","tab_html":"Skills","content_html":"<table id=\"tbl_skills\" class=\"tab_table\" style=\"border:0;\"><tbody></tbody></table>","tab_sort":1,"active":true},{"id":"triggers","tab_type":"content","tab_title":"Triggers","tab_html":"Triggers","content_html":"<h5>Trigger Groups</h5><div class=\"clear\"></div><table id=\"tbl_triggers\" class=\"tab_table\"><thead><tr><th class=\"txt_center\" style=\"width: 40px;\">On?</th><th class=\"txt_left\">Trigger Group</th></tr></thead><tbody></tbody></table>","tab_sort":2,"active":true}],"on_ui_redraw":"function () {\n\n }","on_element_resized":"function () {\n\n }","on_element_moved":"function () {\n\n }"},{"id":"container_3","name":"container_3","size":{"width":0.25,"height":0.5,"offset":{"width":0,"height":0}},"position":{"top":0.5,"left":0.75,"offset":{"top":0,"left":0}},"class":"tabs draggable resizable","active":true,"tabs":[{"id":"all_comm","tab_title":"Global Communication Window","tab_html":"Communication","tab_type":"channel","channel":"all","tab_sort":0,"active":true},{"id":"who","tab_type":"content","tab_title":"Who's Online","tab_html":"Who List","content_html":"<h5>Who's Online</h5><div class=\"clear\"></div><div id=\"div_who_channels\" class=\"\" style=\"max-height: 100px;overflow:auto;\"></div><div class=\"clear\" style=\"border-bottom: 1px solid #999;\"></div><div id=\"div_who_players\" class=\"\"></div>","tab_sort":1,"active":true}],"on_ui_redraw":"function () {\n\n }","on_element_resized":"function () {\n\n }","on_element_moved":"function () {\n\n }"},{"id":"container_output","name":"container_output","size":{"width":0.55,"height":1,"offset":{"width":8,"height":-66}},"position":{"top":0,"left":0.2,"offset":{"top":0,"left":0.2}},"class":"tabs draggable resizable","active":true,"tabs":[{"id":"main_output","tab_title":"All Game Messages and Information","tab_html":"Main","tab_type":"main_output","tab_sort":0,"active":true}],"on_ui_redraw":"function () {\n $(\"#container_input\")\n .width($(\"#container_output\").width() - 17 - 64)\n .position({\n at: \"left+2px bottom+32px\",\n my: \"left top\",\n of: \"#container_output\"\n })\n $(\"#user_input\").width(function () {return $(this).parent().width()})\n }","on_element_resized":"function () {\n $(\"#container_input\")\n .width($(\"#container_output\").width() - 17 - 64)\n .position({\n at: \"left+2px bottom+32px\",\n my: \"left top\",\n of: \"#container_output\"\n })\n $(\"#user_input\").width(function () {return $(this).parent().width()})\n }","on_element_moved":"function () {\n $(\"#container_input\")\n .width($(\"#container_output\").width() - 17 - 64)\n .position({\n at: \"left+2px bottom+32px\",\n my: \"left top\",\n of: \"#container_output\"\n })\n }"},{"id":"container_character_module","name":"container_character_module","title":"Status","size":{"width":0.55,"height":0,"offset":{"width":-64,"height":28}},"position":{"top":1,"left":0.2,"offset":{"top":-70,"left":0}},"class":"","active":true,"href":"#character_module","options":{"inline":true},"bordered":false,"on_ui_redraw":"function () {\n redraw_gauges()\n }","on_element_resized":"function () {\n redraw_gauges()\n }","on_element_moved":"function () {\n\n }","content":"\n <div id=\"character_module_balances\">\n <div id=\"character_module_balance\" class=\"balance bal\" rel=\"tooltip\" title=\"&lt;b&gt;Balance&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;Most physical abilities require that you have Balance and will take away your Balance for a few seconds after you use the ability.\">\n <i class=\"icon-legal\"></i>\n </div>\n <div id=\"character_module_equilibrium\" class=\"balance eq\" rel=\"tooltip\" title=\"&lt;b&gt;Equilibrium&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;Most magical or mental abilities will require that you have 'Equilibrium' (or simply 'eq') and will use it up for a few seconds when you use the ability.\">\n <i class=\"icon-star\"></i>\n </div>\n </div>\n <div id=\"character_module_gauge_health\" class=\"gauge\">\n <div class=\"diff\"></div>\n <div class=\"text\" rel=\"tooltip\">Health</div>\n </div>\n <div id=\"character_module_gauge_mana\" class=\"gauge\">\n <div class=\"diff\"></div>\n <div class=\"text\" rel=\"tooltip\">Mana</div>\n </div>\n <div id=\"character_module_gauge_endurance\" class=\"gauge\">\n <div class=\"diff\"></div>\n <div class=\"text\" rel=\"tooltip\">Endurance</div>\n </div>\n <div id=\"character_module_gauge_willpower\" class=\"gauge last\">\n <div class=\"diff\"></div>\n <div class=\"text\" rel=\"tooltip\">Willpower</div>\n </div>\n "},{"id":"container_character_module_avatar","name":"container_character_module_avatar","title":"Avatar","tooltip":"Character avatar. Right-click to change","size":{"width":0,"height":0,"offset":{"width":64,"height":64}},"position":{"top":1,"left":0.75,"offset":{"top":-73,"left":-70}},"class":"","active":true,"content":"<div id=\"character_module_avatar\"></div>","options":{"inline":true},"bordered":false,"on_ui_redraw":"function () {\n }","on_element_resized":"function () {\n }","on_element_moved":"function () {\n }"},{"id":"container_input","name":"container_input","size":{"width":0.6,"height":0,"offset":{"width":-64,"height":32}},"position":{"top":1,"left":0.2,"offset":{"top":-48,"left":0}},"class":"","active":true,"content":"<div id=\"input\"> <form id=\"data_form\" style=\"text-align: center;\"> <input id=\"user_input\" type=\"text\" autocomplete=\"off\" /> <input type=\"submit\" style=\"position: absolute; top: -1000px; left: -1000px;\" /> </form></div>","bordered":false,"options":{"inline":true},"on_ui_redraw":"function () {\n $(\"#container_input\")\n .width($(\"#container_output\").width() - 17 - 64)\n .position({\n at: \"left+2px bottom+32px\",\n my: \"left top\",\n of: \"#container_output\"\n })\n $(\"#user_input\").width(function () {return $(this).parent().width()})\n }","on_element_resized":"function () {\n $(\"#container_input\")\n .width($(\"#container_output\").width() - 17 - 64)\n .position({\n at: \"left+2px bottom+32px\",\n my: \"left top\",\n of: \"#container_output\"\n })\n $(\"#user_input\").width(function () {return $(this).parent().width()})\n }","on_element_moved":"function () {\n $(\"#container_input\")\n .width($(\"#container_output\").width() - 17 - 64)\n .position({\n at: \"left+2px bottom+32px\",\n my: \"left top\",\n of: \"#container_output\"\n })\n }"}]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement