Eclipse
January 05, 2009, 04:40:45 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Chat Help Rules Arcade Search Calendar Gallery Login Register  
 
 
 
Recent Topics +-
Lostica [Project Revamp] by The MrMiguu™ [pizza pretzles]
Today at 04:39:56 PM

what? by The Oracle
Today at 04:36:33 PM

Merrimint's Website by The MrMiguu™ [pizza pretzles]
Today at 04:36:25 PM

Rate the above user by The Oracle
Today at 04:35:17 PM

J-HASP! by The Oracle
Today at 04:33:24 PM

Spike's Adminishness! by Dr. Who Cares
Today at 04:32:21 PM

Open Book by Jarvis ♥ Pie
Today at 04:31:08 PM

The New Eclipse Raid on Runscape by DrNova
Today at 04:30:54 PM

Free movies? by DrNova
Today at 04:28:25 PM

[Real Life Picture Thread] by The Oracle
Today at 04:25:17 PM

Members Online +-
16 Guests, 24 Users
Sk3wer,
Gh0st ...,
The MrMiguu™ [pizza pretzles],
Maxac,
‪‫‬‭‮‪‫‬‭Admiral Refuge,
Gwendalin,
The Oracle,
Airscar,
Niko,
Hikaru,
chrisaub,
Jarvis ♥ Pie,
DrNova,
Almighty Wing,
Chief,
Simius Cruentus,
ShadowChao,
Electrokinesis,
Dr. Who Cares,
Blue Fly,
Ankoku,
Jax The Mighty,
grenegg1,
Zananok
Pages: [1]
  Print  
Author Topic: Job scripts  (Read 1463 times)
0 Members and 1 Guest are viewing this topic.
fireblade
Active Member
***
Offline Offline

Posts: 245


View Profile Email
« on: May 23, 2006, 06:32:33 PM »

i need a script that u can like do everyday and every 24 hours u get paid

im not suire of what jobs to put down, but maybe like
whiteknight
Active Member
***
Offline Offline

Posts: 181



View Profile Email
« Reply #1 on: May 23, 2006, 07:32:05 PM »

Quote from: fireblade
i need a script that u can like do everyday and every 24 hours u get paid

im not suire of what jobs to put down, but maybe like

make a timer to tick every:
86400000 milliseconds
Formula:
((((1000mil*1sec)*60sec)*60min)*24h)
and in it you create a loop to read the ppl's name and pay amount in a ini file...ex.:
Create Timer(0, 86400000, payppl(index))
obs.: that is NOT the timer command I just cant remember, plus i dont know if you can leave the index 0 to create a global timer)

then:
sub payppl(index)
dim maxppl
maxppl = GetVar("jobpayouts.ini", "GENERAL", "PayOut")
dim count
count = 0
dim payout
dim player
do while count < maxppl
player = GetVar("jobpayouts.ini", "PLAYER" & count, "PlayerName")
payout = GetVar("jobpayouts.ini", "PLAYER" & count, "PayOut")
'Then here you have to make the "engine" to give the player the money i was gonna use the "call Give_Currency" but then the player needs to be logged on...

I hope I helped..

ORRR
insted of the timer i THINK you can do:
Select Case Time
Case "And case number for day!"
'then the loop i made!!

cya!
Pages: [1]
  Print  
 
 

Powered by EzPortal
Powered by MySQL Powered by PHP Powered by SMF 2.0 Beta 4 | SMF © 2006–2008, Simple Machines LLC | Sitemap Valid XHTML 1.0! Valid CSS!
Page created in 0.29 seconds with 33 queries.