System GetDelay

Azlier

Old World Ghost
I would also remove the unit. Combined with yours, it's good.
 

Azlier

Old World Ghost
So be it!

"ABRACADABRA!"

JASS:
library GetHost initializer Init

globals
    private unit U
    private player Host = null
endglobals

constant function GetHost takes nothing returns player
    return Host
endfunction

private function Click takes nothing returns boolean
    if Host == null then
        set Host = GetTriggerPlayer()
        call RemoveUnit(U)
        set U = null
    endif
    return false
endfunction

private function Init takes nothing returns nothing
    local trigger t = CreateTrigger()
    set U = CreateUnit(Player(15), 'hfoo', 10000, 10000, 270)
    call PauseUnit(U, true)
    call TriggerRegisterUnitEvent(t, U, EVENT_UNIT_SELECTED)
    call TriggerAddCondition(t, Condition(function Click))
    call SelectUnit(U, true)
endfunction

endlibrary


Now, does it compile? Does it... work? I don't know.
 

Jesus4Lyf

Good Idea™
JASS:
private function Click takes nothing returns boolean
    if Host == null then
        set Host = GetTriggerPlayer()
    endif
    call RemoveUnit(U)
    set U = null
    return false
endfunction

-->
JASS:
private function Click takes nothing returns boolean
    if Host == null then
        set Host = GetTriggerPlayer()
        call RemoveUnit(U)
        set U = null
    endif
    return false
endfunction

Now add an event for when player leaves, to DO IT ALL AGAIN! MUHAUHAHAHahaha....

Edit: Lol, why the hell isn't this in its own thread? Go submit it or something? XD
 

Troll-Brain

You can change this now in User CP.
Maybe this post will be irrelevant, maybe not.

When games are hosted by bots and i join them, if my war3 is minimized during the loading time, the bot consider me as admin.
Maybe it's the same with GetDelay, i can't test it.
I don't have a good connection btw i'm only on 64 ko/s.

Also i can't say if the fact that i've a dual core processor does matter or not.

Hmm or the bot consider the one who has finished downloading first as the admin ?
That would make more sense since i tend to load a map faster when my wc3 is minimized.

Sorry for this OFF-TOPIC, if someone could be enough nice to answer me.

EDIT :

I think i confused the admin considered by the bot, and the host considered by the custom GetHost function, you know the Triggersync stuff + gamecache, but it's still valid, could be the same here.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    The old shoutbox wasn't supported anymore. We updated xenForo, so it had to be replaced.
  • jonas jonas:
    let's see if everyone finds it... the nice thing about the shoutbox was I could check on it even while logged out, but the existence of this one is hidden when you're not logged in
  • Ghan Ghan:
    We can fix that.
  • Ghan Ghan:
    Chat should show on the sidebar when not logged in now.
  • Ghan Ghan:
    (You'll still need to log in to post messages)
  • Ghan Ghan:
    Test!
  • tom_mai78101 tom_mai78101:
    I must be in a test server.
  • tom_mai78101 tom_mai78101:
    Nice, Twitter tweets embedding now works
  • Wizard Wizard:
    Yup.
  • Ghan Ghan:
    Excellent.
  • Ghan Ghan:
    @tom_mai78101 Hello there.
  • Ghan Ghan:
    Tagging works in the chat too.
  • tom_mai78101 tom_mai78101:
    @Ghan Missed it.
  • Wizard Wizard:
    Still fixing things here and there. Added widgets to the portal, will make it match the ones here on the forum index tomorrow.
  • Ghan Ghan:
    The venerable World Editor Tutorials site has been converted to HTTPS at last.
  • jonas jonas:
    cool
  • jonas jonas:
    and I can even edit my messages, nice
  • seph ir oth seph ir oth:
    GENERAL CHIT CHAT, YOU ARE A BOLD ONE
  • Ghan Ghan:
    Hello there
  • The Helper The Helper:
    this new chatbox is great and the forum software update is great too
    +1
  • The Helper The Helper:
    upgrade has fixed forum registration spam problem
  • tom_mai78101 tom_mai78101:
    Something tells me we might be able to customize the chatbox a bit, considering that there's a gap under every message.
  • Wizard Wizard:
    Going to deploy a fix soon, just had to take some time for myself this weekend.
  • Varine Varine:
    Unbelievable. Time for yourself? How dare you!

    Staff online

    Members online

    Affiliates

    Hive Workshop
    Top