Blockland Forums > Suggestions & Requests
Host caller - Request fulfilled
<< < (3/4) > >>
BobSevenSevens:
It probably wouldn't work, because when I go AFK, I'm all the way on the other side of my house, I can't herr stuff from my non-BL computer (which is right next to my BL computer), and my BL computer's speakers are busted.
lilboarder32:

--- Quote from: BobSevenSevens on August 04, 2009, 10:44:31 PM ---It probably wouldn't work, because when I go AFK, I'm all the way on the other side of my house, I can't herr stuff from my non-BL computer (which is right next to my BL computer), and my BL computer's speakers are busted.

--- End quote ---

This would be the main problem, but the command should be very simple. I could try making one for you. Just would be a problem if your literally AFK or muted speakers or something.
Chrono:

--- Code: ---function serverCmdCallHost(%client)
{
messageClient(localclientconnection,'','<color:ffff00>%1 <color:ffffff>has called you.',%client.getPlayerName());
localClientConnection.playSound(Synth_11_Sound);
localClientConnection.schedule(10,playSound,Synth_11_Sound);
localClientConnection.schedule(20,playSound,Synth_11_Sound);
localClientConnection.schedule(30,playSound,Synth_11_Sound);
}
--- End code ---

Untested, if it works it should show:
Chrono has called you.
and beep 4 times.

Possible errors: .getPlayerName()
Known errors: Will not work on dedicated. Abuse.
BobSevenSevens:
When I go AFK, I literally go AFK.
Regulith:

--- Quote from: Chrono on August 04, 2009, 10:59:51 PM ----scriptsnip-

--- End quote ---

Thanks, it appears to work when I use it on myself, but I won't know if it works for other players until I can host again.

Can you make it so it tells the person who calls that it works? Otherwise someone could try to call the host and get no response because the server doesn't actually have the script. This is all assuming that you're going to release this, though. If you're not, I don't think you have to bother.


--- Quote from: BobSevenSevens on August 04, 2009, 11:15:44 PM ---When I go AFK, I literally go AFK.

--- End quote ---

That's what the sound is for.
Navigation
Message Index
Next page
Previous page

Go to full version