buy from vender..

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

Message
Author
leozhai
Plain Yogurt
Plain Yogurt
Posts: 71
Joined: 16 Jun 2008, 08:41
Noob?: Yes

buy from vender..

#1 Post by leozhai »

i hv read topic from here but i really confuse of it
http://forums.openkore.com/viewtopic.ph ... der#p13300

example :
i wan my character when finish potion and if will go to town buy potion from player vender.

i write like this but it only open shop and dont buy item

macro {
$name = Top-Sales1
$cbLstIs = Acorn
$cbMaxAmt = 1
$name2 = @vender(Top-Sales1)
do vender $name2 $cbLstIs $cbMaxAmt
do vender end
}
Last edited by leozhai on 28 May 2011, 00:34, edited 1 time in total.

User avatar
help_us
Testers Team
Testers Team
Posts: 106
Joined: 04 Apr 2008, 21:53
Noob?: No
Location: Asia
Contact:

Re: buy from vender..

#2 Post by help_us »

try this, not really sure bcause i already quit ro and openkore.

Code: Select all

macro buying {
	$name = Top-Sales1
	$cbLstIs = Acorn
	$cbMaxAmt = 1
	$name2 = @vender($name)
	do vender $name2 @venderitem ($cbLstIs) $cbMaxAmt
	do vender end
}
Image
Image

leozhai
Plain Yogurt
Plain Yogurt
Posts: 71
Joined: 16 Jun 2008, 08:41
Noob?: Yes

Re: buy from vender..

#3 Post by leozhai »

not working.... its only will open the shop but wont buy the item..

leozhai
Plain Yogurt
Plain Yogurt
Posts: 71
Joined: 16 Jun 2008, 08:41
Noob?: Yes

Re: buy from vender..

#4 Post by leozhai »

im looking for help , please help me...

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: buy from vender..

#5 Post by EternalHarvest »

Run two "vender" commands if one doesn work - first with the vender argument only to open the shop, second with all arguments to buy the item, just like you do in the original client. Otherwise you (or @venderitem) wouldn't even know item index.

User avatar
help_us
Testers Team
Testers Team
Posts: 106
Joined: 04 Apr 2008, 21:53
Noob?: No
Location: Asia
Contact:

Re: buy from vender..

#6 Post by help_us »

Code: Select all

vl
-----------Vender List-----------
#   Title                                Coords     Owner
  0 1                                    (227,  48) Top-Sales4
----------------------------------
vender 0
--------------------------- Vender: Top-Sales4 (2) ----------------------------
#   Name                                      Type           Amount       Price
3   Steel                                     Event               1          1z
-------------------------------------------------------------------------------
vender 0 3 1
Failed to buy 63388 of item #74 from vender (unknown code 6).
this one without macro
Image
Image

leozhai
Plain Yogurt
Plain Yogurt
Posts: 71
Joined: 16 Jun 2008, 08:41
Noob?: Yes

Re: buy from vender..

#7 Post by leozhai »

automacro buyFromVender {
pubm "startbuy"
call {
$name = Top-Sales1
$cbLstIs = Fire Arrow Quiver
$cbMaxAmt = 1
$name2 = @vender(Top-Sales1)
do vender $name2
pause 2
do vender $name2 @venderitem($cbLstIs) $cbMaxAmt
do vender end
}
}

like this? i using macro also meet same problem with help_us

and This is Malaysia Official Server..

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: buy from vender..

#8 Post by EternalHarvest »

help_us wrote:vender 0
--------------------------- Vender: Top-Sales4 (2) ----------------------------
# Name Type Amount Price
3 Steel Event 1 1z
-------------------------------------------------------------------------------
vender 0 3 1
Failed to buy 63388 of item #74 from vender (unknown code 6).[/code]
That probably happens because serverType is incorrectly set or needs updating. Which serverType it is?

User avatar
help_us
Testers Team
Testers Team
Posts: 106
Joined: 04 Apr 2008, 21:53
Noob?: No
Location: Asia
Contact:

Re: buy from vender..

#9 Post by help_us »

Code: Select all

[Malaysia - mRO (English Free Server): Prontera]
ip 202.71.105.29
port 6900
master_version 17
version 211
serverType mRO
charBlockSize 112
serverEncoding Western
storageEncryptKey 0x050B6F79, 0x0202C179, 0x00E20120, 0x04FA43E3, 0x0179B6C8, 0x05973DF2, 0x07D8D6B, 0x08CB9ED9
PINEncryptKey 0x050B6F79, 0x0202C179, 0x00E20120, 0x04FA43E3, 0x0179B6C8, 0x05973DF2, 0x07D8D6B, 0x08CB9ED9
addTableFolders mRO
Image
Image

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: buy from vender..

#10 Post by EternalHarvest »

In r7764 mRO is set to use alternative vender buy packet.

Post Reply