Log in

View Full Version : GFB npc Buyer



flyocb
10-24-2017, 06:08 AM
Hello guys! i am new to xenobot and developing scripts for it.

I am struggeling with buying GFB from npc, not sure how im gonna do it

should i use

SDID
SHPID
or
GHPPID?

thanks for all responds :)

HjugO
10-24-2017, 06:10 PM
Hello guys! i am new to xenobot and developing scripts for it.

I am struggeling with buying GFB from npc, not sure how im gonna do it

should i use

SDID
SHPID
or
GHPPID?

thanks for all responds :)

??????????



function Self.ShopBuyItemsUpTo(item, c)
local count = c - Self.ItemCount(item)
if (count > 0) then
return Self.ShopBuyItem(item, count)
end
return 0, 0
end