11/*
2- name: SambasFlagMerge
3- description: Farms the requirements & buys the items from Sambaflag merge
4- tags: sambaflag, merge
2+ name: Sambas Flag Merge
3+ description: This bot will farm the items belonging to the selected mode for the Sambas Flag Merge [2237] in /sambaflag
4+ tags: sambas, flag, merge, sambaflag, sambista, dorival, moglin, jorge, zeca, encanto, encantado, cavaquinho, pandeiro, tantan, dança, das, sombras, dançarina, circlet, diadem, de, ouro, escuro
55*/
66//cs_include Scripts/CoreBots.cs
77//cs_include Scripts/CoreFarms.cs
@@ -52,9 +52,8 @@ private static CoreAdvanced sAdv
5252
5353 public void ScriptMain ( IScriptInterface Bot )
5454 {
55- Core . BankingBlackList . AddRange (
56- new [ ] { "Costume Piece" , "Ceremonial Standard" , "Cavaquinho" , "Pandeiro" , "Tantan" }
57- ) ;
55+ Core . BankingBlackList . AddRange ( new [ ] { "Costume Piece" , "Ceremonial Standard" , "Cavaquinho" , "Pandeiro" , "Tantan" , "Dança das Sombras Hair" , "Dança das Sombras Locks" } ) ;
56+
5857 Core . SetOptions ( ) ;
5958
6059 BuyAllMerge ( ) ;
@@ -77,9 +76,7 @@ void findIngredients()
7776 {
7877 ItemBase req = Adv . externalItem ;
7978 int quant = Adv . externalQuant ;
80- int currentQuant = req . Temp
81- ? Bot . TempInv . GetQuantity ( req . Name )
82- : Bot . Inventory . GetQuantity ( req . Name ) ;
79+ int currentQuant = req . Temp ? Bot . TempInv . GetQuantity ( req . Name ) : Bot . Inventory . GetQuantity ( req . Name ) ;
8380 if ( req == null )
8481 {
8582 Core . Logger ( "req is NULL" ) ;
@@ -90,14 +87,9 @@ void findIngredients()
9087 {
9188 default :
9289 bool shouldStop = ! Adv . matsOnly || ! dontStopMissingIng ;
93- Core . Logger (
94- $ "The bot hasn't been taught how to get { req . Name } ."
95- + ( shouldStop ? " Please report the issue." : " Skipping" ) ,
96- messageBox : shouldStop ,
97- stopBot : shouldStop
98- ) ;
90+ Core . Logger ( $ "The bot hasn't been taught how to get { req . Name } ." + ( shouldStop ? " Please report the issue." : " Skipping" ) , messageBox : shouldStop , stopBot : shouldStop ) ;
9991 break ;
100- #endregion
92+ #endregion
10193
10294 case "Ceremonial Standard" :
10395 Core . FarmingLogger ( req . Name , quant ) ;
@@ -135,71 +127,43 @@ void findIngredients()
135127 Core . HuntMonster ( "sambaflag" , "Master Of Ceremonies" , req . Name , quant ) ;
136128 Bot . Wait . ForPickup ( req . Name ) ;
137129 break ;
130+
131+ case "Dança das Sombras Hair" :
132+ case "Dança das Sombras Locks" :
133+ if ( req . Upgrade && ! Core . IsMember )
134+ {
135+ Core . Logger ( $ "{ req . Name } requires membership to farm, skipping.") ;
136+ return ;
137+ }
138+
139+ Core . FarmingLogger ( req . Name , quant ) ;
140+ Core . EquipClass ( ClassType . Solo ) ;
141+ Core . AddDrop ( req . ID ) ;
142+ Core . HuntMonster ( "sambaflag" , "Flag Bearer" , req . Name , quant , req . Temp , false ) ;
143+ break ;
138144 }
139145 }
140146 }
141147
142148 public List < IOption > Select = new ( )
143149 {
144- new Option < bool > (
145- "76366" ,
146- "Sambista Armor" ,
147- "Mode: [select] only\n Should the bot buy \" Sambista Armor\" ?" ,
148- false
149- ) ,
150- new Option < bool > (
151- "76367" ,
152- "Sambista Helm" ,
153- "Mode: [select] only\n Should the bot buy \" Sambista Helm\" ?" ,
154- false
155- ) ,
156- new Option < bool > (
157- "76371" ,
158- "Dorival The Moglin" ,
159- "Mode: [select] only\n Should the bot buy \" Dorival The Moglin\" ?" ,
160- false
161- ) ,
162- new Option < bool > (
163- "76372" ,
164- "Jorge The Moglin" ,
165- "Mode: [select] only\n Should the bot buy \" Jorge The Moglin\" ?" ,
166- false
167- ) ,
168- new Option < bool > (
169- "76373" ,
170- "Zeca The Moglin" ,
171- "Mode: [select] only\n Should the bot buy \" Zeca The Moglin\" ?" ,
172- false
173- ) ,
174- new Option < bool > (
175- "76375" ,
176- "Encanto Sambista Armor" ,
177- "Mode: [select] only\n Should the bot buy \" Encanto Sambista Armor\" ?" ,
178- false
179- ) ,
180- new Option < bool > (
181- "76376" ,
182- "Encanto Sambista Hat" ,
183- "Mode: [select] only\n Should the bot buy \" Encanto Sambista Hat\" ?" ,
184- false
185- ) ,
186- new Option < bool > (
187- "76377" ,
188- "Encanto Cavaquinho" ,
189- "Mode: [select] only\n Should the bot buy \" Encanto Cavaquinho\" ?" ,
190- false
191- ) ,
192- new Option < bool > (
193- "76378" ,
194- "Encanto Pandeiro" ,
195- "Mode: [select] only\n Should the bot buy \" Encanto Pandeiro\" ?" ,
196- false
197- ) ,
198- new Option < bool > (
199- "76379" ,
200- "Encanto Tantan" ,
201- "Mode: [select] only\n Should the bot buy \" Encanto Tantan\" ?" ,
202- false
203- ) ,
204- } ;
150+ new Option < bool > ( "76366" , "Sambista Armor" , "Mode: [select] only\n Should the bot buy \" Sambista Armor\" ?" , false ) ,
151+ new Option < bool > ( "76367" , "Sambista Helm" , "Mode: [select] only\n Should the bot buy \" Sambista Helm\" ?" , false ) ,
152+ new Option < bool > ( "76371" , "Dorival The Moglin" , "Mode: [select] only\n Should the bot buy \" Dorival The Moglin\" ?" , false ) ,
153+ new Option < bool > ( "76372" , "Jorge The Moglin" , "Mode: [select] only\n Should the bot buy \" Jorge The Moglin\" ?" , false ) ,
154+ new Option < bool > ( "76373" , "Zeca The Moglin" , "Mode: [select] only\n Should the bot buy \" Zeca The Moglin\" ?" , false ) ,
155+ new Option < bool > ( "76375" , "Encanto Sambista Armor" , "Mode: [select] only\n Should the bot buy \" Encanto Sambista Armor\" ?" , false ) ,
156+ new Option < bool > ( "76376" , "Encantado Sambista Hat" , "Mode: [select] only\n Should the bot buy \" Encantado Sambista Hat\" ?" , false ) ,
157+ new Option < bool > ( "76377" , "Encantado Cavaquinho" , "Mode: [select] only\n Should the bot buy \" Encantado Cavaquinho\" ?" , false ) ,
158+ new Option < bool > ( "76378" , "Encantado Pandeiro" , "Mode: [select] only\n Should the bot buy \" Encantado Pandeiro\" ?" , false ) ,
159+ new Option < bool > ( "76379" , "Encantado Tantan" , "Mode: [select] only\n Should the bot buy \" Encantado Tantan\" ?" , false ) ,
160+ new Option < bool > ( "99284" , "Dança das Sombras" , "Mode: [select] only\n Should the bot buy \" Dança das Sombras\" ?" , false ) ,
161+ new Option < bool > ( "99287" , "Dança das Sombras Mask" , "Mode: [select] only\n Should the bot buy \" Dança das Sombras Mask\" ?" , false ) ,
162+ new Option < bool > ( "99288" , "Dançarina das Sombras Mask" , "Mode: [select] only\n Should the bot buy \" Dançarina das Sombras Mask\" ?" , false ) ,
163+ new Option < bool > ( "99289" , "Dança das Sombras Circlet" , "Mode: [select] only\n Should the bot buy \" Dança das Sombras Circlet\" ?" , false ) ,
164+ new Option < bool > ( "99290" , "Dança das Sombras Diadem" , "Mode: [select] only\n Should the bot buy \" Dança das Sombras Diadem\" ?" , false ) ,
165+ new Option < bool > ( "99291" , "Dança das Sombras Visage" , "Mode: [select] only\n Should the bot buy \" Dança das Sombras Visage\" ?" , false ) ,
166+ new Option < bool > ( "99389" , "Tantan de Ouro Encantado" , "Mode: [select] only\n Should the bot buy \" Tantan de Ouro Encantado\" ?" , false ) ,
167+ new Option < bool > ( "99463" , "Tantan Escuro" , "Mode: [select] only\n Should the bot buy \" Tantan Escuro\" ?" , false ) ,
168+ } ;
205169}
0 commit comments