Page 1 of 1

list runes installed in gear or in bag but not drop runes

Posted: Wed Jul 15, 2015 3:12 am
by beanybabe
Has anyone ever made a script to log the runes installed into gear on there chars. Just got to wondering were all the runes are I have used. Is this even possable ?

Re: list runes installed in gear or in bag but not drop runes

Posted: Wed Jul 15, 2015 1:06 pm
by Athrawes
You could parse the item links to get the IDs of the embedded runes (I think you'd have to temporally unequip your equipment to get those links though). There might be a fancier way to read those from memory, but that's something I don't know how to do ^^

Re: list runes installed in gear or in bag but not drop runes

Posted: Wed Jul 15, 2015 2:00 pm
by rock5
I believe the bot records runes so you should be able to search your inventory. They are stored in item.Runes and include the rune name and id. Eg.

Code: Select all

Command> table.print(inventory.BagSlot[61].Runes)
table: 0513E840
1:      table: 0513EA70
        Name:   Harm III
        Id:     520163
2:      table: 0513EAC0
        Name:   Endurance III
        Id:     520123
3:      table: 0513EB10
        Name:   Loot X
        Id:     520730

Re: list runes installed in gear or in bag but not drop runes

Posted: Thu Jul 16, 2015 6:34 pm
by beanybabe
I checked the logs and do not see a rune list I may need to turn on some thing or be missing a function you have.

Re: list runes installed in gear or in bag but not drop runes

Posted: Fri Jul 17, 2015 6:27 am
by rock5
It doesn't save it to the logs. As you can see from my previous example code, I was showing you that the runes are included in the inventory class info. So you don't need to parse item links as Athrawes suggested, you can search the inventory class instead.

This is how you can print all the runes in your bags.

Code: Select all

for _,item in pairs(inventory.BagSlot) do 
    if item.Runes and #item.Runes > 0 then
        printf(item.BagId) 
        for _,rune in pairs(item.Runes) do
            printf("\t"..rune.Name)
        end
        printf("\n")
    end
end
The same can be done with equipment, and the bank too I guess. Then you just need to decide how you want to log that info to a file.

Re: list runes installed in gear or in bag but not drop runes

Posted: Fri Jul 17, 2015 4:15 pm
by beanybabe
Your getting over my head. Im more of a BASIC and assembler programmer and the arrays and classes are a bit confusing yet to me. Ill play with it and see if it makes magic in my computer. I need to figure it out anyway to better handle vendor inventory. The wp I'm working on its best I keep private for now. I'm sure people have done the vendor part of the code, but not like I need it to handle multiple vendors at one time so I'm grinding at it till it works.

Also the "Y" coordinates are bouncing up and down sporadically, so often I have had to manually edit the Y coordinates out. I keep hoping someone will add a disable-Y-coordinate flag that can be inserted at top of a wp

Again thanks for the info, ill hit the books..

Re: list runes installed in gear or in bag but not drop runes

Posted: Sat Jul 18, 2015 1:37 am
by rock5
Unless the y value is off by a lot, it shouldn't make much difference. 1 thing that can could the y value to go up and down is if you are mounted or not.

Re: list runes installed in gear or in bag but not drop runes

Posted: Sat Jul 18, 2015 2:54 am
by beanybabe
I just noticed it on wp I have used may times that the char will just get stuck like it cannot see the wp and it runs back and forth a few times. It started happening recently again. Some patch you did a log time ago cleared it up in most areas but it seemed to have reappeared.

Re: list runes installed in gear or in bag but not drop runes

Posted: Sat Jul 18, 2015 4:45 am
by rock5
I tried with a mount that made me 14 higher and it still had no problem. I suspect the problem you have is because you are putting too much load on your computer. Are you running too many clients at once?

Re: list runes installed in gear or in bag but not drop runes

Posted: Mon Jul 20, 2015 9:55 am
by beanybabe
Just 1 client. fast network and computer.
I have noticed it with the Get_Player_Position also if when not moving the y will jump around. This seems to happen more in some zones like sascilla steeps in xaveria and a few other places.

It seems to be server related. I notice it creating wp also on a flat surface the y coordinate will jump 1 up and down. This does not happen every day and some events seem to make it happen more.

It just worries me as when the char hits one of these spots it will run back and forth until it gets past it.

Re: list runes installed in gear or in bag but not drop runes

Posted: Mon Jul 20, 2015 11:30 am
by rock5
Going up and down 1 shouldn't cause a problem. Maybe the server is slow and you have high pings? Maybe play with the ping showing so that when you have the problem you can look at the ping and see if it's the cause. I think Ctrl-X displays the ping but I'm not 100% sure.

Re: list runes installed in gear or in bag but not drop runes

Posted: Mon Jul 20, 2015 11:52 am
by beanybabe
Usualy it does not act up but then again I have removed the Y cord from most of the affected wp. The only time y is really needed is flying, swimming or to check for falling. I was just hoping there could be an easy way to turn it off and on as needed. I had to edit hundreds of wp to keep the char from running around brain dead. Its not so important these days the servers are so low pop. It may be a feature to think about for a future game.

Re: list runes installed in gear or in bag but not drop runes

Posted: Mon Jul 20, 2015 12:01 pm
by rock5
It's just that it's not supposed to be happening. But I'll keep it in mind and if other users start having similar problems then I'll look into it more carefully.

Re: list runes installed in gear or in bag but not drop runes

Posted: Mon Jul 20, 2015 12:24 pm
by noobbotter
I almost feel like I remember reading somewhere that some servers had done something to fluctuate their y values, but of course don't recall where I saw/heard that. Anyone else recall hearing something like that?