Jump to content

Pointers for writing a "Smart" Script


PC Nerd

Recommended Posts

hi guys.

im creating a web game as many of you may be aware.  And im looking to write a sort or automated script, or SMART script to actually play the game, from within the server.

it would mainly act as a series of SQL querys to the mysql database, but would play, hundreds of users ( obviously not all at once. )  basically this is to stop 10 different players( when i [i]release[/i] tha game, from only havin g those 10 players to work with.  id like to first start off with about 50 users.  ) id be looking at running it like choosing the user from a random selection of 50, update your money by a random amount between two suitable values etc. 

my main issue is ... becauase this is an automated script, how can i get it to always be running or load its self every day at eg 6:00 am

any suggestions would be much appeciated

P.S

im not looking for too much code for the actual script to update users, more the way to run it effectively
Link to comment
Share on other sites

well my computer is dual partitioned with wioindows and linux but i cant run both at once. 

i thiknk i found how to do it ([url=http://www.evaria.com/v3/index/article/29/configuring-cron-jobs-on-windows.html]http://www.evaria.com/v3/index/article/29/configuring-cron-jobs-on-windows.html[/url])

i load up internet explorer and run it as a scheduled task, and in advanced options i get it to run the particular script...... but would this only work if was logged in or the computer turned on, ( like would it skip a particular task if the computer wasnt turned on, or would it wait)
Link to comment
Share on other sites

[quote author=PC Nerd link=topic=123244.msg509336#msg509336 date=1169340563]
like would it skip a particular task if the computer wasnt turned on, or would it wait
[/quote]

Usually computers can only function if they are on.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.