Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-28-2002, 10:15 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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)
Reply With Quote
  #2  
Old 02-28-2002, 10:27 PM
amonrabr amonrabr is offline
Scripter
Join Date: Nov 2001
Location: Brazil
Posts: 374
amonrabr is on a distinguished road
Smile cool

I liked the "playerlogintime", its good for jail time and make some food old...
Reply With Quote
  #3  
Old 02-28-2002, 10:37 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Arg sorry the variable actionplayer is still not working
Reply With Quote
  #4  
Old 02-28-2002, 11:09 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
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...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #5  
Old 03-01-2002, 03:30 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
how do you use playerlogintime?
__________________

Check out the development at:
http://razza.org/lordhelmut/FantasyTales/index
Reply With Quote
  #6  
Old 03-01-2002, 03:35 AM
Faheria_LAT3 Faheria_LAT3 is offline
The **** hit the fan...
Faheria_LAT3's Avatar
Join Date: Jul 2001
Posts: 5,266
Faheria_LAT3 is on a distinguished road
Quote:
Originally posted by lordhelmut
how do you use playerlogintime?
Silver:
with an npcs server?
__________________
AIM:Shadrock17

Idiot of the millennium: Gonmon
Reply With Quote
  #7  
Old 03-01-2002, 05:40 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Re: Re: Latest additions

Quote:
Originally posted by Kaimetsu


But it should be fun to find out
my thoughts exactly...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #8  
Old 03-01-2002, 06:11 AM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
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?
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #9  
Old 03-01-2002, 06:41 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
l33t

Stefan, you have proven yourself great once again
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #10  
Old 03-01-2002, 06:55 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
great new commands, I need to test them one of these days
Reply With Quote
  #11  
Old 03-01-2002, 06:56 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
Quote:
Originally posted by Faheria_LAT3


Silver:
with an npcs server?
no for free...
is it a p2p command? damn =(
__________________

Check out the development at:
http://razza.org/lordhelmut/FantasyTales/index
Reply With Quote
  #12  
Old 03-01-2002, 10:36 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by Python523
great new commands, I need to test them one of these days
lol yea, finding that day = priceless
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #13  
Old 03-02-2002, 08:44 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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??

Last edited by Python523; 03-02-2002 at 11:15 AM..
Reply With Quote
  #14  
Old 03-03-2002, 01:04 AM
jeff335 jeff335 is offline
Registered User
Join Date: Oct 2001
Posts: 605
jeff335 is on a distinguished road
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,;
}
}
}
__________________

Quote:
Some people like standing around talking to idiots in the real world, and some don't. Neither choice is inherently better than the other.

-Kaimetsu
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:15 PM.


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