Back to "skill" tags

jaseowns_PetTwo Silent Pet Commands using Menu (Fire ele/lich) by Jaseowns

1# jaseowns_PetTwo Silent Pet Commands using Menu by Jaseowns
2# UO Outlands
3# WIP: ONLY FIRE ELEMENTAL OR LICH ATM
4# Live stream: https://youtube.com/live/xdcZhPSpuiM?feature=share
5
6// Copy/Paste as many times as you need
7// Set Hotkey Type Based on Your Preference
8// Hotkey Type
9// -- 1 = Kill
10// -- 2 = Patrol
11// -- 3 = Guard
12// -- 4 = Follow
13// -- 5 = Come
14// -- 6 = Move
15// -- 7 = Stay
16// -- 8 = Release
17@setvar! jaseowns_HotKeyType 3
18
19if not varexist jaseowns_PetTwo
20    @setvar! jaseowns_PetTwo 0
21endif
22
23
24@clearignore 
25while jaseowns_PetTwo = 0 and findtype 24|15 ground -1 -1 2 as jaseowns_PotentialPet
26    if noto jaseowns_PotentialPet = "friend"
27        overhead "Potential Pet" 66 jaseowns_PotentialPet
28        rename jaseowns_PotentialPet "Jaseowns"
29        getlabel jaseowns_PotentialPet jaseowns_PetDescription 
30        if "Jaseowns" in jaseowns_PetDescription or insysmsg "That name is unacceptable"
31            @setvar! jaseowns_PetTwo jaseowns_PotentialPet    
32        else
33            @ignore jaseowns_PotentialPet
34        endif
35    else
36        @ignore jaseowns_PotentialPet
37    endif
38endwhile
39if find jaseowns_PetTwo ground -1 -1 18
40    menu jaseowns_PetTwo jaseowns_HotKeyType
41    if jaseowns_HotKeyType = 1
42        overhead "� Attacking �" 88 jaseowns_PetTwo    
43    elseif jaseowns_HotKeyType = 2
44        overhead "� Patrolling �" 88 jaseowns_PetTwo    
45    elseif jaseowns_HotKeyType = 3
46        overhead "� Guarding �" 88 jaseowns_PetTwo
47    elseif jaseowns_HotKeyType = 4
48        overhead "� Following �" 88 jaseowns_PetTwo
49    elseif jaseowns_HotKeyType = 5
50        overhead "� Coming �" 88 jaseowns_PetTwo
51    elseif jaseowns_HotKeyType = 6
52        overhead "� Moving �" 88 jaseowns_PetTwo
53    elseif jaseowns_HotKeyType = 7
54        overhead "� Staying �" 88 jaseowns_PetTwo
55    endif
56    if timerexists jaseowns_NoFoundPetTimer
57        removetimer jaseowns_NoFoundPetTimer
58    endif
59else
60    sysmsg "No pet found..." 38
61    if not timerexists jaseowns_NoFoundPetTimer
62        settimer jaseowns_NoFoundPetTimer 0
63    endif
64    
65    if timer jaseowns_NoFoundPetTimer >= 5000
66        unsetvar jaseowns_PetTwo
67    endif
68    getlabel backpack jaseowns_PingCheck
69    replay
70endif
71@clearignore 
72