• 0

    posted a message on ok, someone asked me....
    ok... so say this is the code:


    if strfind(msg, string.upper("$HELP")) then
            SendChatMessage(BLUEGB.."[GuildBot] "..NOCOLOR.."Valid Commands: "..BLUEGB.. "$GM, $BANK, $RANK, $DING, $TRADEBOT, $LEVELBOT, $RAIDBOT, $REPBOT, $ONLINE, $LAGBOT, $EVENTS, $CONTESTS, $VOTEBOT, $WEBSITE"..NOCOLOR, "WHISPER", nil, sender);
    	SendChatMessage(BLUEGB.."[GuildBot] "..NOCOLOR..WHITEGB.."Commands have to be in CAPS"..NOCOLOR, "WHISPER", nil, sender);
        end;
    




    NOT:

    wenn strfind (msg, string.upper ("$ HELP")) dann
             SendChatMessage (BLUEGB. "[GuildBot]" .. NOCOLOR .. "Gültige Befehle:". .. .. BLUEGB "$ GM, $ BANK, $ RANK, $ DING, $ TRADEBOT, $ LEVELBOT, $ RAIDBOT, $ REPBOT, $ ONLINE, $ LAGBOT, $ VERANSTALTUNGEN, WETTBEWERBE $, $ VOTEBOT, $ WEBSITE ".. NOCOLOR,"Whisper", nil, Sender);
             SendChatMessage (. BLUEGB. "[GuildBot]" .. .. NOCOLOR WHITEGB .. "Befehle müssen in CAPS werden" .. NOCOLOR, "Whisper", nil, Sender);
         Ende;




    BUT THIS IS RIGHT:

        if strfind(msg, string.upper("$HELP")) then
            SendChatMessage(BLUEGB.."[GuildBot] "..NOCOLOR.."Gültige Befehle: "..BLUEGB.. "$GM, $BANK, $RANK, $DING, $TRADEBOT, $LEVELBOT, $RAIDBOT, $REPBOT, $ONLINE, $LAGBOT, $VERANSTALTUNGEN, $WETTBEWERBE, $VOTEBOT, $WEBSITE"..NOCOLOR, "WHISPER", nil, sender);
    	SendChatMessage(BLUEGB.."[GuildBot] "..NOCOLOR..WHITEGB.."Befehle müssen in CAPS werden"..NOCOLOR, "WHISPER", nil, sender);
        end;
    




    i dont have to change??:

    if strfind(msg, string.upper("$HELP")) then
    to-
    wenn strfind (msg, string.upper ("$ HELP")) dann
    



    Right?!?


    i think im getting this right.... i luv german...lol
    Posted in: Need Help?
  • 0

    posted a message on ok, someone asked me....
    someone asked me if i could make my addon in french.... lol

    i could use a translator to do it, but would the Code be french also (not just the display text?)

    or truely would i have to know french to make it work??

    basically here is an example:

    ---------
    english:
    --Declare Variables
    guildbot = CreateFrame("frame")
    local isOnline = " "
    local name = UnitName("player")
    local YESVOTE = 0
    local NOVOTE = 0



    ---------------------
    FRENCH DISPLAY:

    --Declare Variables
    guildbot = CreateFrame("frame")
    local isOnline = " "
    local name = NomUnité ("player")
    local YESVOTE = 0
    local NOVOTE = 0


    ------------------------------------
    or FRENCH DISPLAY W/ CODE:


    --déclarer des variables
    guildbot = CreateFrame ("frame")
    IsOnline locale = ""
    nom local = NomUnité ("player")
    locales YESVOTE = 0
    locales NOVOTE = 0



    it also seems the translator fliped these lines backwards
    IsOnline locale = ""
    nom local = NomUnité ("player")
    

    would they be like that or like this:
    locale = "IsOnline"
    local nom = NomUnité ("player")
    



    ??? i dont know? i dont speak french, but i could program it....
    Posted in: Need Help?
  • 0

    posted a message on ok, lua testing?
    Quote from Seerah
    Oh - and the reason why the WoWBench project died was because it was a PITA to complete and maintain, and there is really no substitute for the actual game client on an actual realm. This is the same reason why bugs are still found after a PTR goes live.


    can we build a bench test app? theoretically something with same idea as wowbench, UI compatible? or would blizz care? could be a violation? using their code??

    nevermind, i'd rather get off this subject....

    i really do need help thou with this damn code....
    Posted in: Need Help?
  • 0

    posted a message on ok, lua testing?
    Quote from egingell
    Nobody is "afraid" of you....


    i didnt mean it like that.... just asking for help... trying not to get banned here... lol..

    they have a strict policy...


    i noticed...
    Posted in: Need Help?
  • 0

    posted a message on ok, lua testing?
    ok, since my last thread got shut down, i guess ill have to go above and beyond

    does any one know some good LUA debugging tools, that use the wowUI interface?

    much like:
    http://www.wowwiki.com/WoWBench

    but updated and one that doesnt crash... something that can display your addon, and run your addon, while not in wow?! come on now... 2006... it seemed like a good project idea...

    apparently because i am a programmer, It makes it more difficult for me to play the game because i have access to the command line inner workings, so people are affraid of me, and think im going to cheat...
    Posted in: Need Help?
  • 0

    posted a message on Access to /SAVEDVARIABLES/ ???
    Quote from Goldpaw
    Good luck!


    Holy crap dude, ur a genius... i had been trying to figure this one out for a while...

    neat-o....

    definitely sounds like a way to import data...

    you know also... Blizzard just came out with the idea for the iphone app idea:
    http://us.battle.net/wow/en/services/iphone/
    http://us.battle.net/wow/en/services/wow-remote/
    http://wow.joystiq.com/2009/03/27/iphone-authenticator-now-in-app-store/



    this is Awesome Tech!

    i needed this info, so i can produce next level products! awesome!

    watch out now i can possibly get it setup so i can chill with my guild and rendezvous IRL on my iphone!

    i can see it now ... on my iphone >> "GUILD ANNOUNCEMENT: MEET AT PETE'S COFFEE SHOP DOWNTOWN! Bring Laptops!!!" ......Lmao!
    Posted in: Need Help?
  • 0

    posted a message on Problems Building a Queue
    ok, maybe ur right, about the whisper thing, but illegitimately it works for me to pull a name from who sent what message... illegitimately that is... so even if its re-inventing the wheel.. im all about it... SWEAR! ill get a screenshot... im gonna re-invent the wheel... lmao..

    Quote from Adirelle
    About the prefixes, I'm not sure if Blizzard actually enabled the server-side filters, but if they did and you didn't register the prefixes, you wouldn't be able to test your addon because the messages would be filtered out.


    oh, im using a local server to test the addons before they get posted... only way i could do it with out getting banned! setup mysql and run mangos or trinity core.... works good for testing... and i know its technically violating blizz rules... but, running non approved addons is also... double edged sword....?! i was using wow addon studio, but that thing sucked so hard, and kept crashing all the time, i switched over to wow ui designer, havent had a problem yet.... it uses more memory, written in C++, but sure is damn stable!

    EDIT:
    1 hour later........ "Swear...."
    Posted in: Need Help?
  • 0

    posted a message on Problems Building a Queue
    jesus, these posts get any longer im gonna go buy a gun...lol..jk
    Posted in: Need Help?
  • 0

    posted a message on Problems Building a Queue
    Quote from Seerah
    1) You're concatenating with nil. It's either not valid Lua or you have a typo.

    2)Also... "unit" needs to be a valid unitID.


    1) it was a typo originally it was QUEUE..ISLEAD, and i changed it, but forgot to removed the .. it was actually after i posted... lol... i would have found that one.. sorry i mis-understood as well...

    2) i know, i was gonna do that...

    im thinking it might be closer to working, but not exactly how i want it to... the first part of the code works about 60-70%, all the way down to:
    -- QUEUE ACTIVATION / DEACTIVATION -- then its only like 30%

    it does work, but not how it should is what im saying, i posted that there because it might bump 30% up to %50 if not 75%... this line:
    -- THINKING TO ADD (UnitIsConnected("unit")) HERE --


    i think i could change that area and the line above it to this:
    if msg2 == "ISLEAD" and prefix == "GUILDBOT!@#$ISLEAD" and ISLEAD == sender then
    if UnitIsConnected(sender) == 1 then
    --guildbot:UnregisterEvent("CHAT_MSG_GUILD")
    elseif UnitIsConnected(sender) == 0 then
    guildbot:RegisterEvent("CHAT_MSG_GUILD")
    


    thus it reads if the leader is online, and if true dissable (-- blocked cause not needed, just display..) and if the unit isnt connected then turn the addon event ON, and dont remind me of the end statement, because it goes near the end function for the whole process, near eof.

    Quote from =Sirow »
    I think what Adirelle tried to get at is, that ".." means string concatenation in LUA.
    So either there is some string missing before this ".." or it does not belong there.


    think i allready answered that, :D glad we cleared that one up... :D

    I'm still confused about what QUEUE variable is representing. Is it the total number of (online and "synchronised") clients or the unique queue-id (eg. client1, client2,...,client10)?


    ok, ill try to make this simple and stupid... "Like Standing in line" waiting for "STATUS 0" where no one is ahead of you in the line, if 5 people are running the addon and another person logs on they will be 6... leader (0) logs off, thus 6 becomes 5... but now an officers logs on and all 5 of the people with the addon are members, so thus the officer goes strait to the front of the line bumping 5 back to 6...

    basically,,
    STATUS (0) is the only addon running (all the same addon, but different users.)
    STATUS(0) turns off all other addons and assumes control and lead.
    if STATUS(0) logs off, anyone can take control of status 0, next in line would be 1, then 2, 3,4...

    only 1 addon can be online, not 5.. so the addon has to dissable itself and count how many people are running the same addon (thinking: gotta add version checking someday...lol) what was i saying? thinking out loud again...

    so yea, basically like,,,
    client1,client2,client3,client4,client5,client6,etc... but only Client1 is operating, all others are waiting and OFF. scanning want waiting for client1 to logoff then next goes, but during this time, they update the savedvariable database (thats next after queue is done....)

    On a sidenote...


    i actually didnt catch that one... good shot...

    "double-spam"....


    i actually got that one figured thats why there is a double dash --
    couldnt figure it out for a while thou... i could just delete it... but left it for reminder, to inspire me upside down inside out?! kinda like laughing at that clown picture on the wall, reminding me about how stupid it is... bringing me to my next brilliant level... oh yea.. that clown made me laugh...lol..


    EDIT:
    Could you upload the complete code somewhere. It's really hard to grasp what each and every variables comes from/could be representing.


    this is only 10% of the update.... that whole code is the first part of the update...(1.6.25-->1.7) i figured i should have had it done a long time ago, but im still stuck on this same function... (i actually decided before i started this project, to pick the hardest task, and get it out of the way.... so the rest will be easy, and opens the door, to new ideas.... :D )

    ok... that is just the update, yes... or the beginning of the update...

    this is the project:
    http://wow.curseforge.com/addons/guildbot/

    basically copy that whole code and insert it at line 101, you can remove the 4 lines above that too... (version 1.6.25a)

    and dont give me crap about how the code looks, it works and its 100%
    i was a little lazy when i wrote it, and if you look at http://godz.t15.org/smf/guildbot/
    that is the official home on my site... you can also view the source, http://godz.t15.org/smf/source/ ..

    the reason why i didnt ad the whole code is because its over 2000 lines, and u might not wanna sit here and read 2000 lines...
    Posted in: Need Help?
  • 0

    posted a message on Access to /SAVEDVARIABLES/ ???
    think i found it... i guess it is possible?

    http://www.wowpedia.org/Saving_variables_between_game_sessions


    can anyone help with this one:
    http://forums.curseforge.com/showthread.php?t=19480
    Posted in: Need Help?
  • 0

    posted a message on Access to /SAVEDVARIABLES/ ???
    yea i was kinda affraid u were gonna say that...

    reason being... i found a way to export data to a website.. seen it done before but i kinda used my own ideas to my workings...

    This is what i can do:
    1. use guildchat and export it to a saved variable
    2. Have a local webserver that is setup to read the saved.lua
    3. I now have guild chat on my website

    what would be nice is to be able to communicate with guild from the website, but since data import is not an option... well... guess export is the only option... unless i run a dummy account that reloads and resets wow.exe on a timed basis (say, every 2-3 minutes) specifically to collect data from website and import into the game...

    this kinda seems like hacking, but its not.. its kinda like the new wow feature where you can read your ingame mail and talk in guild chat on your iphone...

    I just changed the iphone part to Website...
    Posted in: Need Help?
  • 0

    posted a message on Access to /SAVEDVARIABLES/ ???
    I used to Just PLAY WOW, now I DESIGN WOW....

    i was wondering thou, is there anyway to access /SAVEDVARIABLES/ while wow is running, it seems that if wow is running it keep the variables in memory, if you ReloadUI() then it dumps them to ADDONNAME.Lua in the /SAVEDVARIABLES/ folder...

    this is what im trying to accomplish...

    if i open /SAVEDVARIABLES/ADDONNAME.LUA and edit it in notepad, then save... alt-tab to wow... ReloadUI(), the values i saved in notepad are erased... wow does a memory dump and erases them... and sets them to the current values in memory.. how can i make it read them before it dumps?

    ive played with it a little bit, but.... no luck...

    if i close wow.exe and open notepad, edit, save, --> load wow.. WORKS, but cant do it while running...

    im trying to edit a database while im online so i can quit asking my guild members to type commands for me on their client
    Posted in: Need Help?
  • 0

    posted a message on Problems Building a Queue
    Adirelle:

    is ISLEAD is a local variable, i set it up myself, its not an api command at all.. it stores 1 variable localy, not globaly.. and it is checked and reset everytime the addon looks to see if they are online.. (which is set on the SEND_MSG_GUILD event.. so it scans the guild channel, and brodcasts on the SEND_MSG_ADDON channel, looking for other users using the addon... )

    and about the 4.1 update w/ fance prefix's, i know this to, im trying to get the code running first so i can distinguish it from other codes on the addon channel when im online testing, will clean the code up later when its final...

    I CANNOT Omit Sender because i need to know who to put in the QUEUE..
    BUT! it might work for the first part counting the queue number, but not! for putting people in the queue... the addon has to know who has lead to turn on and off the eventhandler for the specific player.

    about the copy and paste:
    i kno.. i know, but my code is almost 2000 lines and im the only one who wrote a single line of code to it, runs perfect until this update... this is highlevel stuff... why im asking for help!


    while writting this i came up with the idea, use this to api for online checks:
    isConnected = UnitIsConnected("unit")

    and when user goes offline, to send update - thus activating a new user as lead.. hmm... maybe.


    i also cleaned up the code posted a little bit add'd --debug
    its what im using to debug some lines.. it works...
    but near the end of the code i add'd the online check... im gonna go play with it and see if i can get it to work...
    Posted in: Need Help?
  • 0

    posted a message on Problems Building a Queue
    Im trying to build a queue so many people can use my addon and it keeps people in a queue and only one copy of the addon runs, I build a queue but its having problems, it seems, the lua works independantly on each player running the addon and gives them both priority and doesnt dissable anything..

    It communicates on the AddonChannel, and im getting a little bit of spam from it if i reposition the end of the function thru all the statements..

    the main problem is, it doesnt work... could use a little help, i was ripping my hair out for 8 hours trying to debug this, and came to the conclusion its busted... but! it is very close, maybe just needs some modification for it to run right?!

    -- Declare Variables --
    guildbot2 = CreateFrame("frame")
    local QUEUE = 0
    local ISLEAD = " "
    
    ------------------------jail------
    
    -- update when anyone speaks in guild chat channel --
        guildbot2:RegisterEvent("CHAT_MSG_GUILD");
        guildbot2:SetScript("OnEvent", function(_, event, ...) guildbot2[event](...) end);
    
    
    -- scan addon message channel for data and post to chat frame 3 --
    local databaseupdate = CreateFrame("Frame", "ViewAddonMessageFrame")
    local function printMsg(_, _, prefix, msg2, type, sender)
        ChatFrame3:AddMessage("["..prefix.."]["..msg2.."]["..type.."]["..sender.."]")
    
    -- Collect incoming --
    --if event == "CHAT_MSG_ADDON" then --debug makes double posts more spam
    v = 1
    for i=1, GetNumGuildMembers(true) do
    name2, rank, rank_index, level, class, zone, note, officer_note, online, status = GetGuildRosterInfo(i);
    v = (v + 1)
    if online == 1 then
    end
    end
    if msg2 == "0" then
    if prefix == "GUILDBOT!@#$ONOFF" then
    --print(prefix, msg2, type, sender) --debug
    QUEUE = QUEUE + 1
    --print("QUEUE: "..QUEUE) --debug
    end
    end
    
    
    -- QUEUE - only concerned about Position 1 in queue, activates eventhandler --
    -- for curent user using the addon, if someone logs off and they become 1 then --
    -- goto next area --
    
    if QUEUE == 1 then
    SendAddonMessage("GUILDBOT!@#$QUEUE", "Q"..QUEUE, "GUILD", "SENDER")
    ISLEAD = UnitName("player")
    SendAddonMessage("GUILDBOT!@#$ISLEAD", ..ISLEAD, "GUILD", "SENDER")
    elseif QUEUE == 2 then
    --print("IS LEADER2:"..ISLEAD) --debug
    elseif QUEUE == 3 then
    --print("IS LEADER2:"..ISLEAD) --debug
    elseif QUEUE == 4 then
    --print("IS LEADER2:"..ISLEAD) --debug
    
    
    -- QUEUE ACTIVATION / DEACTIVATION --
    
    if msg2 == "Q8" and prefix == "GUILDBOT!@#$QUEUE" then
    guildbot:UnregisterEvent("CHAT_MSG_GUILD")
    QUEUE = QUEUE - 1
    elseif msg2 == "Q7" and prefix == "GUILDBOT!@#$QUEUE" then
    guildbot:UnregisterEvent("CHAT_MSG_GUILD")
    QUEUE = QUEUE - 1
    elseif msg2 == "Q6" and prefix == "GUILDBOT!@#$QUEUE" then
    guildbot:UnregisterEvent("CHAT_MSG_GUILD")
    QUEUE = QUEUE - 1
    elseif msg2 == "Q5" and prefix == "GUILDBOT!@#$QUEUE" then
    guildbot:UnregisterEvent("CHAT_MSG_GUILD")
    QUEUE = QUEUE - 1
    elseif msg2 == "Q4" and prefix == "GUILDBOT!@#$QUEUE" then
    guildbot:UnregisterEvent("CHAT_MSG_GUILD")
    QUEUE = QUEUE - 1
    elseif msg2 == "Q3" and prefix == "GUILDBOT!@#$QUEUE" then
    guildbot:UnregisterEvent("CHAT_MSG_GUILD")
    QUEUE = QUEUE - 1
    elseif msg2 == "Q2" and prefix == "GUILDBOT!@#$QUEUE" then
    --print("Guildbot OFF") --debug
    guildbot:UnregisterEvent("CHAT_MSG_GUILD")
    QUEUE = QUEUE - 1
    elseif msg2 == "Q1" and prefix == "GUILDBOT!@#$QUEUE" then
    guildbot:UnregisterEvent("CHAT_MSG_GUILD")
    end
    if msg2 == "ISLEAD" and prefix == "GUILDBOT!@#$ISLEAD" and ISLEAD == sender then
    
    -- THINKING TO ADD (UnitIsConnected("unit")) HERE --
    
    guildbot:RegisterEvent("CHAT_MSG_GUILD")
    QUEUE = QUEUE - 1
    end
    end
    end
    --end
    databaseupdate:SetScript("OnEvent", printMsg)
    databaseupdate:RegisterEvent("CHAT_MSG_ADDON")
    
    
    
    
    -- When guild chat happens, send data to ADDON and reset QUEUE variable --
    -- QUEUE variable just counts how many users are running the addon --
    
    
    function guildbot2.CHAT_MSG_GUILD(msg, sender, ...)
    
        if strfind(msg, string.upper("$")) then
        QUEUE = 0
        SendAddonMessage("GUILDBOT!@#$ONOFF", QUEUE, "GUILD", "SENDER")
    
        end;
    end
    
    ----------------------------------jail---------
    


    it works 60-70%

    but only dissables the addon 30% (have to have 2 copy's running) sometimes it just chooses a random user to shut of, which is fine, as long as the program addon stays running, but would rather have a Queue..

    next im gonna try to get database sharing... just know thats gonna be a problem...

    EDIT:
    Let me clarify also, to debug this, i am DUAL LOGGING on seperate accounts, to collect the data, not just on a single user... have to use 2 users..

    EDIT SIROW:
    to answer u
    a)
    As far as I understand it, you have many client with the same addon and want to upvote one to be the leader/server (a bit like CT_RA used to work [well ok it used the raid-leader, but still it broadcasted data afterwards^^])?
    you kinda hit the nail on the head there....

    b) sorry, easier for me to code like this instead of allways scanning right in the editor with long strings.

    c) try to follow, this is the update workings from 1.6.25 ---> 1.6.5 ----> 1.7

    adding this functionality, no new data just gears:
    --add Guildmaster detection, give priority to GM over officers, Give officers priority over Members. who ever has priority shuts off all other users addons but runs checks to make sure user is still online, if not online then activate on a priority scale or by QUEUE status

    --if other users are using guildbot dissable and check queue for online update status

    -- disable guildmaster $GM command if not GM

    --check database --- update new users in database so guildbot can use a shared database over the whole guild, (to remain online when gm isnt online by using officers and members, share database info when logging in to make sure current values are latest)

    --check other status's and update current values for stats (for example, total guild stats, its a running total you get.. kinda like, "HOW MANY TIMES HAVE I RAN GUILDBOT?" every time you log in you get a +1, so check other users values, if true then add them to the master database (guildmaster) and lower priority users copy from GM)

    -- modify values for raidbot so when a new value is added when gm isnt online, it continually adds them to a total database

    --modify lagbot - can now share data to give average of users w/ guildbot

    --events - contests - website need to STAY on GM's database values at all times

    ok thats it for a,b,c now... id like to comment on this:
    I'd be doing this the following way:

    TRUE, sounds almost perfect, but change the /roll to something like this:

    0 = GM PRIORITY
    1 = OFFICER PRIORITY
    2 = VETERAN PRIORITY
    3 = MEMBER PRIORITY
    4 => MISC PRIORITY

    build a queue so members get a status number (NUMBER IN LINE) if you have a higher priority, then your number moves ahead faster in the line because you are a higher rank member.

    run checks to make sure leader is still online, and if not activate next in line, and make sure others stay dissabled...

    --------ok... had to put that in there..

    i dont know what CT_RA is, but where can i find this code or addon? maybe looking at it might help me figure a hole in my code...

    My code runs, but it spams the addon channel a little bit.. and also every time a player issues a command it runs the checks to see who is online with the addon, but! sometimes it dissables itself like it should - but randomly, not priority (i think its because the code runs like a mirror/twin to the other code, so there isnt an identifier to tell it so.)
    Posted in: Need Help?
  • To post a comment, please or register a new account.