- Xenobot Problem ze sprzedaza lootu

Status
Zamknięty.

DD Soba

Advanced User
Zarejestrowany
Dołączył
Czerwiec 6, 2010
Posty
316
Liczba reakcji
10
Wiek
32
Mianowicie gdy ju? postaci si? ko?cz? poty to wychodzi z expa i odrazu ma sella? loota, ale tu w?a?nie co? jest ?le w skrypcie, bo wszystko ?adnie pi?knie podchodzi do niego pisze hi,trade i...

Npc tylko spami:
23:36 Rock In A Hard Place: You don't even have that item!
23:36 Rock In A Hard Place: You don't even have that item!
23:36 Rock In A Hard Place: You don't even have that item!

a tutaj wycinek ze skryptu .lua


Kod:
 elseif (labelName == "Selling") then
setBotEnabled(false)
Self.Say("hi")
sleep(math.random(1500, 2000))
Self.SayToNpc("trade")
sleep(math.random(2000, 2700))
SELL_ITEMS = {"Hive Scythe", "Carapace Shield", "Grasshopper Legs", "Calopteryx Cape", "Kollos Shell", "compound eye", "crawler head plating", "deepling breaktime snack", "deepling claw", "deepling guard belt buckle", "deepling ridge", "deepling scales", "deepling warts", "deeptags", "dung ball", "eye of a deepling", "key to the drowned library", "kollos shell", "spellsinger's seal", "spidris mandible", "spitter nose", "swarmer antenna", "waspoid claw", "waspoid wing"}
for _, ITEM_NAME in ipairs(SELL_ITEMS) do
while (Self.ShopGetItemSaleCount(ITEM_NAME) > 0) do
Self.ShopSellAllItems(ITEM_NAME)
wait(300, 500)
end
end
Nie mam poj?cia co tu jest ?le.
 
Odp: Problem ze sprzedaza lootu

a to nie jest tak, ze do tego npc pisze sie hi>trade>local equipment na przyklad? i dopiero sella loot?
 
Odp: Problem ze sprzedaza lootu

Szczerze to nie wiem. Tego bota mam mo?e z 5 dni :P Wszystko inne chodzi ?adnie, tylko problem jak zwykle z lootem.

Probowa?em ju? zamiast nazwy itemek to ID, ale te? nie sella sprzeda kilka a potem stoi i npc spamuje jakie? g?upoty.

Kod:
    elseif (labelName == "Selling") then
setBotEnabled(false)
Self.Say("hi")
sleep(math.random(1500, 2000))
Self.SayToNpc("trade")
sleep(math.random(2000, 2700))
SELL_ITEMS = Self.ShopSellAllItems(14082)
	wait(900, 1200)
	Self.ShopSellAllItems(14076)
	wait(900, 1200)
	Self.ShopSellAllItems(14225)
	wait(900, 1200)
	Self.ShopSellAllItems(14081)
	wait(900, 1200)
	Self.ShopSellAllItems(14079)
	wait(900, 1200)
	Self.ShopSellAllItems(14078)
	wait(900, 1200)
	Self.ShopSellAllItems(14088)
	wait(900, 1200)
	Self.ShopSellAllItems(9057)
	wait(900, 1200)
	Self.ShopSellAllItems(14087)
	wait(900, 1200)
	Self.ShopSellAllItems(14086)
	wait(900, 1200)
	Self.ShopSellAllItems(14089)
	wait(900, 1200)
	Self.ShopSellAllItems(14077)
	wait(900, 1200)
	Self.ShopSellAllItems(3030)
	wait(900, 1200)
	Self.ShopSellAllItems(3033)
	wait(900, 1200)
	Self.ShopSellAllItems(3032)
	wait(900, 1200)
	Self.ShopSellAllItems(3933)
	wait(900, 1200)
	Self.ShopSellAllItems(3554)
	wait(900, 1200)

i tego
Kod:
elseif (labelName == "Selling") then 
setBotEnabled(false) 
Self.Say("hi") 
sleep(math.random(1500, 2000)) 
Self.SayToNpc("trade") 
sleep(math.random(2000, 2700))
SELL_ITEMS = {"Hive Scythe", "Carapace Shield", "Grasshopper Legs", "Calopteryx Cape", "compound eye", "crawler head plating", "deepling breaktime snack", "deepling claw", "deepling guard belt buckle", "deepling ridge", "deepling scales", "deepling warts", "deeptags", "dung ball", "eye of a deepling", "key to the drowned library", "kollos shell", "spellsinger's seal", "spidris mandible", "spitter nose", "swarmer antenna", "waspoid claw", "waspoid wing"}
for _, ITEM_NAME in ipairs(SELL_ITEMS) do
if (Self.ShopGetItemSaleCount(ITEM_NAME) > 0) then
Self.ShopSellAllItems(ITEM_NAME)
wait(300, 500)
end
end
setBotEnabled(true)
.
 
Odp: Problem ze sprzedaza lootu

to rl czy ot jakis? jesli rl to mowie, musisz napisac do NPC hi>trade>local equipment i wtedy otwiera sie okno trade z rarami...
to samo dalej na te 'smieci' czyli hi>trade>creature products, i tu sprzedajesz te 'waspoid wing' itp

czyli:
Kod:
 elseif (labelName == "Selling") then
setBotEnabled(false)
Self.Say("hi")
sleep(math.random(1500, 2000))
Self.SayToNpc("trade")
sleep(math.random(1500, 2000))
Self.SayToNpc("creature products")
sleep(math.random(2000, 2700))
SELL_ITEMS = {"Kollos Shell", "compound eye", "crawler head plating", "deepling breaktime snack", "deepling claw", "deepling guard belt buckle", "deepling ridge", "deepling scales", "deepling warts", "deeptags", "dung ball", "eye of a deepling", "key to the drowned library", "kollos shell", "spellsinger's seal", "spidris mandible", "spitter nose", "swarmer antenna", "waspoid claw", "waspoid wing"}
sleep(math.random(2000, 2700))
Self.SayToNpc("local equipment")
sleep(math.random(2000, 2700))
SELL_ITEMS = {"Hive Scythe", "Carapace Shield", "Grasshopper Legs", "Calopteryx Cape"}
for _, ITEM_NAME in ipairs(SELL_ITEMS) do
while (Self.ShopGetItemSaleCount(ITEM_NAME) > 0) do
Self.ShopSellAllItems(ITEM_NAME)
wait(300, 500)
end
end
 
Odp: Problem ze sprzedaza lootu

Ja gram na hexera.net otsik 10.8

posuzka?em troche w necie i zamieni?em tamto na

Kod:
    elseif (labelName == "Selling") then
Walker.Stop()
        Self.SayToNpc({"Hi", "Trade"}, 65)
        wait(800, 1500)
        SellItems(14082)
        wait(900, 1200)
	SellItems(14076)
	wait(900, 1200)
	SellItems(14225)
	wait(900, 1200)
	SellItems(14081)
	wait(900, 1200)
	SellItems(14079)
	wait(900, 1200)
	SellItems(14078)
	wait(900, 1200)
	SellItems(14088)
	wait(900, 1200)
	SellItems(9057)
	wait(900, 1200)
	SellItems(14087)
	wait(900, 1200)
	SellItems(14086)
	wait(900, 1200)
	SellItems(14089)
	wait(900, 1200)
	SellItems(14077)
	wait(900, 1200)
	SellItems(3030)
	wait(900, 1200)
	SellItems(3033)
	wait(900, 1200)
	SellItems(3032)
	wait(900, 1200)
	SellItems(3933)
	wait(900, 1200)
	SellItems(3554)
	wait(900, 1200)
Walker.Start()
i na dole pliki. lua doda?em to
Kod:
function SellItems(item) -- item = item ID
    wait(300, 1700)
    Self.ShopSellItem(item, Self.ShopGetItemSaleCount(item))
    wait(900, 1200)
        end
A co do Twojego skryptu dodam go jak tylko bot wr?ci z expa, zobaczymy mo?e w ko?cu to dziadostwo zadzia?a. ;d


#Edit: 2:29 Rock In A Hard Place: Thank you for this swarmer antenna, Nick.
12:29 Rock In A Hard Place: Thank you for this dung ball, Nick.
12:29 Rock In A Hard Place: Thank you for this waspoid wing, Nick.
12:29 Rock In A Hard Place: Thank you for this crawler head plating, Nick.
12:29 Rock In A Hard Place: Thank you for this spitter nose, Nick.
12:30 Rock In A Hard Place: You don't even have that item!
12:30 Rock In A Hard Place: Thank you for this grasshopper legs, Nick.

a nie chce sprzeda? waspoid claws i compoud eyes. Creature product i local eq~ nie dzia?a nic nie wyskakuje trade jak trade.
 
Ostatnia edycja:
Odp: Problem ze sprzedaza lootu

ciezko jest mi okreslic jak to wyglada na ot.. ale z tego co piszesz to jest inna mechanika niz na RL... :<
 
Status
Zamknięty.
Back
Do góry