Counting shells in client 6.0.0+
Counting shells in client 6.0.0+
Hey rock, don't know where to put this so I just posted here.
Anyway, looks like they changed how the other game currencies (shells and mems) work. They are now put directly in the new currency list tab in your character window.
So I think the bot needs an update to be able to get an accurate count of each currency coz they're not in the inventory or bank anymore.
Anyway, looks like they changed how the other game currencies (shells and mems) work. They are now put directly in the new currency list tab in your character window.
So I think the bot needs an update to be able to get an accurate count of each currency coz they're not in the inventory or bank anymore.
Re: 757 Changelog
If you're not sure where to post then start a new post. Your subject has nothing to do with the changelog.
Anyway it looks like there is nothing to change. Firstly the bot doesn't 'use' currency so has no code for them. The only thing it saves is inventory.Money which it does not use. Secondly I only see Honor Points, Arena Points and Badge of the Warrior in the currency list. Hasn't it always been like that?
Anyway it looks like there is nothing to change. Firstly the bot doesn't 'use' currency so has no code for them. The only thing it saves is inventory.Money which it does not use. Secondly I only see Honor Points, Arena Points and Badge of the Warrior in the currency list. Hasn't it always been like that?
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: 757 Changelog
Wouldn't have bothered posting if it was like that from the start. Like I said, they changed it with the new patch.rock5 wrote:Hasn't it always been like that?
Here is an excerpt of the official patch notes from official forum:
Code: Select all
Coin Interface Adjustments:
1. Now the last tab of the Character page has been changed to [Currency List].
2. Phirius Shell, Energy of Justice, Dreamland Pioneer Sigil, Ancient Memento, Proof of Myth and Badges of the Trial have been added to the page.
3. The function of switching to the Currency List after used the following items has been added: Phirius Shell, Energy of Justice, Dreamland Pioneer Sigil, Ancient Memento, Proof of Myth and Badges of the Trial have been added to the page.
4. In all the shops regarding Phirius Shell, Energy of Justice, Dreamland Pioneer Sigil, Ancient Memento, Proof of Myth and Badges of the Trial, the coin amount for purchasing will be checked first in the Currency List.
5. When obtaining the items mentioned above except for Proof of Myth, the coin amount will changed to the currency showed in the Currency List.
Re: 757 Changelog
Ah so only newly obtained currencies go in there.
So you need a new way to get those currencies for all the waypoints out there that used to use itemTotalCount?
Ok, I'll Look Into it.
So you need a new way to get those currencies for all the waypoints out there that used to use itemTotalCount?
Ok, I'll Look Into it.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: 757 Changelog
Yep, exactly.rock5 wrote:Ah so only newly obtained currencies go in there.
So you need a new way to get those currencies for all the waypoints out there that used to use itemTotalCount?
Ok, thanks.rock5 wrote:Ok, I'll Look Into it.
Re: 757 Changelog
After searching for awhile for changed code that indicated a change to the Currency List and failing, I had a look for that quote you mentioned. It seems to be for version 6.0.0 which I don't have yet.
I just checked my EU client and it started updating. I'll get back to you later.
I just checked my EU client and it started updating. I'll get back to you later.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: 757 Changelog
Yeah I read this post and started my update, it still hasn't finished patching yet, it's big.
Remember no matter you do in life to always have a little fun while you are at it
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: 757 Changelog
siege badges at 0xA02248 -- confirmed
mems is at 0xA0224C -- confirmed
proof of myth is probably 0xA02250 -- guessed
phirius shells at 0xA02254 -- confirmed
energy of justice at 0xA02258 -- confirmed
Gold is at
moneyPtr = 0x9F4AA4,
mems is at 0xA0224C -- confirmed
proof of myth is probably 0xA02250 -- guessed
phirius shells at 0xA02254 -- confirmed
energy of justice at 0xA02258 -- confirmed
Gold is at
moneyPtr = 0x9F4AA4,
Remember no matter you do in life to always have a little fun while you are at it
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Counting shells in client 6.0.0+
With the patch to client version 6.0.0 they have implemented shells, and some other currencies to behave like gold. You no longer have these as items in your bagpack, but you can have a look at your currencies list in your character window.
As I was used to count shells by counting inventory items I do not know how to count the shells now.
So how can I count the amount of shells now?
I think this is also important for the mini game scripts, where you can earn shells, because the checks for shells in there do also not work any more.
Ric
As I was used to count shells by counting inventory items I do not know how to count the shells now.
So how can I count the amount of shells now?
I think this is also important for the mini game scripts, where you can earn shells, because the checks for shells in there do also not work any more.
Ric
Re: 757 Changelog
I probably wouldn't go that way. I've always been of the opinion that we should avoid getting things from memory unless you really need it to go fast, for instance while hunting out in the field, or there is no other way to get it. Just to reduce the number of addresses that need updating after patches. Getting money values are probably only needed at certain npcs etc. I would look for new in game commands instead. I probably will once I've finished patching. Currently 70%.
Edit: I've just merged these related topics together. Makes sense to have 1 dedicated topic. Rickster you might want to read from the top.
Edit: I've just merged these related topics together. Makes sense to have 1 dedicated topic. Rickster you might want to read from the top.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Counting shells in client 6.0.0+
i spent about 20 mins going through CE looking for new functions to get the currency, I figured they wouldn't just add in new args for existing functions. I failed to find anything useful.
The address was a quick solution, even if it is only temporary.
The address was a quick solution, even if it is only temporary.
Remember no matter you do in life to always have a little fun while you are at it
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Counting shells in client 6.0.0+
I found the function that can be used to get the currencies
For Mementos
I'll probably add some sort of mini function to the bot to simplify it. Something like
What do you think?
What abbreviations do people use for the different types of money?
- GetPlayerPointInfo(group, index,"")
- Group - should be a number 1 to 3 representing one of the groups on the currencies list.
Index - should be a number 1 to 3 for one of the currencies in that group.
"" - the third argument just need to be a string. Doesn't matter what it is, it doesn't seem to use it.
- Group - should be a number 1 to 3 representing one of the groups on the currencies list.
For Mementos
Code: Select all
mems = RoMScript('GetPlayerPointInfo(2,1,"")')
Code: Select all
getMoney("mementos")
getMoney("Honor")
What abbreviations do people use for the different types of money?
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Counting shells in client 6.0.0+
Nice, thanks for the info.
Had a look at it and it seems the function stores two variables. When I print it, it also displays the stack limit for the currency. This is good for futureproofing your waypoints. Even if they decided to change the stack limit you wouldn't need to adjust by that time.
Anyway, it's a good thing the bot never really needed to be updated urgently coz of these new stuff.
Had a look at it and it seems the function stores two variables. When I print it, it also displays the stack limit for the currency. This is good for futureproofing your waypoints. Even if they decided to change the stack limit you wouldn't need to adjust by that time.
Anyway, it's a good thing the bot never really needed to be updated urgently coz of these new stuff.
Re: Counting shells in client 6.0.0+
I missed that. Well done.kenzu38 wrote:Had a look at it and it seems the function stores two variables. When I print it, it also displays the stack limit for the currency. This is good for futureproofing your waypoints. Even if they decided to change the stack limit you wouldn't need to adjust by that time.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Counting shells in client 6.0.0+
I've seen mementos abbreviated as "mems" or "mentos"
Phirius shells as "shells
energy of justice as "eoj"a
Phirius shells as "shells
energy of justice as "eoj"a
Re: Counting shells in client 6.0.0+
I like "speaking" terms and descriptions. Things like that sound ok:
Shells
Energy
Mementos
in case there will not be any other shells then phirius shells and no other energys than energy of justice in future releases
I would suggest to have capitals in all names or in none to make it uniform.
Shells
Energy
Mementos
in case there will not be any other shells then phirius shells and no other energys than energy of justice in future releases
I would suggest to have capitals in all names or in none to make it uniform.
Re: Counting shells in client 6.0.0+
I could have it accept a few different terms eg.
Code: Select all
if name == "eojs" or name == "energy" or name == "energy of justice" then
Code: Select all
if name == "mems" or name == "mementos" or name == "ancient memento" then
I'll probably use a string.lower on it anyway so caps don't matter.Rickster wrote:I would suggest to have capitals in all names or in none to make it uniform.
I've been thinking about this. If I return this limit as well, as a second returned value, users will most likely always minus the first value from the second ie. limit - amount, to get the space left before using it to make a decision. So I thought instead of returning amount and limit, I'll return amount and spaceleft. So that will be 1 less calculation users will have to make.kenzu38 wrote:Had a look at it and it seems the function stores two variables. When I print it, it also displays the stack limit for the currency.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Counting shells in client 6.0.0+
This is what I have so far.
It accepts many abbreviations for the different currencies, caps doesn't matter and it can end in 's' or not eg. "eoj" or "eojs". In deference to our international community, it also accepts the full name of the currency in their own language eg. "phirius-muschel". In this case caps still don't matter but it needs to be spelt exectly correctly so no 's' added.
If there are any abbreviations you think I should add let me know.
Code: Select all
function getCurrency(name)
name = string.lower(name) -- Make lower case
local noSname = string.match(name,"^(.-)s?$") -- Take off ending 's'
local group, index
if noSname == "shell" or name == string.lower(getTEXT("SYS_MONEY_TYPE_11")) then
group, index = 1,1
elseif noSname == "energy" or noSname == "eoj" or name == string.lower(getTEXT("SYS_MONEY_TYPE_12")) then
group, index = 1,2
elseif noSname == "dreamland" or noSname == "pioneer sigil" or noSname == "sigil" or name == string.lower(getTEXT("SYS_MONEY_TYPE_10")) then
group, index = 1,3
elseif noSname == "mem" or noSname == "mento" or noSname == "memento" or name == string.lower(getTEXT("SYS_MONEY_TYPE_9")) then
group, index = 2,1
elseif noSname == "proof" or noSname == "pom" or name == string.lower(getTEXT("SYS_MONEY_TYPE_13")) then
group, index = 2,2
elseif noSname == "honor" or name == string.lower(getTEXT("SYS_MONEY_TYPE_4")) then
group, index = 3,1
elseif noSname == "trial" or noSname == "bott" or name == string.lower(getTEXT("SYS_MONEY_TYPE_8")) then
group, index = 3,2
elseif noSname == "warrior" or noSname == "botw" or name == string.lower(getTEXT("SYS_MONEY_TYPE_14")) then
group, index = 3,3
else
print("Invalid currency type. Please use 'shell', 'eoj', 'sigil', 'mem', 'proof', 'honor', 'trial' or 'warrior'.")
return 0,0
end
local amount, limit = RoMScript("GetPlayerPointInfo("..group..","..index..",\"\")")
return amount, limit-amount
end
If there are any abbreviations you think I should add let me know.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Counting shells in client 6.0.0+
Why can't I get the RomScript("GetPlayerPointInfo(x,x,"")") to work? Tried fresh micromacro+rom-bot and still I keep getting 'invalid command'.
Re: Counting shells in client 6.0.0+
The "" needs to be written like this \"\". eg.
Code: Select all
RomScript("GetPlayerPointInfo(x,x,\"\")")
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 44 guests