Argonath RPG - A World of its own

Argonath RPG Community => Speakerbox => Topic started by: Hawk on February 28, 2008, 10:06:15 am

Title: mIRC Scripting for MTA:VC
Post by: Hawk on February 28, 2008, 10:06:15 am
Hey I want to learn mIRC Scripting for Multi Theft Auto Vice City !
I m ready to pay Argonath MTA:VC Dollars for learning mIRC Scripting !

Anyone ready to teach me ?  :bow:
Title: Re: mIRC Scripting for MTA:VC
Post by: Watti on February 28, 2008, 10:08:13 am
no one can teach you :)

www.mtascripting.co.nr
Title: Re: mIRC Scripting for MTA:VC
Post by: Iceboy on February 28, 2008, 10:20:26 am
lol, just practice man.

try loading this:


on *:SIGNAL:mta.command:{
  if ($3 == !chezor) {
    mta.say $1 My name is Chezor.
  }
}
Title: Re: mIRC Scripting for MTA:VC
Post by: Hawk on February 28, 2008, 10:25:47 am
i already know that  :conf:
Title: Re: mIRC Scripting for MTA:VC
Post by: Mex on February 28, 2008, 04:18:47 pm
Theres several sections in mIRC scripting, which bit do you want to learn?
Title: Re: mIRC Scripting for MTA:VC
Post by: Hawk on February 28, 2008, 04:39:08 pm
um.. making a jobscript, money script, for vice city.. !  :rules:
Title: Re: mIRC Scripting for MTA:VC
Post by: Mex on February 28, 2008, 04:52:08 pm
You need to understand how you want it to work first, then we can help you with the mIRC scripting part.
Title: Re: mIRC Scripting for MTA:VC
Post by: Hawk on February 28, 2008, 05:09:05 pm
mex u just come on msn man...

[MS]Chezor: !status mex
PM from Admin: Mex status: out game  :neutral:
Title: Re: mIRC Scripting for MTA:VC
Post by: Mex on February 28, 2008, 05:14:35 pm
I am on msn :roll:
But i'd rather help you here so others can benefit from it too.
Title: Re: mIRC Scripting for MTA:VC
Post by: Hawk on February 28, 2008, 05:25:13 pm
good idea ! lol

I want to have a script like this :

Bank script : !deposit / !withdraw
Car buying/selling script :
Places buying/selling script :
Money Earning script : Taking car from 1 place to other place in the given time, Earning cash by cop work, etc.

Admin Commands : Same as Argonath admin commands.

Scripts i got : !kill, !slap, !clock, !sun/fog/rain, !info, !status, !in/out, etc..
Title: Re: mIRC Scripting for MTA:VC
Post by: Mex on February 28, 2008, 05:34:33 pm
Ah so basically you want the Argonath script:)
Well you know no-one can give that to you, but we can help you script.

When I said "you need to understand how it will work first", i mean't you should plan exactly how each command will work.
For example, for !money you would want it to tell you how much money you have ofcourse, but you need to think how you want to store players money.  One way to do this is to use INI files.  Then when you want to retrieve the player's money, you can just read that INI file.

You should atleast try to make those commands yourself first, then we can help you with problems.
As you can't really expect others to make those commands for you.

The mIRC manual (in your mirc folder) contains alot of helpful information, you should use it whenever you get stuck.
Also scripting.html included with MTA:mA contains alot of helpful information on the MTA side of scripting.
Title: Re: mIRC Scripting for MTA:VC
Post by: Hawk on February 28, 2008, 05:36:08 pm
ok i ll try  :razz:
Title: Re: mIRC Scripting for MTA:VC
Post by: Hawk on February 28, 2008, 05:39:09 pm
Quote
As you can't really expect others to make those commands for you.
hey when i said i want it from others ?

Hey I want to learn mIRC Scripting for Multi Theft Auto Vice City !
I m ready to pay Argonath MTA:VC Dollars for learning mIRC Scripting !

Anyone ready to teach me ?  :bow:
Title: Re: mIRC Scripting for MTA:VC
Post by: Mex on February 28, 2008, 05:52:45 pm
There's alot too mirc scripting, so I asked you which section you wanted to learn ;)
But I'll start off by explaining a couple of commonly used symbols:

%
The percent sign represnts a variable when it is the far left character of a word.
Variables are great to store values in temporarily or pernamently.
And you can then retrieve that value at a later time.

$
The 'dollar' sign represnts an identifier when it is the far left character of a word.
This means mirc will replace the 'identifier word' with the value it contains.
There a several identifiers built into mirc, such as $time. (They are all in the mirc manual).
When you use $time, mirc will replace all those 5 characters with the actual time (based on your computer time)
It is also possible to create your own identifers using alias's, but that might seem confusing at first.
Title: Re: mIRC Scripting for MTA:VC
Post by: Hawk on February 28, 2008, 06:04:15 pm
I know is the following : ( from the guy named scooby on some site ! )

$1 = Server
$2 = PlayerID
$3 = the first word u type
$4 = the second word u type
$5 = the 3rd word u type... and so on

but in this script :

on *:SIGNAL:mta.command:{

  var %a = $iif($4 == $null,$2,$mta.getid($1,$4))

  if ($3 == !hp) {
    if (%a == -1) mta.msg $1 $2 Error: Invalid Name/ID.
    elseif ($4 == $null) mta.msg $1 $2 Your Health is at $mta.health($1,$2) $+ %
    else mta.msg $1 $2 $mta.name($1,%a) $+ s health is at $mta.health($1,%a) $+ %
  }


when i go ingame and type !hp it says disabled :/
Title: Re: mIRC Scripting for MTA:VC
Post by: Mex on February 28, 2008, 06:51:59 pm
In MTA:mA go to Server > Options > Check 'Admin+'
Make sure you then enter the admin+ password too.
You need to be connected to the server with admin+ to do/receive certain things.

Also in that script you haven't ended the signal scope. (You need another } bracket)


on *:SIGNAL:mta.command:{

  var %a = $iif($4 == $null,$2,$mta.getid($1,$4))

  if ($3 == !hp) {
    if (%a == -1) mta.msg $1 $2 Error: Invalid Name/ID.
    elseif ($4 == $null) mta.msg $1 $2 Your Health is at $mta.health($1,$2) $+ %
    else mta.msg $1 $2 $mta.name($1,%a) $+ s health is at $mta.health($1,%a) $+ %
  }

}
SimplePortal 2.3.7 © 2008-2025, SimplePortal