twRO Free | macro: fail to @storamount / storage

This place is for Closed bug reports only. NOT for asking help!

Moderators: Moderators, Developers

anicole
Noob
Noob
Posts: 8
Joined: 05 Sep 2008, 06:44
Noob?: Yes

twRO Free | macro: fail to @storamount / storage

#1 Post by anicole »

I'm using 2.06 and plugin 2.02.

I found the function @storamount doesn't work. Definitely I have the item in the storage. But it always return -1. And I also found sometimes it fails to use "storage add". It appears the syx error.
Cozzie
Spam Generator
Spam Generator
Posts: 499
Joined: 04 Apr 2008, 09:30
Noob?: No
Location: Melbourne, City of beer and awful sushis

Re: twRO Free | macro: fail to @storamount / storage

#2 Post by Cozzie »

more info would be helpful here I'd say.
Make Openkore Awesome. Join the team.
Technology
Super Moderators
Super Moderators
Posts: 801
Joined: 06 May 2008, 12:47
Noob?: No

Re: twRO Free | macro: fail to @storamount / storage

#3 Post by Technology »

If i recall right, this occurs when your storage hasn't been opened in the session before yet.
One ST0 to rule them all? One PE viewer to find them!
One ST_kRO to bring them all and in the darkness bind them...

Mount Doom awaits us, fellowship of OpenKore!
anicole
Noob
Noob
Posts: 8
Joined: 05 Sep 2008, 06:44
Noob?: Yes

Re: twRO Free | macro: fail to @storamount / storage

#4 Post by anicole »

The following is my macro. It works fine with 2.05.

do talknpc 146 89 c r1 n
pause 1
do storage add @inventory(AAA) 25
pause 1
do storage get @storage(BBB) 10000
pause 1
do storage close
pause 1
do p AAA @storamount(AAA) units

and it always return "AAA -1 units"
Cozzie
Spam Generator
Spam Generator
Posts: 499
Joined: 04 Apr 2008, 09:30
Noob?: No
Location: Melbourne, City of beer and awful sushis

Re: twRO Free | macro: fail to @storamount / storage

#5 Post by Cozzie »

have you discussed this at the macros section?
Make Openkore Awesome. Join the team.
anicole
Noob
Noob
Posts: 8
Joined: 05 Sep 2008, 06:44
Noob?: Yes

Re: twRO Free | macro: fail to @storamount / storage

#6 Post by anicole »

Nope, I thought it should be posted in bug reports.
I'm going to post it in Macro pluggin section.
User avatar
help_us
Testers Team
Testers Team
Posts: 106
Joined: 04 Apr 2008, 21:53
Noob?: No
Location: Asia

Re: twRO Free | macro: fail to @storamount / storage

#7 Post by help_us »

Code: Select all

macro debugIt
Storage opened.
Inventory Item Removed: Yggdrasil Seed (1) x 1
Inventory Item Removed: Glistening Coat (0) x 1
[macro][log] Item Yggdrasil Seed = 5 units
[macro][log] Item Glistening Coat = 1780 units
Storage logged
[macro][log] Yggdrasil Seed = -1 units
[macro][log] Item Glistening Coat = -1 units
macros.txt :-

Code: Select all

macro debugIt {
	$A = Yggdrasil Seed
	$B = Glistening Coat
	do c @storage
	pause 1
	do storage add @inventory($A) 1
	do storage add @inventory($B) 1
	pause 1
	do storage get @storage($B) 1
	log Item $A = @storamount($A) units
	log Item $B = @storamount($B) units
	pause 1
	do storage close
	pause 1
	log $A = @storamount($A) units
	log Item $B = @storamount($B) units
}
it return to -1 if storage is closed.
try to log it before storage closed.
so it not a bug.
Image
Image