Sye
Banned-
Posts
40 -
Joined
-
Last visited
Sye's Achievements
Newbie (1/14)
1
Reputation
-
Pudge reacted to a post in a topic: Snippets C# codes for Fight Classes
-
Because sirus protection is a big problem.
-
[ToolBox][Vanilla - WOTLK] Many Useful Functions (Custom script)
Sye replied to TheSmokie's topic in Quester assistance
Crafting Function with a Wait while Player is Casting. public static void Crafting(string profession, string itemName, int quantity = 0) { MovementManager.StopMoveTo(false, 1000); var ItemToCraft = Lua.LuaDoString<int>(string.Format(@" if not TradeSkillFrame or TradeSkillFrame:IsVisible() == nil then CastSpellByName('{0}') end for i=1, GetNumTradeSkills() do Quantity = {2}; local skillName, _, numAvailable = GetTradeSkillInfo(i); if (skillName == '{1}') then SelectTradeSkill(i); if Quantity == 0 then Quantity = numAvailable; end DoTradeSkill(i, Quantity); break; end end return Quantity;", profession, itemName, quantity) ); if (ItemToCraft > 0) { Logging.Write("Player is Crafting " + itemName); int Time = (3000 + Usefuls.LatencyReal) * ItemToCraft; MovementManager.StopMoveTo(false, Time); DateTime time = DateTime.Now.AddMilliseconds(Time); while (DateTime.Now < time && !ObjectManager.Me.InCombatFlagOnly && !ObjectManager.Me.InCombat) { Thread.Sleep(300); } Logging.Write("Crafting Has Came to a End."); Lua.LuaDoString("HideUIPanel(TradeSkillFrame)"); } } -
[ToolBox][Vanilla - WOTLK] Many Useful Functions (Custom script)
Sye replied to TheSmokie's topic in Quester assistance
Use Item By Name public static void UseItemByName(string ItemName) { var useItem = string.Format(@" for bag = 0,4 do for slot = 1,GetContainerNumSlots(bag) do local item = GetContainerItemLink(bag,slot) if item and item:find('{0}') then local startTime = GetItemCooldown(GetContainerItemID(bag,slot)) if startTime <= 0 then UseItemByName('{0}') break; end end end end", ItemName); Lua.LuaDoString(useItem); } -
Sye reacted to a comment: LoadProfile and slow loading of profile steps
-
[ToolBox][Vanilla - WOTLK] Many Useful Functions (Custom script)
Sye replied to TheSmokie's topic in Quester assistance
Csharp LoadProfile public class Load { public static void LoadProfile(string ProfileName) { var p = Quest.QuesterCurrentContext.Profile as QuesterProfile; if (p != null) { p.QuestsSorted.Add(new wManager.Wow.Class.QuestsSorted { Action = wManager.Wow.Class.QuestAction.LoadProfile, NameClass = ProfileName }); } } } -
@Droidzis there a way minimize wrobot from a plugin?
-
(Csharp) - return all the Glyph a player has. private static List<string> Glyphs() { var GlyphNames = @" local Index = {} for i = 1, GetNumGlyphSockets() do local id = select(3, GetGlyphSocketInfo(i)); if id ~= nil then local GlyphName = GetSpellInfo(id); tinsert(Index, GlyphName); end end return unpack(Index); "; return Lua.LuaDoString<List<string>>(GlyphNames); } or if people do not wanna use .Contain in a list format. here is a boolen. private static bool Glyphs(string GlyphNum) { var GlyphNames = $@" for i = 1, GetNumGlyphSockets() do local id = select(3, GetGlyphSocketInfo(i)); if id ~= nil then local GlyphName = GetSpellInfo(id); if GlyphName and string.find(GlyphName, ""{GlyphNum}"") return true; break; end end end return false; "; return Lua.LuaDoString<bool>(GlyphNames); }
-
Sye reacted to a file: [A][Skinning][165-225][Arathi] -- [Grinding][Mob][Level 30-33]
-
function UseItemInSlow(slotId) local SlotCoolDown = select(2, GetInventoryItemCooldown("player", slotId)); local ItemEquipedName = select(1, GetItemInfo(GetInventoryItemID("player", slotId))); if SlotCoolDown == 0 then UseItemByName(ItemEquipedName) end end
-
-
Faster way of getting people to sigh your guild charter. var PlayersAroundMe = ObjectManager.GetObjectWoWPlayer().Where(c => c.Position.DistanceTo(ObjectManager.Me.Position) < 30 && c.Faction == ObjectManager.Me.Faction && c.IsAlive); ItemsManager.UseItem("Guild Charter"); foreach (var Toon in PlayersAroundMe) { ObjectManager.Me.Target = Toon.Guid; bool PlayerHasNoGuild = Lua.LuaDoString<bool>(@" local GuildName = GetGuildInfo('target'); if GuildName == nil then return true; else return false; end"); Thread.Sleep(100); if (PlayerHasNoGuild) { Chat.SendChatMessageWhisper("Can you please sigh my guild Chart, pretty please :)", Toon.Name); Thread.Sleep(100); Lua.LuaDoString("OfferPetition();"); Thread.Sleep(100); Logging.Write("Petition Offered to :" + Toon.Name); } }
-
Private servers only.
-
@Droidzcan you provide aiming function, not just for DK, but for Ulduar and TOC quests / vehicles.
-
wrobot doesnt return a spells SubName, i was trying to make a fast function but it keeps returning nil on all spells i try. code I use var SpellArea = SpellManager.GetSpellInfo(3102); Logging.Write(SpellArea.SubName.ToString()); I fixed my problem with using lua but would be awesome to not have to use lua.