Graal Forums

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

Graal518 08-28-2002 08:38 AM

Vars?
 
Are there any built in vars for:
players kills
players deaths
players total time online
??????????????????????????????

emortylone 08-28-2002 09:03 AM

LOL, yes and no. From what I've HEARD and experimented playerkills and deaths doesn't work online quite right. And if you want to check to see about time, make a timeout that increase a this.var x.X
---Shifter

screen_name 08-28-2002 01:09 PM

timevar2 - playeronlinetime (in seconds)

Graal518 08-28-2002 05:52 PM

Quote:

Originally posted by screen_name
timevar2 - playeronlinetime (in seconds)
Uhm, what? o.o

screen_name 08-29-2002 12:06 AM

timevar2;

It stores onlinetime, in seconds.

For example, I have approx. 23 hours on Providence, so timevar2 would approx. be equal to 82800.

Graal518 08-29-2002 12:40 AM

timevar2 is clientside, then?

emortylone 08-29-2002 03:04 AM

x.X Perhaps so =P Timevar is serverwide, I wonder though, can I use it clientside? I was working on a time script, and it took me about 1.5 days to figure out the proper coding/mathmatics for it x.X
NPC Code:

this.minutes=timevar*5/60;
for (m=0;this.minutes>60;m++)
{ this.minutes=this.minutes-60;
}


That is for minutes. just add another /60 for hours, and then /60/24 for days, and /60/24/7 for weeks, I did a months and years too, he he. I'm working on a new "layout" for the A,S,D, Hearts, MP, basically showstats =P when I get done, you'll only see showstats 1024; =P Perhaps the minimap also ;) I had a longer, actually more mathmatic version of that code I just put, but I simplified it =P
---Shifter


All times are GMT +2. The time now is 03:42 AM.

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