Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Latest additions (https://forums.graalonline.com/forums/showthread.php?t=24775)

Admins 02-28-2002 10:15 PM

Latest additions
 
All servers have been restarted. This fixed a problem with
baddies and timeouts, and fixed loading of profiles.

The npcservers have been updated too:
- the thiso. flag thing works better now, e.g.
NPC Code:

setstring thiso.flag,hallo;
with (npcs[0]) {
setstring this.flag,#s(thiso.flag);
}


Then this.flag of npcs[0] will be 'hallo' too,
because thiso.flag reads the this.flag from the executing npc.
This works also for setting flags, normal variables are
not supported yet.
- new variable playerlogintime
- new variable allplayerscount, and you can do
with (allplayers[index]) { ... }
This is for accessing all players on the server
(not sure what happens when you access RCs)

amonrabr 02-28-2002 10:27 PM

cool
 
I liked the "playerlogintime", its good for jail time and make some food old...

Admins 02-28-2002 10:37 PM

Arg sorry the variable actionplayer is still not working

Saga2001 02-28-2002 11:09 PM

Re: Latest additions
 
Quote:

Originally posted by Stefan
All servers have been restarted. This fixed a problem with
baddies and timeouts, and fixed loading of profiles.

The npcservers have been updated too:
- the thiso. flag thing works better now, e.g.
NPC Code:

setstring thiso.flag,hallo;
with (npcs[0]) {
setstring this.flag,#s(thiso.flag);
}


Then this.flag of npcs[0] will be 'hallo' too,
because thiso.flag reads the this.flag from the executing npc.
This works also for setting flags, normal variables are
not supported yet.
- new variable playerlogintime
- new variable allplayerscount, and you can do
with (allplayers[index]) { ... }
This is for accessing all players on the server
(not sure what happens when you access RCs)

omi, stefan, i love you, and i want to have your children, thanks a lot, allplayerscount will be awesomem and with(allplayers) will be leet, i can't wait to use em! the playerslogintime is cool. maybe the next step is disconnectplayer? or other stuff like that? ne ways, u own and keep up the great work, i guess that the disconnectplayer might pose a threat for being hacked...

lordhelmut 03-01-2002 03:30 AM

how do you use playerlogintime?

Faheria_LAT3 03-01-2002 03:35 AM

Quote:

Originally posted by lordhelmut
how do you use playerlogintime?
Silver:
with an npcs server?

Saga2001 03-01-2002 05:40 AM

Re: Re: Latest additions
 
Quote:

Originally posted by Kaimetsu


But it should be fun to find out ;)

my thoughts exactly...

neomaximus2k 03-01-2002 06:11 AM

Quote:

Originally posted by Stefan
Arg sorry the variable actionplayer is still not working
Hey stefan i am working on a new commands RTF file, after some requests for more information and colour coding, any chance you can post the syntax of the commands?

TDK_RC6 03-01-2002 06:41 AM

l33t

Stefan, you have proven yourself great once again

Python523 03-01-2002 06:55 AM

:D great new commands, I need to test them one of these days

lordhelmut 03-01-2002 06:56 AM

Quote:

Originally posted by Faheria_LAT3


Silver:
with an npcs server?

no for free...
is it a p2p command? damn =(

Saga2001 03-01-2002 10:36 PM

Quote:

Originally posted by Python523
:D great new commands, I need to test them one of these days
lol yea, finding that day = priceless

Python523 03-02-2002 08:44 AM

Quote:

Originally posted by Saga2001


lol yea, finding that day = priceless

yep
Commands = $1
New Commands = $100
The time when you test commands = Priceless
[EDIT] I just got done testing with(allplayers[index]) and it works great but isn't it oxy*****ic (sp?) that you have to state an index for all the players??

jeff335 03-03-2002 01:04 AM

actually jagen it isn't oxy*****ic, it's a thing that lets you access them using their ID.


just use a for loop if you want to LITERALLY mess with all players, as in:

if(playerchats && strequals(#a,Providence_RC9)||strequals(#a,Provide nce_RC7) && strequals(#c,/set allplayers)){
for(i=0;i<allplayerscount;i++){
with(allplayers[i]){
setstring client.allplayers,check;
}
}
}
if(playerchats && strequals(#a,Providence_RC9)||strequals(#a,Provide nce_RC7) && strequals(#c,/unset allplayers)){
for(i=0;i<allplayerscount;i++){
with(allplayers[i]){
setstring client.allplayers,;
}
}
}


All times are GMT +2. The time now is 05:23 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.