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 - Chezor

Pages: [1]
1
mIRC/pawn Scripting / Passenger script - GUS
« on: October 02, 2008, 06:04:03 pm »
Hi guys, i would like to know how passenger can be detected in vcmp. Windlord gave me idea in server but i forgot what he said actually :P
so if anyone could give a tip, i would appreciate  :)

2
mIRC/pawn Scripting / Basic Tutorial [Maybe helpful]
« on: September 23, 2008, 09:24:54 pm »
Well after looking at poor beginners, i feel to share some basic knowledge. Im not good at explaining things but i really feel bad for beginners.. so a beginner tutorial wud be nice for them. So heres it, i would like to post..

Creating Alias

1] normal alias

alias vcmp.version !return v1.0
alias vcmp.<aliasname> !return <msg to return>

2] readini alias

alias vcmp.cash !return $iif($readini(vcmp.cash.ini,CASH,$vcmp.name($1)),$v1,0)
alias vcmp.<aliasname> !return $iif($readini(<filename>,<section-in-file>,$vcmp.name($1)),$v1,<else-to-return-if-readini=nothing>)


Commands

on *:SIGNAL:vcmp.command:{

if ($2 == !test) {
vcmp.say Testing Completed
}

elseif ($2 == !hello) || ($2 == !pmhello) {
vcmp.cmdsay $2 %id Hello Everyone
}

elseif ($2 == !test2) {
vcmp.msg %id Test 2 completed
}

else vcmp.msg %id Invalid Command.
}


Now in the commands give above:

Chezor: !test
Testing Completed
Chezor: !hello
Hello Everyone
Chezor: !pmhello
pm >> Hello Everyone
Chezor: !test2
pm >> Test 2 Completed
Chezor: !blablabla
pm >> Invalid Command.


A fill in the blank for beginner :P

elseif ($2 == !<command>) {
vcmp.say <Type here what it will message when command is typed>
}


Some Info

$1 == Server
$2 == Command
$3 == Word after command. Example: !command word.
$4 == Word after word. Example: !command word word2.
and so on

Working with INI

!writeini -n <filename> <SECTION> %name yes
for example !writeini -n vcmp.test.ini TEST %name yes
it will create file vcmp.test.ini
[TEST]
Chezor=yes

!remini -n <filename> <SECTION> %name
it will remove the name from file..
[TEST]


Extras

>= Greater than or equal to
<= Less than or equal to
== Equal to
!=  Does not equal to
<  Less than
>  Greater than


3
mIRC/pawn Scripting / Script Vcmp.data - Area
« on: September 08, 2008, 07:42:33 am »
If i want a particular sqaure to be named as some property name, then how can i add it. Like when i type !area it shows the area in which im standing at. so how to make like that.

like if i want to make any part of land to be named as per my wish.
I tried co-ordinates but i dunno what to put there actually..

Example:
-213.73,1243.47,163.656,1243.47,163.656,797.605,-213.73,797.605=Prawn-Island
-213.73,797.605,163.656,797.605,163.656,-241.429,-213.73,-241.429=Leaf Links

what are those co-ordinates above ?  x y and z or ?
example: if i want to put area name to a heli-pad as landing spot (just example). which co-ordinates i should put ? The co-ords of corners ? please answer

4
Support / Some issue
« on: September 07, 2008, 10:34:46 am »
My mate have bought linux hosting from serverffs
And i m scripting mIRC..
some people say mIRC doesnt work on linux..
now how to script linux..servers. thats my question

5
mIRC/pawn Scripting / Distance-PM
« on: September 06, 2008, 06:45:16 pm »
I need help with scripting the following:
If i want to script.

Chezor: /c eat
All others who are near me by distance 5, will only get a PM. Suppose 1 and 2 are players. Then 1 is standing close to my by distance 5 and 2 is standing away from me. So 1 will only get the pm saying i m eating food. And 2 will not get the pm.
PM to 1: Chezor is eating food

got it ?.. but i dont know how to make it. I tried several times...



6
Support / Server doesnt show up
« on: September 04, 2008, 11:43:22 am »
server doesnt show up in internet tab ?? .. any solution ?

7
mIRC/pawn Scripting / !report - script help
« on: September 03, 2008, 05:23:53 pm »
If i type !report <name> <reason>
it should report to the admin online at the moment in the server. [ the admin which will be shown when we type !admin cmd ]

like
!report chezor rulebreaking
pm to chezor: thankyou for your report.
pm to all admins: reported: chezor, reason: rulebreaking.

i need some help in pming the admin present online ! im trying but i cudnt script this.. give some help.. im learning through GUS so help according to aliases in GUS..



elseif ($2 == !report) || (!rport) {
    if ($vcmp.cmdcheck(!report,%id) == fail) !halt
elseif (!$3) vcmp.msg %id Absent ID/Name
elseif (!$4) vcmp.msg %id Absent reason, Syntax: !report <name> <reason>
else {
vcmp.msg %id You sent report to admins, Thanks for your support.


and further there in above script i need is that.. it should sent pm to admin present online..

8
mIRC/pawn Scripting / Time Scripts
« on: September 03, 2008, 05:14:58 pm »
Suppose i want a countdown of 1 hour. which will be repeated constantly after each countdown gets over. Like countdown of 10 secs is running constantly.
when i type. !ctime
it shows 10
when i type !ctime it shows 8 or 5 or the number which is being countdowned virtually in the script.

so actually i have seen mta argonath script which has fish contest script.
so there 1 hour time is running for each contest.
people fish there and after 1 hour is finished the person with biggest fish gets money.
so how do i create a countdown of 1 hour which keeps repeating again and again after every hour.

2] suppose everyone are fishing [ i can create fish script using $rand technique ]
if some person gets fish weighted 20kg
the other gets 19kg
and third gets 15kg
how can the person be given reward of cash after the particular countdown hour is over ?
its some complicated script but i need some help, and i know you there are the best scriptors.

9
mIRC/pawn Scripting / GUS problem with account script.
« on: September 03, 2008, 01:46:09 pm »
hmm problem is that
i can:  /c register password
it says: You have registered with name: Chezor and password: password.
/q

then if i leave server and join again, i try to login
/c login password
it says: This name is not registered.

then if i minimize game and click connect on GUS connection dialog box. It reconnects the script. Then i go maximize the minimized game and type /c login password.
At that time it logs me in !
so whats the problem ?

10
mIRC/pawn Scripting / Random Selection
« on: September 02, 2008, 09:02:21 pm »
I want to create a job script, for RPG server. Suppose if i want to make import/export job script. [example]

Like people sit in any car, they type !transport. When they type it they will be given randomly selected place like little havana, docks, lighthouse etc.
How to make a script which randomly selects any option which i script.

just as !search coin
options:
you found a gold coin
you found silver coin
you found nothing

Anything will be directly chosen from that. Please explain in detail, im not expert you can understand because you know how hard it was when you were beginner. :]

11
mIRC/pawn Scripting / Scripting Help :]
« on: March 15, 2008, 08:54:32 pm »

lets start with a basic script every tutorial starts with.
You want the server to say "Hello World!"
but you want it to be a bit more complex, you want the server to say this, when a player says !hello
we now need to decide, wether we want "Hello world" to be public, or just the player who said this can see it.

place this code into your script some where near line 1194 (it doesnt really matter, but near the !info command is a good place to put it)
Code: [Select]
elseif ($2 == !hello) || ($2 == !pmhello) {
vcmp.msg $2 %id Hello World!
}

ok. that was our first code. now, the part vcmp.msg is the actual "what to do" thing in the script. $2 %id specifies who to send the message to. Hello world, is the parameter on the actual action. therefore, irc has to send a message, defined in parameters.
if we want the "Hello world!" to be public, replace vcmp.msg with vcmp.say

If we want to check weather player has the right to see "hello world", place an IF before the vcmp.msg:
Code: [Select]
elseif ($2 == !hello) || ($2 == !pmhello) {
if ($vcmp.cmdcheck(!hello,%id) == fail) !halt
else vcmp.msg $2 %id Hello World!
}
now, the if line, does the following
checks if the value after !hello in vcmp.cmdlevel.ini is larger than the players admin level. if it is larger it goes to !halt. if smaller, it ignores !halt and does the next line, which is hello world
!halt, is a storno, but im not sure, if it gives an error message or not.

btw, due to the error (not sure if its an error)
i would like to clear the alias's

well im new to vcmp scripting so i was just searching for tutorials also googling for tutorils. but i found none tutorials. also i found that if i want to learn scripting i have to read the script made by others and understand it. so i have learned something.

well i found that topic of tutorial from matthiasvegh :
So i can also say that the hello command is wrong its actually :

elseif ($2 == !hello) || ($2 == !pmhello) {
vcmp.msg %id Hello World!
}


I have modified many things in GUS and now i know how to change the script.
I added various commands like

weather commands : !rain, !clear, !fog, !eclipse, !storm, etc

and the settime command in gus was not working for me ( i also modified it and now it works)
: !settime, !morning, !noon, !evening, !midnite



now i need to know is : how to make !time command so that it shows current time shown in top right corner of the game !

Also i want to know how to make a command like !gotohideout <locname> so only admin lvl 1 can go to that location. and no other player can go to that location.
same as !gotoloc command but i want gotoloc for all ppl and gotohideout commands only for admins. help me with it.

Also i need help with buying cars. if u guys dont wana give script for buying cars at least give me the idea how to make it or explain me.

12
mIRC/pawn Scripting / Need Scripting Tutorial
« on: March 13, 2008, 04:15:33 pm »
Im new to all this vcmp scripting can i have a tutorial. Or is there anyone on this forum who can teach me ?

Pages: [1]