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 10-12-2003, 09:42 AM
Raziel_TCN Raziel_TCN is offline
Registered User
Join Date: Sep 2003
Location: USA/Illinois
Posts: 11
Raziel_TCN is on a distinguished road
Send a message via ICQ to Raziel_TCN Send a message via AIM to Raziel_TCN Send a message via Yahoo to Raziel_TCN
Question scripting help

Okay I've been trying for DAYS to get 2 things for a script, and I even went around asking tons of people including Geo for help. Now I'm all exhausted and I give up with the self trying in hope that someone will read this and help me. Heres what I need:

the graal variable for a players onlinetime and for the 2nd part of a players rating, the how often they spar one.

to give you an idea of why, and better description on *what* I need:

showimg 2,@System@Rating:#v(playerrating)/#v(playerratingdevice),x,y-16;
__________________
N-Pulse Development Team
Reply With Quote
  #2  
Old 10-12-2003, 10:01 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
EVEN GEOVANIE COULDN'T HELP?!?!?

:grin:

I'm pretty sure there aren't variables for either of those things.
__________________
Reply With Quote
  #3  
Old 10-12-2003, 10:24 PM
Riot-Starter Riot-Starter is offline
Registered User
Join Date: Aug 2001
Location: Central Florida, USA
Posts: 79
Riot-Starter is on a distinguished road
Send a message via AIM to Riot-Starter
onlinetime does not have a variable i beleive,
playersparrate / playersparrated serverside for spar rating.
Reply With Quote
  #4  
Old 10-12-2003, 10:46 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by Riot-Starter
onlinetime does not have a variable i beleive,
playersparrate / playersparrated serverside for spar rating.
playerrating
playerratingd
Reply With Quote
  #5  
Old 10-13-2003, 12:19 AM
Raziel_TCN Raziel_TCN is offline
Registered User
Join Date: Sep 2003
Location: USA/Illinois
Posts: 11
Raziel_TCN is on a distinguished road
Send a message via ICQ to Raziel_TCN Send a message via AIM to Raziel_TCN Send a message via Yahoo to Raziel_TCN
Quote:
Originally posted by Python523


playerrating
playerratingd

Thank you very much, now I just need the onlinetime one, however since its split into hours minutes and seconds, it makes me think it has 3 variables to it. example:

playerhours playerminutes playerseconds

think theres anything to that?
__________________
N-Pulse Development Team
Reply With Quote
  #6  
Old 10-13-2003, 12:21 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
There is nothing for playeronlinetime.
Reply With Quote
  #7  
Old 10-13-2003, 12:25 AM
Raziel_TCN Raziel_TCN is offline
Registered User
Join Date: Sep 2003
Location: USA/Illinois
Posts: 11
Raziel_TCN is on a distinguished road
Send a message via ICQ to Raziel_TCN Send a message via AIM to Raziel_TCN Send a message via Yahoo to Raziel_TCN
then when we right click someones profile, the 'onlinetime' just doesnt exist, we just see a shadow of what we want it to be? *sighs* too bad i didnt have NC access...i could've had all i needed in just a few moments
__________________
N-Pulse Development Team
Reply With Quote
  #8  
Old 10-13-2003, 12:31 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Just because it is there doesn't mean it is accessible.
Reply With Quote
  #9  
Old 10-13-2003, 12:50 AM
Raziel_TCN Raziel_TCN is offline
Registered User
Join Date: Sep 2003
Location: USA/Illinois
Posts: 11
Raziel_TCN is on a distinguished road
Send a message via ICQ to Raziel_TCN Send a message via AIM to Raziel_TCN Send a message via Yahoo to Raziel_TCN
Okay now I need to know how i can divide a variable, i've gotten it to show my proper online seconds.

i've tried:

showimg 17,@System@Onlineseconds:#v(timevar2/60/60),x,y-18;

and:

showimg 17,@System@Onlineseconds:#v(timevar2)/60/60,x,y-18;

neither work, can someone help me out with this?
__________________
N-Pulse Development Team
Reply With Quote
  #10  
Old 10-13-2003, 12:55 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 Raziel_TCN
Okay now I need to know how i can divide a variable, i've gotten it to show my proper online seconds.

i've tried:

showimg 17,@System@Onlineseconds:#v(timevar2/60/60),x,y-18;

and:

showimg 17,@System@Onlineseconds:#v(timevar2)/60/60,x,y-18;

neither work, can someone help me out with this?
...timevar2 is a serverside var that updates constantly and is relavent to how long the ncpserver has been online, it has NOTHING to do with the client
Reply With Quote
  #11  
Old 10-13-2003, 09:32 AM
Raziel_TCN Raziel_TCN is offline
Registered User
Join Date: Sep 2003
Location: USA/Illinois
Posts: 11
Raziel_TCN is on a distinguished road
Send a message via ICQ to Raziel_TCN Send a message via AIM to Raziel_TCN Send a message via Yahoo to Raziel_TCN
Post

Okay how about is there a var for a players ip address, or perhaps a way to grab it and turn it into a string, i need it for a with statement.
__________________
N-Pulse Development Team
Reply With Quote
  #12  
Old 10-13-2003, 10:58 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Raziel_TCN
Okay how about is there a var for a players ip address, or perhaps a way to grab it and turn it into a string, i need it for a with statement.
with() doesn't use IP addresses.
__________________
Reply With Quote
  #13  
Old 10-13-2003, 05:46 PM
Raziel_TCN Raziel_TCN is offline
Registered User
Join Date: Sep 2003
Location: USA/Illinois
Posts: 11
Raziel_TCN is on a distinguished road
Send a message via ICQ to Raziel_TCN Send a message via AIM to Raziel_TCN Send a message via Yahoo to Raziel_TCN
with(getplayer(#s(this.acct))) {


so is there *a* way to grab a players IP without using RC?
__________________
N-Pulse Development Team
Reply With Quote
  #14  
Old 10-13-2003, 06:01 PM
Kadar Kadar is offline
Registered User
Join Date: Jan 2002
Posts: 636
Kadar is on a distinguished road
No there is no way to get the players ip address on graal.
__________________
Reply With Quote
  #15  
Old 10-14-2003, 05:12 AM
DarkShadows_Legend DarkShadows_Legend is offline
Cult of the Winky
DarkShadows_Legend's Avatar
Join Date: Apr 2003
Location: Florida
Posts: 614
DarkShadows_Legend is on a distinguished road
Send a message via AIM to DarkShadows_Legend
Thumbs up

A variable for online time would be nice to have for some things.
__________________
- Criminal X

"I rather be hated for being myself, than be liked for being what you like best. I go above the influence, not under." - Me
Reply With Quote
  #16  
Old 10-14-2003, 06:35 AM
wonderboysp2p wonderboysp2p is offline
Registered User
wonderboysp2p's Avatar
Join Date: Sep 2002
Location: -Wonderboy
Posts: 537
wonderboysp2p is on a distinguished road
Send a message via AIM to wonderboysp2p
for what? only thing i can think of is like, exclusive server oldbie clubs ^_^
__________________

we are the llama FORUms!!!EWQ Ce13d5423f23!! 2e1 @$6tgv3uy65!
Reply With Quote
  #17  
Old 10-14-2003, 05:06 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally posted by DarkShadows_Legend
A variable for online time would be nice to have for some things.
timevar, if anything you could script your own
Quote:
for what? only thing i can think of is like, exclusive server oldbie clubs ^_^
you could use it for story progression maybe, or for quests that require completion within a certain time limit
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #18  
Old 10-14-2003, 05:45 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Dach
timevar, if anything you could script your own
Not really. It might be possible to log a player's online time after such a system is set up, but there's currently no way of knowing anything about the time before it.
__________________
Reply With Quote
  #19  
Old 10-14-2003, 11:18 PM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally posted by Dach
you could use it for story progression maybe, or for quests that require completion within a certain time limit
Both of those examples can be done relatively easily without an onlinetime variable.

And, as has been stated, online time and IP address script vars do not exist

yet.
Reply With Quote
  #20  
Old 10-15-2003, 04:51 AM
wonderboysp2p wonderboysp2p is offline
Registered User
wonderboysp2p's Avatar
Join Date: Sep 2002
Location: -Wonderboy
Posts: 537
wonderboysp2p is on a distinguished road
Send a message via AIM to wonderboysp2p
Quote:
Originally posted by Lance

yet.
cant wait for teh new engine!
__________________

we are the llama FORUms!!!EWQ Ce13d5423f23!! 2e1 @$6tgv3uy65!
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 10:55 PM.


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