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
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 12:40 AM.


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