[Orion] Looking for a Claim script
[Orion] Looking for a Claim script
Does anyone have a script to claim all the corpses at your feet for Orion? I would toggle it on after looting is done I can just clean up the area around me with a simple script. I have no knowledge of scripting so any help would be appreciated. Thank you
Alibaster in game!!
Re: [Orion] Looking for a Claim script
not sure if this is exactly what you want, but this is what i use and just spam the hotkey i made for it. and i just use this in UOS
Code: Select all
if @findtype 0x2006 'any' 'ground' 1 2
msg '[claim'
waitfortarget 15000
target 'found'
pause 200
canceltarget
else
sysmsg 'No corpse found.'
endif
Re: [Orion] Looking for a Claim script
This is what i use in Orion. For it to work you need for the claimAll.oajs to be highlighted on the sscripts from folder window. You just set a hotkey for it and it will claim every corpse in range. If you cant get it to work i can send you the file, just hit me up ingame or on discord Slimans#3175
function claimAll() {
const entities = Orion.FindTypeEx(
"0x2006",
"any",
"ground",
"inlos|ignoreself",
"8"
).sort(function (a, b) {
return a.Distance() - b.Distance();
});
Orion.CancelTarget();
if (entities.length > 0) {
entities.forEach(function (entity) {
if (!Orion.HaveTarget()) {
Orion.Say("[claim");
}
if (Orion.WaitForTarget("1000")) {
Orion.TargetObject(entity.Serial());
}
Orion.Wait("250");
});
}
Orion.CancelTarget();
}
function claimAll() {
const entities = Orion.FindTypeEx(
"0x2006",
"any",
"ground",
"inlos|ignoreself",
"8"
).sort(function (a, b) {
return a.Distance() - b.Distance();
});
Orion.CancelTarget();
if (entities.length > 0) {
entities.forEach(function (entity) {
if (!Orion.HaveTarget()) {
Orion.Say("[claim");
}
if (Orion.WaitForTarget("1000")) {
Orion.TargetObject(entity.Serial());
}
Orion.Wait("250");
});
}
Orion.CancelTarget();
}
Re: [Orion] Looking for a Claim script
thanks for this slimans, it works great and I do like a clean dungeon. how do i set a hot key for it please.
Re: [Orion] Looking for a Claim script
Hotkeys>Scripts "run script claimAll" and pick a key. To effectively run the script after this claimAll..oajs just needs to be highlighted in the "scripts from folder" tab of the scripts tab(not sure why but it wont work without it being highlighted there)