Perhaps a function that can check to see if we're online. perhaps something like-
//-----------------------------
if ( ifOnline() ){
message(getSourceIP() , "A message that will display in my console");
}else{
logMessage("A message that will display in my log for times of me being offline");
}
//-----------------------------
It will return a boolean, this way it can be used in various types of if statements and i'm sure hundreds of other ways.
The in-game web browser, I thought it would be nice if we could have multiple tabs like in Mozilla Firefox. You could set the tab so that whatever tab has focus, gains the vote, if the button is clicked.
Yes, Yes, etc.
1) I think the function would make more sense as "isOnline();" instead of "ifOnline();", as the later implies that it is an extension of an IF statement.
2) That's one of the most complained about features of the browser: It teases you with a tab bar, but doesn't allow tabs.
3) Exploiter, Fox, Opera... pretty much all browsers 'cept Lynx can do tabs nowadays...
Keep your head down, your ears open, and your connections encrypted.
Good Luck
--
no IFs, ANDs, or XORs.
Pretty Nice.
That is a good idea if they make that. But why would it matter if you are online. It will not show up if your not online anyway. So it would not matter if you are on line or not. I would understand if you wanted it to do it to someone else, but there no point in that if you wanted to do it to yourself. So the only reason you would want
isOnline()orifOnline()is if you wanted the script to know if someone else online. So your script you are trying to make is not needed.~ShadowPhang
once again ShadowPhang, you
once again ShadowPhang, you bypass the brain train and post.
why do you think you don't see me on when i am? "/LC" works wonders (I.E. in Gen / help chat) when i don't want to be bugged or i am just having a off day.
any how hack away all.
Coder
Rationality
For those of you who don't see it, let me explain why Phang is wrong about this function being useless.
One use would be doing long-distance messaging. My message service, with this function, could then check weather the target is on. If sie is, it sends the message. If not, it returns to the person sending the message with big flashing errors.
You have to remember, the context of the example is not always the intended use. A function like this could be a cheaper alternative to isZombie(); , and force you to wait till they're offline (for stealth reasons).
Oh, the function would work best if it checks a IP for it, so the usage would be:
//-----------------------------------
boolean online = isOnline("42.1.7.42");
//-----------------------------------
Open your mind, Grasshopper.
~The Jelly
Keep your head down, your ears open, and your connections encrypted.
Good Luck
--
no IFs, ANDs, or XORs.
Maybe
I looked at it to fast to say anything. But it could be useful to make a auto attack to will check if online, like you said abluejelly for stealth reasons.you could put this on a attack script under continue and would be useful:
"Sorry that player you are trying attack is online. It would not be smart to attack."string IP=getTargetIP();
if (isOnline(IP) ){ cancelAttack()
message(getSourceIP(),
);}
Or if you have File IO you should switch IP in
isOnline(IP)toisOnline(readLine(stealth.attack,0)). This way you can cancel it if you are like when attacking a NPC. But also you would have to do more work like that too.So if you are attacking someone it would be useful. I was looking at the script you want to make and where it says
logMessagei thought was pretty interesting. Now I think you are trying to know how many time you are offline. Now wouldn't you want a function calledisOffline()I would make a script like this:string file="offline.log";
int +=countLines(file)+1;
int #=countLines(file);
if (isOffline() ) {
writeLine(file,+);
logMessage("You have been offline "#" time's.");
}
But to do that you need to have File IO. You can buy it for $5. But that is how would do it. The log window will tell how many times I have went offline. That is if they had that function and could trigger it some how. So that function would be better for stealth attacks.
~ShadowPhang
isOnline()
I suggest that during the overhaul, a new level or realism be added to the scripting system. I believe it would be possible to make things more real without becoming terribly technical, by adding more script types, watch types, etc. instead of relying on functions that reveal server-side info (like who's online). When a new user account is created, it should have several default scripts installed right off the bat. The scripts that the store currently gives away for free would just be the beginning. Other default scripts would be required to get basic game functionality (e.g. chat, attacking window, browser, compiler, etc) working, but could be customized by advanced users.
For example, don't think about having an isOnline function. Think instead about having a ping function that activates a watch-style script. The default script installed on this watch returns true only if the user is online, but it can be overridden to always return "Online". Better yet, have another watch-style script that is called when a user logs in or out that, by default, sets a global boolean variable that is returned by the default ping script.
If the script engine is overhauled (PLEASE!!!) it should be possible to limit scripts by processor time, making CPU upgrades more realistic and hopefully preventing the host server from having a heart attack running all the extra scripts.
From Wartt Hog