Created
May 17, 2014 17:20
-
-
Save KonyukhovSergey/f215734aee12f6feb497 to your computer and use it in GitHub Desktop.
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); | |
| if(!me.isAlive()) | |
| { | |
| return false; | |
| } | |
| ms -= deltaTime; | |
| } | |
| return true; | |
| } | |
| public bool Resurect() | |
| { | |
| while(!ResToResPoint()) | |
| { | |
| LastError error = GetLastError(); | |
| if(error == RessurectNeedWaitMoreTime) | |
| { | |
| Thread.Sleep(1000); | |
| } | |
| else | |
| { | |
| return false; | |
| } | |
| } | |
| Thread.Sleep(20000); | |
| return true; | |
| } | |
| public bool RestockNorthProc() | |
| { | |
| if(!me.isAlive()) { return false; } | |
| if(!UseSkill("Путевые заметки")) { return false; } | |
| if(!Wait(60000)) { return false; } | |
| if(!me.isAlive()) { return false; } | |
| RepairAllEquipment(); | |
| if(!me.isAlive()) { return false; } | |
| GetMoonStone(100); | |
| SellItems("Плащ наемника"); | |
| SellItems("Накидка паломника"); | |
| SellItems("Рыцарский плащ"); | |
| SellItems("Плащ следопыта"); | |
| SellItems("Лютня ушедшего народа"); | |
| SellItems("Флейта ушедшего народа"); | |
| SellItems("Золоченая флейта"); | |
| if(!me.isAlive()) { return false; } | |
| SellAllHeroicItems(); | |
| SellAllAncientItems(); | |
| SellAllCommonItems(); | |
| if(!me.isAlive()) { return false; } | |
| Raspoznanie(); | |
| if(!me.isAlive()) { return false; } | |
| Raspilenie(); | |
| // next more... | |
| return true; | |
| } | |
| public RestockNorth() | |
| { | |
| while(!RectockNorthProc()); | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment