can't call @inventory please check.

All resolved question will be found here. It is recommended that you browse / search through this section first and see if your question has been answered before

Moderators: Moderators, Documentation Writers

Message
Author
aPeN
Noob
Noob
Posts: 1
Joined: 01 Jun 2015, 23:12
Noob?: Yes

can't call @inventory please check.

#1 Post by aPeN »

i have macro for quest rogue.
When item in inventory have reach target, it will be automatically change the config.
But in console have an error like this.

Code: Select all

[macro] tes.call error: error in 0: @inventory (Skel-Bone) failed
and this is my macro

Code: Select all

automacro tes {
	run-once 1
	timeout 300
	call {
	$a = @inventory (Skel-Bone)
	$b = @inventory (Blue Herb)
	$c = @inventory (Decayed Nail) 
	$d = @inventory (Horrendous Mouth)
	
	if ($a < 10) goto mega
	if ($b < 6) goto spore
	if ($c < 10 || $d < 10) goto zombie
	if ($a = 10 && $b = 6 && $c = 10 && $d = 10) goto done
	
	
	:mega
	do conf lockMap beach_dun3
	pause 1
	do conf storageAuto_npc comodo 195 150
	pause 1
	goto end
	
	:spore
	do conf lockMap mjolnir_06
	pause 1
	do conf storageAuto_npc geffen 203 123
	pause 1
	goto end

	:zombie
	do conf lockMap pay_dun00
	pause 1
	do conf storageAuto_npc payon 181 104
	pause 1
	goto end

	:done
	do move prontera
	do sit
	stop

	:end
	release all
	
	}
}
anyone could help for check this. Thanks

c4c1n6kr3m1
The Way Of Human
The Way Of Human
Posts: 150
Joined: 24 Mar 2012, 04:13
Noob?: Yes

Re: can't call @inventory please check.

#2 Post by c4c1n6kr3m1 »

@invamount

User avatar
SkylorD
Moderators
Moderators
Posts: 1167
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: can't call @inventory please check.

#3 Post by SkylorD »

@inventory (<item>)
Returns inventory item index of <item>. If <item> doesn't exist, it returns -1.
@Inventory (<item>)
Same as @inventory but returns all matching indexes as a comma-separated list or -1 if the item was not found.
@invamount (<item>)
Returns the amount of the given <item> in inventory.
Read with attention.
Learn rules

Locked