Welcome to PenUltima Online. Click to login or register.

Functions:

SendSellWindow( character, vendor, i1, i2, i3, flags := 0 )
Parameters:
Name Type
character Character Reference
vendor Character Reference
i1 Container Reference
i2 Container Reference
i3 Container Reference
flags Integer
Explanation
Sends a sell scroll gump to "character" using "vendor" as the merchant.
Notes: i1 = vendor's "For sale" item containter. i2 = vendor's "Bought from player" item container. i3 = vendor's "Buyable" item container.
Notes: Core will send Item Description using AoS Tooltips in any case if flag VENDOR_SEND_AOS_TOOLTIP is set. This will correct problems with Item Descriptions in newer Clients, but maybe freeze ancient Clients...
Notes: uo.em constants for this function:
const VENDOR_SEND_AOS_TOOLTIP   := 0x01;
Return values
1 on success
Errors
"A parameter was invalid"
"No client connected to character"
"Parameter 1 invalid" if !(vendor.isa(POLCLASS_NPC))
"Parameter 2 must be a container"
"Character has no backpack"
Related
Character
Container