-
Notifications
You must be signed in to change notification settings - Fork 0
/
p3_eqemu.inc
executable file
·48 lines (35 loc) · 1.02 KB
/
p3_eqemu.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
SUB p3_eqemu_init {
/declare myCorpseName string outer ${Me.CleanName}'s corpse
/declare currentCorpseTargetID int outer 0
/declare doSelfCorpseAutoLoot bool outer TRUE
/varset doSelfCorpseAutoLoot ${getBotIniOption[Misc.AutoLootSelfCorpse,YES,general]}
/RETURN
}
SUB eqemuMaintenance() {
/if (${Me.Invis}!=NULL) /return
/if (${doSelfCorpseAutoLoot}==TRUE && ${Spawn[pccorpse ${myCorpseName} radius 50].ID}!=NULL) {
/if (${Window[LootWnd]}==TRUE) {
|/delay 10
|/notify LootWnd LW_LootAllButton leftmouseup
/RETURN RESET
}
/echo Corpse pickup routine activated...
/varset currentCorpseTargetID ${Spawn[pccorpse ${myCorpseName} radius 50].ID}
/while (${Spawn[id ${currentCorpseTargetID}].Distance}>10) {
/if (${Stick.Active}==FALSE) {
/stick 5 id ${currentCorpseTargetID}
/face fast id ${currentCorpseTargetID}
}
/delay 3
}
/stick off
/delay 3
/tar id ${currentCorpseTargetID}
/delay 2
/loot
/delay 5
/notify LootWnd LW_LootAllButton leftmouseup
/RETURN RESET
}
/RETURN
}