Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   scripting help (https://forums.graalonline.com/forums/showthread.php?t=48575)

Raziel_TCN 10-12-2003 09:42 AM

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;

Kaimetsu 10-12-2003 10:01 AM

EVEN GEOVANIE COULDN'T HELP?!?!? :eek: :eek: :eek:

:grin:

I'm pretty sure there aren't variables for either of those things.

Riot-Starter 10-12-2003 10:24 PM

onlinetime does not have a variable i beleive,
playersparrate / playersparrated serverside for spar rating.

Python523 10-12-2003 10:46 PM

Quote:

Originally posted by Riot-Starter
onlinetime does not have a variable i beleive,
playersparrate / playersparrated serverside for spar rating.

playerrating
playerratingd

Raziel_TCN 10-13-2003 12:19 AM

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?

DustyPorViva 10-13-2003 12:21 AM

There is nothing for playeronlinetime.

Raziel_TCN 10-13-2003 12:25 AM

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

DustyPorViva 10-13-2003 12:31 AM

Just because it is there doesn't mean it is accessible.

Raziel_TCN 10-13-2003 12:50 AM

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?

Python523 10-13-2003 12:55 AM

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

Raziel_TCN 10-13-2003 09:32 AM

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.

Kaimetsu 10-13-2003 10:58 AM

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.

Raziel_TCN 10-13-2003 05:46 PM

with(getplayer(#s(this.acct))) {


so is there *a* way to grab a players IP without using RC?

Kadar 10-13-2003 06:01 PM

No there is no way to get the players ip address on graal.

DarkShadows_Legend 10-14-2003 05:12 AM

A variable for online time would be nice to have for some things.


All times are GMT +2. The time now is 04:38 AM.

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