Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- VENDA DE ITENS
- BY
- BORGES
- --]]
- local toBackpack = "golden backpack" -- nome da backpack em que vai jogar os itens
- ----------------------
- -- NÃO MECHA DAQUI----
- -----PARA BAIXO-------
- ----------------------
- local itemsToSell = {'guardian axe',
- 'ornate crossbow',
- 'deepling staff',
- "warrior's shield",
- "spellsinger's seal",
- "warrior's axe",
- 'necklace of the deep',
- 'eye of a deepling',
- 'deepling warts',
- 'deeptags',
- 'deepling claw',
- 'deepling breaktime snack',
- 'deepling guard belt buckle',
- 'deepling ridge',
- 'deepling squelcher'
- }
- local contfrom = Container.New('Your Inbox')
- registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
- function onWalkerSelectLabel(labelName)
- if (labelName == 'Sell') then
- if (Self.ItemCount(itemsToSell[i])) then
- print("*Vendendo*")
- Walker.Stop()
- Self.SayToNpc({'hi', 'trade'}, 65)
- wait(Self.Ping() + 40, Self.Ping() + 70)
- for i = 1, #itemsToSell do
- wait(150, 200)
- Self.ShopSellAllItems(itemsToSell[i])
- end
- end
- Walker.Start()
- elseif(labelName == "Depositar") then
- if(Self.MaxMana() > 0 ) then
- Walker.Stop()
- print("*Depositando*")
- Self.SayToNpc({"hi", "deposit all", "yes"}, 65)
- else
- print("")
- end
- Walker.Start()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement