Advertisement
Guest User

example

a guest
Aug 11th, 2014
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 12.90 KB | None | 0 0
  1. <Settings>
  2.   <Alerts>
  3.     <Player>
  4.       <OnScreen>
  5.         <PlaySound>no</PlaySound>
  6.         <FlashClient>no</FlashClient>
  7.         <PauseBot>no</PauseBot>
  8.         <Disconnect>no</Disconnect>
  9.         <SafeList>null</SafeList>
  10.       </OnScreen>
  11.       <Attacking>
  12.         <PlaySound>yes</PlaySound>
  13.         <FlashClient>yes</FlashClient>
  14.         <PauseBot>no</PauseBot>
  15.         <Disconnect>no</Disconnect>
  16.         <SafeList>null</SafeList>
  17.       </Attacking>
  18.       <GMOnScreen>
  19.         <PlaySound>yes</PlaySound>
  20.         <FlashClient>yes</FlashClient>
  21.         <PauseBot>yes</PauseBot>
  22.         <Disconnect>no</Disconnect>
  23.       </GMOnScreen>
  24.     </Player>
  25.     <Creature />
  26.     <Item />
  27.     <Message>
  28.       <PrivateMessage>
  29.         <PlaySound>no</PlaySound>
  30.         <FlashClient>no</FlashClient>
  31.         <PauseBot>no</PauseBot>
  32.         <Disconnect>no</Disconnect>
  33.         <SafeList>null</SafeList>
  34.       </PrivateMessage>
  35.       <Advanced>
  36.         <PlaySound>no</PlaySound>
  37.         <FlashClient>no</FlashClient>
  38.         <PauseBot>no</PauseBot>
  39.         <Disconnect>no</Disconnect>
  40.         <Screenshot>no</Screenshot>
  41.       </Advanced>
  42.       <Raid>
  43.         <PlaySound>no</PlaySound>
  44.         <FlashClient>no</FlashClient>
  45.         <PauseBot>no</PauseBot>
  46.         <Disconnect>no</Disconnect>
  47.         <Warnings>All</Warnings>
  48.       </Raid>
  49.       <SafeBank>
  50.         <PlaySound>yes</PlaySound>
  51.         <FlashClient>yes</FlashClient>
  52.         <PauseBot>yes</PauseBot>
  53.         <CloseTibia>no</CloseTibia>
  54.         <Disconnect>yes</Disconnect>
  55.       </SafeBank>
  56.       <HealCreature>
  57.         <PlaySound>yes</PlaySound>
  58.         <FlashClient>yes</FlashClient>
  59.         <PauseBot>yes</PauseBot>
  60.         <CloseTibia>no</CloseTibia>
  61.         <Disconnect>yes</Disconnect>
  62.         <Screenshot>no</Screenshot>
  63.       </HealCreature>
  64.       <YourAttack>
  65.         <PlaySound>yes</PlaySound>
  66.         <FlashClient>yes</FlashClient>
  67.         <PauseBot>yes</PauseBot>
  68.         <CloseTibia>no</CloseTibia>
  69.         <Disconnect>yes</Disconnect>
  70.         <Screenshot>no</Screenshot>
  71.         <SafeList>null</SafeList>
  72.       </YourAttack>
  73.     </Message>
  74.     <Capacity>
  75.       <Value>0</Value>
  76.       <PlaySound>no</PlaySound>
  77.       <FlashClient>no</FlashClient>
  78.       <PauseBot>no</PauseBot>
  79.       <Disconnect>no</Disconnect>
  80.     </Capacity>
  81.     <StandTime>
  82.       <Value>30000</Value>
  83.       <PlaySound>no</PlaySound>
  84.       <FlashClient>no</FlashClient>
  85.       <PauseBot>no</PauseBot>
  86.       <Disconnect>no</Disconnect>
  87.     </StandTime>
  88.     <CrazyName>
  89.       <PlaySound>yes</PlaySound>
  90.       <FlashClient>yes</FlashClient>
  91.       <PauseBot>no</PauseBot>
  92.       <Screenshot>yes</Screenshot>
  93.       <CloseTibia>no</CloseTibia>
  94.       <Disconnect>no</Disconnect>
  95.     </CrazyName>
  96.     <Disconnect>
  97.       <PlaySound>yes</PlaySound>
  98.       <FlashClient>yes</FlashClient>
  99.       <PauseBot>no</PauseBot>
  100.     </Disconnect>
  101.     <Enabled>no</Enabled>
  102.   </Alerts>
  103.   <Healer>
  104.     <Rules>
  105.     </Rules>
  106.     <PingCompensation>10</PingCompensation>
  107.     <Enabled>yes</Enabled>
  108.   </Healer>
  109.   <FriendHealer>
  110.     <Rules />
  111.     <Enabled>no</Enabled>
  112.   </FriendHealer>
  113.   <Refiller>
  114.     <Rules />
  115.     <Enabled>no</Enabled>
  116.   </Refiller>
  117.   <HotKeys>
  118.     <List>
  119.       <ShowBot>
  120.         <Script>showbot()</Script>
  121.         <MainKey>66</MainKey>
  122.         <ComboKey>Alt</ComboKey>
  123.         <Enabled>yes</Enabled>
  124.       </ShowBot>
  125.       <PauseBot>
  126.         <Script>local cavebot = getsettings("Settings/CaveBot/Enabled")
  127. local targeting = getsettings("Settings/Targeting/Enabled")
  128.  
  129. if cavebot == 'no' or targeting == 'no' then
  130.    setcavebot('on')
  131.    settargeting('on')
  132.    setlooting('on')
  133. else
  134.    setcavebot('off')
  135.    settargeting('off')
  136.    setlooting('off')
  137. end
  138. wait(500)</Script>
  139.         <MainKey>19</MainKey>
  140.         <ComboKey>None</ComboKey>
  141.         <Enabled>yes</Enabled>
  142.       </PauseBot>
  143.       <ShowClient>
  144.         <Script>focusclient()</Script>
  145.         <MainKey>84</MainKey>
  146.         <ComboKey>Alt</ComboKey>
  147.         <Enabled>yes</Enabled>
  148.       </ShowClient>
  149.       <ShowSettings>
  150.         <Script>showsettings()</Script>
  151.         <MainKey>83</MainKey>
  152.         <ComboKey>Alt</ComboKey>
  153.         <Enabled>yes</Enabled>
  154.       </ShowSettings>
  155.     </List>
  156.     <Condition>Client focus required</Condition>
  157.     <Enabled>no</Enabled>
  158.   </HotKeys>
  159.   <Actions>
  160.     <List>
  161.       <Manager>
  162.         <Script>-- This action is the core of everything, so do not forget it!;manager:think()</Script>
  163.         <SpamRate>5000 to 7000</SpamRate>
  164.         <Enabled>yes</Enabled>
  165.       </Manager>
  166.     </List>
  167.     <Setup>-- Example of backpacks handler.;-- not really neccesary for the system, if you have your own backpack handler.;backpacks =;    {;        {name = 'demon backpack',   parent = "back",            resize = 2},;        {name = 'brocade backpack', parent = 'demon backpack',  resize = 2},;        {name = 'fur backpack',     parent = 'demon backpack'};    };;;local users = {'Botin', 'Botoneitor'}    -- character names;manager = AccountManager.new(users);manager:setBackpacks(backpacks) -- we set the backpacks used by the system.;manager:setLabel("fromt")       -- first label from trainers.</Setup>
  168.     <Enabled>yes</Enabled>
  169.   </Actions>
  170.   <CaveBot>
  171.     <Waypoints>
  172.       <start>Stand 32254 31140 7 0</start>
  173.       <w000>Action 32254 31140 7 -- normal start
  174. ;-- go to depot, bank, potions etc
  175. ;-- after this check manager status</w000>
  176.       <depot>Stand 32254 31140 7 0</depot>
  177.       <bank>Stand 32256 31140 7 0</bank>
  178.       <potions>Stand 32258 31140 7 0</potions>
  179.       <manager_check>Stand 32251 31142 7 0</manager_check>
  180.       <w045>Action 32241 31140 7 -- we run a check, if stamina too low or we have been
  181. ;-- hunting for too long, lets go to the trainers or logout
  182. ;-- waypoint, in this case "totr
  183. ;
  184. ;if not manager:checkStamina() then
  185. ;   gotolabel("totr")
  186. ;end
  187. ;
  188. ;-- if everything ok and we dont need logout
  189. ;-- the cavebot system will keep going to next waypoint
  190. ;-- next waypoint should be way to hunt, travel, etc..</w045>
  191.       <waytohunt>Stand 32244 31140 7 0</waytohunt>
  192.       <w002>Stand 32238 31140 7 0</w002>
  193.       <w003>Stand 32232 31140 7 0</w003>
  194.       <w001>Stand 32224 31144 7 0</w001>
  195.       <Hunt>Stand 32222 31143 7 0</Hunt>
  196.       <w005>Action 32222 31143 7 -- normal hunting waypoints</w005>
  197.       <w006>Stand 32222 31146 7 0</w006>
  198.       <w007>Stand 32223 31144 7 0</w007>
  199.       <w008>Stand 32229 31144 7 0</w008>
  200.       <w079>Action 32025 31444 6 -- we run our normal "need refill" action, but we need to add something new.
  201. ;
  202. ;-- Lets put this here.
  203. ;local ignore = getBooleanFromGlobal("ignoretime_" .. getscriptname())
  204. ;
  205. ;if (itemcount("mana potion") &lt;= 50) or (cap &lt;= 90) -- check health potions, ammunition, etc (Notice there is no "then")
  206. ;    -- This part should be normal for you, next line is new.
  207. ;    -- We add a check for stamina and hunting time.
  208. ;    or (stamina &lt;= 840) or ((timehunt &gt;= HUNT_TIME) and not ignore) then
  209. ;    gotolabel("refill")
  210. ;else
  211. ;    gotolabel("Hunt")
  212. ;end
  213. ;
  214. ;</w079>
  215.       <refill>Stand 32026 31444 6</refill>
  216.       <w009>Action 32232 31143 7 -- Lets refill</w009>
  217.       <waytorefill>Stand 32233 31141 7 0</waytorefill>
  218.       <w010>Stand 32246 31141 7 0</w010>
  219.       <w011>Stand 32241 31140 7 0</w011>
  220.       <w012>Stand 32247 31142 7 0</w012>
  221.       <w013>Action 32245 31142 7 -- We travel, sell our NPC loot, etc
  222. ;-- Then go back to first waypoint</w013>
  223.       <w004>Action 32248 31067 6 gotolabel("start")</w004>
  224.       <fromt>Stand 32246 31071 6 0</fromt>
  225.       <w014>Action 32245 31142 7 -- fromt = first waypoint from trainers</w014>
  226.       <w029t>Stand 32245 31093 6 0</w029t>
  227.       <w030t>Stand 32235 31107 6 0</w030t>
  228.       <w031t>Stand 32235 31108 6 0</w031t>
  229.       <w032t>Stand 32249 31141 7 0</w032t>
  230.       <w087>Action 32249 31141 7 -- we check if we need to pick our set from house.
  231. ;if needSet() then
  232. ;    gotolabel("need")
  233. ;else
  234. ;    gotolabel("start")
  235. ;end</w087>
  236.       <need>Stand 32242 31144 7 0</need>
  237.       <w088>Stand 32240 31153 7 0</w088>
  238.       <w089>Stand 32234 31156 7 0</w089>
  239.       <w090>Stand 32234 31157 7 0</w090>
  240.       <w091>Stand 32234 31159 7 0</w091>
  241.       <w092>Action 32234 31159 7 -- This waypoint should be INSIDE the house.
  242. ;AccountManager.findSet()</w092>
  243.       <w093>Stand 32238 31155 7 0</w093>
  244.       <w094>Stand 32241 31142 7 0</w094>
  245.       <w095>Stand 32246 31140 7 0</w095>
  246.       <w044t>Action 32249 31141 7 -- then go back to our normal first waypoint
  247. ;gotolabel("start")</w044t>
  248.       <totr>Stand 32257 31141 7 0</totr>
  249.       <w015>Action 32245 31142 7 -- totr = waypoints to trainers</w015>
  250.       <w029>Action 32245 31141 7 -- Lets decide if we need to save our set in house.
  251. ;if needSaveSet() then
  252. ;    gotolabel("opt1")
  253. ;else
  254. ;    gotolabel("opt2")
  255. ;end</w029>
  256.       <opt1>Stand 32243 31144 7 0</opt1>
  257.       <w073>Stand 32241 31150 7 0</w073>
  258.       <w081>Stand 32234 31157 7 0</w081>
  259.       <w082>Stand 32234 31159 7 0</w082>
  260.       <w083>Action 32234 31159 7 -- This waypoint should be INSIDE the house.
  261. ;AccountManager.saveSet()</w083>
  262.       <w084>Stand 32239 31155 7 0</w084>
  263.       <w085>Stand 32243 31150 7 0</w085>
  264.       <w086>Stand 32243 31141 7 0</w086>
  265.       <opt2>Stand 32237 31121 7 0</opt2>
  266.       <w030>Stand 32235 31109 7 0</w030>
  267.       <w031>Stand 32235 31108 7 0</w031>
  268.       <w032>Stand 32242 31085 6 0</w032>
  269.       <w044>Stand 32248 31067 6 0</w044>
  270.       <finish>Action 32248 31066 6 -- Last waypoint before logout, it should be in center
  271. ;-- of trainers so all training statues are visible.
  272. ;
  273. ;manager:next()</finish>
  274.     </Waypoints>
  275.     <Pathfinding>
  276.       <SpecialAreas />
  277.       <WalkThroughPlayers>yes</WalkThroughPlayers>
  278.       <WalkingMethod>Arrows Keys</WalkingMethod>
  279.       <MapWalkDistance>20 to 50</MapWalkDistance>
  280.       <WalkableIds>140;404;831;832;833;834;883;2118;2119;2120;2121;2122;2123;2124;2125;2126;2127;2131;2132;2133;2134;2135;2314;2315;2316;2319;2346;2347;2348;2349;2350;2351;2352;2353;2354;2355;2356;2357;2358;2359;2360;2361;2362;2363;2364;2365;2366;2367;2368;2369;2370;2371;2372;2373;2374;2375;2376;2377;2378;2379;2380;2381;2382;2383;2384;2385;2418;2419;2420;2421;2422;2423;2424;2425;2426;2431;2432;2433;2434;2441;2442;2443;2444;2469;2471;2472;2473;2478;2480;2481;2482;2483;2484;2485;2486;2519;2523;2775;2776;2777;2778;2779;2780;2781;2782;2783;2784;2785;2786;2787;2788;2789;2790;2791;2792;2793;2794;2795;2796;2797;2798;2799;2800;2801;2802;2803;2804;2805;2806;2807;2808;2809;2810;2811;2812;2981;2983;2982;2984;2985;2987;2988;3503;3504;3514;3807;5086;5087;5088;6114;6115;6355;6356;6357;6358;6359;6360;6361;6362;6371;6372;7864;8455;8763;9061;9062;10207;10209;10216;10286;10287;10288;11009;11800;11801;11802;11803;11804;11805;11806;11807;11808;11809;11810</WalkableIds>
  281.     </Pathfinding>
  282.     <Settings>
  283.       <Rope>3003</Rope>
  284.       <Shovel>3457</Shovel>
  285.       <Pick>3456</Pick>
  286.       <Machete>3308</Machete>
  287.       <NodeRange>4</NodeRange>
  288.       <Priority>Target</Priority>
  289.       <OpenNextBp>if cavebot enabled</OpenNextBp>
  290.       <AutoMount>yes</AutoMount>
  291.       <Anti-idle>no</Anti-idle>
  292.       <EatFood>yes</EatFood>
  293.       <FoodToEat>3725;3587;3600;3595;3589;3598;8014;3583;3606;3578;3592;3582;3577;3593;3586;3585;3581;3723</FoodToEat>
  294.       <PauseOnDeath>yes</PauseOnDeath>
  295.     </Settings>
  296.     <Enabled>no</Enabled>
  297.   </CaveBot>
  298.   <Looting>
  299.     <List>
  300.     </List>
  301.     <Condition>Corpses with listed items</Condition>
  302.     <Style>After melee kill</Style>
  303.     <OpenBodyTime>300</OpenBodyTime>
  304.     <PickLootTime>400 to 500</PickLootTime>
  305.     <UseBrowseField>yes</UseBrowseField>
  306.     <Range>10</Range>
  307.     <EatFood>yes</EatFood>
  308.     <Enabled>yes</Enabled>
  309.   </Looting>
  310.   <Targeting>
  311.     <Monsters>
  312.     </Monsters>
  313.     <Settings>
  314.       <ListOrder>7</ListOrder>
  315.       <Health>9</Health>
  316.       <Proximity>6</Proximity>
  317.       <Danger>5</Danger>
  318.       <Stick>yes</Stick>
  319.       <CheckName>yes</CheckName>
  320.       <VisibleTime>300 to 500</VisibleTime>
  321.       <WalkingMethod>Arrows Keys</WalkingMethod>
  322.       <AttackPlayersSummon>no</AttackPlayersSummon>
  323.       <PlayerOnScreenSecurity>If cavebotting</PlayerOnScreenSecurity>
  324.       <CooldownControl>yes</CooldownControl>
  325.       <CheckItem>no</CheckItem>
  326.       <MustBeReachable>yes</MustBeReachable>
  327.       <MustBeShootable>no</MustBeShootable>
  328.     </Settings>
  329.     <Enabled>yes</Enabled>
  330.   </Targeting>
  331.   <Hud>
  332.     <List>
  333.     </List>
  334.     <Show>If Focused</Show>
  335.     <RefreshRate>1000</RefreshRate>
  336.     <Enabled>no</Enabled>
  337.   </Hud>
  338.   <Input>
  339.     <Keyboard>
  340.       <Mode>Simulate</Mode>
  341.       <StuckCtrlShift>If cavebot on, release after 1 sec</StuckCtrlShift>
  342.       <TypingStyle>Keyboard keys</TypingStyle>
  343.       <PressWaitTime>45 to 65</PressWaitTime>
  344.     </Keyboard>
  345.     <Mouse>
  346.       <Mode>Simulate</Mode>
  347.       <Scroll>Use mouse wheel</Scroll>
  348.       <MoveSpeed>Instantaneous</MoveSpeed>
  349.       <ClickWaitTime>30 to 50</ClickWaitTime>
  350.     </Mouse>
  351.     <OpenMenuPolicy>Confirm if cavebotting</OpenMenuPolicy>
  352.     <Enabled>yes</Enabled>
  353.   </Input>
  354. </Settings>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement