![]() |
function onActionRConline ()
Why isnt this command in existance?
I always wanted an RC startup message seperated from the player one! Can someone tell me a way how to do this? |
Check if the player.level.name is NULL when somebody logs on (do that serverside, in the Control-NPC or w/e). If thats the case, its an RC.
|
onActionPlayerOnline doesn't work for RCs I am fairly certain--you'd have to make a loop
|
Hm, not sure. It's done on Era somehow, but I'm too lazy to check right now D:
|
Quote:
PHP Code:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
variable.link() does nothing except returning the variable's value.
Instead of sending temp.player.link() you would just send temp.player as that is an object. And object variables are pointers. |
Quote:
|
obj.link() can be used to pass huge arrays to functions without copying the array (by default it's copying the variable except it's already a link to an object). Also the called function can modify the original array that way.
|
Ugh, I'd really like it if you would DOCUMENT these things -.-
|
I've already told you this one year ago :D http://forums.graalonline.com/forums...ad.php?t=71633
|
I'm all for a super leet wiki entry called "Uber Rox0r functions people dont know **** about" that lists stuff like that ;D
|
Quote:
|
Quote:
But I would still like it if you documented this stuff :p Was wondering why it is only working with arrays and not strings or numbers? I've just realized how this could be very useful but don't want to wrap data in an array. And after thinking about it a bit more I'm wondering if you could let it be used anywhere even outside of functions? |
Quote:
|
Quote:
|
Quote:
PHP Code:
|
Well why don't you jackasses try it for yourselves instead of trying to tell me how I don't know what I'm talking about. Using link() to send an array pointer as a function parameter works fine but you cannot treat that array pointer as a string.
|
Quote:
|
PHP Code:
|
| All times are GMT +2. The time now is 08:18 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.