Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Jookia

Pages: [1] 2 3
1
Modification Help / Restlines
« on: April 18, 2007, 11:44:46 PM »
"if(getword(%line, 0) $= "Dude: ")"

What would I put next to make the rest of %line be a variable.

2
General Discussion / Olive Plague
« on: April 17, 2007, 08:00:59 PM »
Some people have the olive texture error, Nige made it with his parachute model.

3
Modification Help / Engine Problems
« on: April 16, 2007, 07:58:11 AM »
In my own game when porting some code from an earlier engine to 1.5, everything suddenly looks brighter then the rays of the sun. Also, I can't switch between third person when I ported my binds and stuff.

4
Modification Help / Updater
« on: April 14, 2007, 07:09:38 AM »
I want to check for a file via http then check on line one for a version number and compare it to the $Pref::Version one. One line two of the http file, it'll be the file to download IF it's older then $Pref::Version. Any help appreaciated.

Code: [Select]
function updateGame()
{
%gameUpdater = new HTTPObject(gameUpdater);
%gameUpdater.FilePath = "~/updates/" @ $updateFile;
%gameUpdater.get("JookScript.googlepages.com:80","/BRLatestVersion.txt");

if( isFile(%FilePath) && !%append)
{
%FileClearer = new FileObject();
%FileClearer.openForWrite(%FilePath);

%FileClearer.close();
%FileClearer.delete();
}
}

function getLatestVersion::onLine(%this, %line)
{
if(firstWord(%line)) $= "Version")
{
%latestVersion = restWords(%line);

if($pref::BuildingResort::currentVersion < %latestVersion)
{
getLatestVersion.update();
}
}
}

function getLatestVersion::update(%this, %line, %)
{
if( isFile(%FilePath) && !%append)
{
%FileClearer = new FileObject();
%FileClearer.openForWrite(%FilePath);
%FileClearer.close();
%FileClearer.delete();
}

%File=new FileObject();
%File.openForAppend(%this.FilePath);

%File.writeLine(%line);

%File.close();%File.delete();
}

5
Modification Help / Date?
« on: April 13, 2007, 05:47:27 AM »
How can I get the system date using Torque?

6
Modification Help / Few FileObject questions.
« on: April 11, 2007, 04:57:47 AM »
Can I mark lines so I can translate them into values?
Can I download a file, write all contents to a file then close the download?

Thanks.

7
Modification Help / Incomplete bot code
« on: April 10, 2007, 08:29:20 PM »
Free bot code.

Code: [Select]
// This is my horse code.
// By your uncle Jook.

function servercmdAddHorse(%client)
{
%player = %client.player;

if(%player.HorseSpawned == 1)
{
centerprint(%client,"\c0[\c3Horse\c0] \c3You can not spawn more then one horse!",3);
return;
}

$Horse[%client.name] = new AIPlayer()
{
dataBlock = HorseArmor;
aiPlayer = true;
};

MissionCleanup.add($Horse[%client.name]);

$Horse[%client.name].setTransform(%player.getTransform());
$Horse[%client.name].setshapename(%client.name @ "\'s Horse");
$Horse[%client.name].isAIControlled = 1;
%player.HorseSpawned = 1;

centerprint(%client,"\c0[\c3Horse\c0] \c3Your horse has been created!",3);

return;
}

function servercmdRemoveHorse(%client)
{
%player = %client.player;

if(%player.HorseSpawned == 1)
{
if(%player.followhorse == 1)
{
%bot.clearAim();
%bot.setMoveDestination(%bot.getPosition());
%bot.setimagetrigger(4, 0);
%player.followhorse = 0;
}

centerprint(%client,"\c0[\c3Horse\c0] \c3Your horse has been removed!",3);
$Horse[%client.name].delete();
%player.HorseSpawned = 0;

return;
}

centerprint(%client,"\c0[\c3Horse\c0] \c3You must spawn a horse first!",3);
return;
}

// Debugging.
function fixhorse()
{
exec("./JookScript_Horse.cs");
}

8
AoT Clan Discussion / Clan: Pwners
« on: April 10, 2007, 08:27:16 PM »
I don't know how to layout a clan page.

Name: Pwners

Members:

 + Jookia ( Started it today. )

Ranks:

 + All ranks are equal ( To prevent levels of power being abused. )

Requirements:

 + Able to commit crimes. ( Incase the cops stun as we dynamite people. )
 + Good aim with any weapon. ( This helps with group fights. )
 + Knowledge of the map. ( This helps when we need to get to a place fast. )
 + Any hook. ( Even though the golden hook is recommended, if you can use the
    normal hook properly, that's good too. )
 + Use of spells. ( You must know the appropriate times to use spells, like
    cloaking to run away from people then go behind a mountain to hook away. )

If you can meet most of the requirements, welcome aboard! Just post here.

9
General Discussion / Just a small warning.
« on: April 10, 2007, 07:16:01 PM »
Toilets are very cool. This is just a place mark for my intelligent non-spam post where I made the most beautiful ice-cream Sunday you've ever seen!

10
Modification Help / NewMesageHud?
« on: March 11, 2007, 05:07:53 AM »
NMH::addLine doesn't work...?

11
Modification Help / MessageSent *Error Thread*
« on: March 09, 2007, 04:09:05 AM »
I'm making my custom MessageSent command and this thread is dedicated to my errors that I encounter during my tests.

Added:

  • New Color Scheme
  • New Text Reporting In To Console
  • Word Censoring
  • Team Messages

To Add:

  • Private Message System
  • Word Censoring

To Fix:


  • Team Messages
  • Announcement System

12
Modification Help / Announcement
« on: March 08, 2007, 04:09:44 PM »
I can't enter two words when I type "/announce Testing Today" in the chat box, it just returns as "Announcement: Testing". Here's the code from my my serverCMDAnnounce.

Code: [Select]
if(strlen(%text) <= 1)
{
return;
}

%obj = %client.player;
%obj.playthread(0, talk); //fwar play talk animation
%obj.schedule(strlen(%text) * 50, stopthread, 0);
   
    if(strlen(%text) >= $Pref::Server::MaxChatLen)
{
%text = getSubStr(%text, 0, $Pref::Server::MaxChatLen);
}

chatMessageAll(%client, '\c3Announcement: \c0%1', %text);
echo("Announcement: ", %text);

13
Modification Help / The if statment?
« on: March 07, 2007, 09:15:35 PM »
How can I make commands do something for super admins but not anybody else?

Also, how can I make a script do something if the thing entered say, %dudename contains a word?

14
Modification Help / Tags?
« on: March 07, 2007, 01:47:26 AM »
Waht are the varibles for the clan tags?

%client.tag?

I dunno. Any ideas?

15
General Discussion / Another VERY COOL glitch
« on: March 07, 2007, 12:44:24 AM »
Using this other guys method, do this for some fun:

1. Walk in any direction.
2. Press r (that's my bind for sit) right after you stopped walking.
3. If it worked, you should be walking without moving.
4. Next: Hold crouch.
5: You should be humping the ground without moving!
6. Next: Hold crouch and move in any direction.
7. If that worked, you will be crawling 'round without moving your body.

Pages: [1] 2 3