Argonath RPG - A World of its own
Argonath RPG Community => Speakerbox => Topic started 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:
-
no one can teach you :)
www.mtascripting.co.nr
-
lol, just practice man.
try loading this:
on *:SIGNAL:mta.command:{
if ($3 == !chezor) {
mta.say $1 My name is Chezor.
}
}
-
i already know that :conf:
-
Theres several sections in mIRC scripting, which bit do you want to learn?
-
um.. making a jobscript, money script, for vice city.. ! :rules:
-
You need to understand how you want it to work first, then we can help you with the mIRC scripting part.
-
mex u just come on msn man...
[MS]Chezor: !status mex
PM from Admin: Mex status: out game :neutral:
-
I am on msn :roll:
But i'd rather help you here so others can benefit from it too.
-
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..
-
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.
-
ok i ll try :razz:
-
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:
-
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.
-
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 :/
-
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) $+ %
}
}