float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
return mix(rand(fl), rand(fl + 1.0), fc);
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public bool Wait(int ms) | |
| { | |
| int deltaTime = 250; | |
| while(ms > 0) | |
| { | |
| Thread.Sleep(deltaTime); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.IO; | |
| using System.Windows.Forms; | |
| using System.Threading; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using Jungler.Bot.Classes; | |
| using System.Threading.Tasks; | |
| //using Example; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public int purchasePack(string name, int count, int oneItemMaxPrice) { | |
| List<AuctionItem> items = new List<AuctionItem>(); | |
| foreach(var item in getAuctionBuyList(new AuctionRequestParams(name))) { | |
| double oneItemPrice = (double)item.buyBackPrice / (double)item.item.count; | |
| if(item.buyBackPrice > 0 && oneItemPrice < oneItemMaxPrice) { | |
| Log("item: '" + item.item.name + "', count = " + item.item.count + " oneItemPrice = " + oneItemPrice.ToString("####.##")); | |
| items.Add(item); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public bool purchasePack(string name, int count, int oneItemMaxPrice) { | |
| List<AuctionItem> items = new List<AuctionItem>(); | |
| foreach(var item in getAuctionBuyList(new AuctionRequestParams(name))) { | |
| double oneItemPrice = (double)item.buyBackPrice / (double)item.item.count; | |
| if(item.buyBackPrice > 0 && oneItemPrice < oneItemMaxPrice) { | |
| items.Add(item); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Windows.Forms; | |
| using System.Threading; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using Jungler.Bot.Classes; | |
| using System.Threading.Tasks; | |
| using Example; | |
| namespace YourNamespace { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public bool purchaseItem(string name, List<KeyValuePair<ItemGrade, int>> prices) { | |
| AuctionRequestParams auctionRequestParams = new AuctionRequestParams(name); | |
| List<AuctionItem> items = getAuctionBuyList(auctionRequestParams); | |
| foreach(var price in prices) { | |
| AuctionItem item = findMinimalPrice(items, price.Key, price.Value); | |
| if(item != null) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Windows.Forms; | |
| using System.Threading; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using Jungler.Bot.Classes; | |
| using System.Threading.Tasks; | |
| using Example; | |
| namespace YourNamespace { |