ScriptUO
Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Tana on June 10, 2014, 10:56:51 AM
-
Hello i was just wondering if it was possible to add something like this into a script and how i would do it? i do alot of mining in fel and recently got PKed while doing it. Didn loose anything other then some ore of course but i would like to be able to attempt to get away. EX. I recalled into a mining spot (Using Neos Kung Fu Miner) and there was another RED miner already in my cave, me being across the room didn notice in time to save myself. i find my self dead and not able to res and switch chars in time to get my stuff back. So in short i was wondering if this has been done? or if i could write it and add it in as a sub? anything on the subject would be helpful
Scripting Noob
Tana
-
The problem is, you would have to find a way for it to be incorportated into the script you are running. If they don't make it available it might be difficult to add it so that it doesn't conflict with what is already running. Best thing to do would be to find the mining script you are running and ask the author if there is any support in this area.
-
Sorry.
-
It has been done.. and probably many times. Unfortunately it seems to be one of those features no one likes to share. Personally I've never shared those features to general public because my miner enjoys the protection of their being easy target miners roaming around, so the pk'ers can have some fun but not at my expense.
I know selfish and twisted. I suspect if you want that kind of feature you probably will have to investigate writing it yourself.
-
Guess I could take a shot at this. I haven't used that script so wouldn't know a good spot to put this but...
Should work just need to add "gosub findred" some were within the main loop.
set %pk XU_OCB_IS_AV_
set %runebook ; runebook with a default stop to recall and halt
sub findred
finditem %pk G_10
if #findrep 4 || if #findrep = 5 || if #findrep = 6 || if #findrep = 1 ;only because who trusts blues?
{
finditem %runebook C_ , #backpackid
set #ltargetid #findid
if #targcurs = 1
key esc
event macro 15 31
target
event macro 22 0
halt
}
return
I am sure there is a cleaner way of doing that but that's about all I am good for right now.
-
And pray an NPC doesn't walk by :X
-
Could just drop the 1 if that is a problem with were you mine. I just Hate blues more than I hate reds. >:(
Or red healers I have never trusted them. Its a good thing that there are no red healers in fel.