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.


Messages - VRocker

Pages: 1 2 3 [4] 5
46
mIRC/pawn Scripting / Re: timer.refresh
« on: September 13, 2008, 02:29:00 am »
Your missing a few $'s

Any command which has brackets after is (in your case vcmp.rob.loc) should have a $ infront of it.
For example: vcmp.rob.loc($1) would become $vcmp.rob.loc($1)

It'll be the same for your timer. So it'll be
Code: [Select]
timer.refresh 0 2 $vcmp.chkloc(%name)

47
mIRC/pawn Scripting / Re: Want Scripter....
« on: September 04, 2008, 04:40:34 pm »
I could help you... but your unwilling to help yourself. You just want everybody to do everything for you.

I am willing to help anybody that is willing to learn and understand how they are being helped. I am not willing to do everything for somebody. And i assume everybody else is like that too.

48
mIRC/pawn Scripting / Re: Want Scripter....
« on: September 04, 2008, 12:15:11 am »
TOUGH!

But seriously... what a waste of a topic. Nobodys gonna help you if you just scream I WANT A SCRIPTER at everybody

49
mIRC/pawn Scripting / Re: 1 question
« on: September 04, 2008, 12:11:41 am »
ermm just poking my head in here... but isn't that script missing some required aliases?

And the ini shouldn't need Sunshine Autos added in for every id. look into using $iif, it'll save work :)

50
mIRC/pawn Scripting / Re: Mirc Scripting or The Pawn language ?
« on: August 29, 2008, 08:06:49 pm »
* VRocker looks for the 'Other' selection

Personally i'd go for something else since i dont like pawn, and mirc is a bit too slow and inefficient (when compared to a proper language)

I'd prefer to have dll plugin support to a server so things can be written in a real language such as C++ :)

If i had to choose though i'd go for mIRC scripting since its easier, and dll's are piss easy to make for it ;)

51
mIRC/pawn Scripting / Re: Bank Killing
« on: August 28, 2008, 07:51:24 pm »
Thanks to WSV having aliases to make this a lot easier... This turns into 5 lines of script! :)

This is untested but i'm fairly certain it will work (Aslong as the bank is actually called 'Bank' but you can change that)

Code: [Select]
on *:SIGNAL:WSV.kill {
  if ( ( $wsv.loco( $2 ) == Bank ) && ( $wsv.loco( $3 ) == Bank ) ) {
    wsv.say $wsv.Warn( $2, Auto-Admin, Killing in the bank )
  }
}

52
mIRC/pawn Scripting / Re: $vcmp.area(%id) Doesnt work
« on: August 27, 2008, 01:55:30 pm »
Seems to me that you have an invalid line in your vcmp.data.ini file under [AREAS]. This would cause the invalid parameters error if there is a stray letter somewhere. Try wiping the [AREAS] section clean then gradually re-add lines until it fails.

You could also pastebin it and give us the link (It may be long) so we can have a look for ourselves

53
mIRC/pawn Scripting / Re: !bikers etc.
« on: August 27, 2008, 02:21:59 am »
bazza, i suggest you calm down and stop flaming somebody for trying to help.
I dont see you helping thijn and if your such a good scripter, why not?

Everybody has to start somewhere. You was a beginner once! and loops can be difficult for some people or extremely easy for others. We arn't all the same.

Ok, i agree that force shouldn't be making scripts up off the top of his head to help others without first testing as hes a beginner but hey, he tried which counts for something.

Oh and on a side note... Who taught you to count... 1... 2.... 4!? Or did somebody eat point 3? ;)

54
mIRC/pawn Scripting / Re: !bikers etc.
« on: August 27, 2008, 01:51:49 am »
Yes, Force is a beginner at scripting but hes learning!
Yes his loops are a bit inefficient but wern't yours when you first started out? i know mine were!

I've talked to Force and gave him pointers on improving his scripts and i offer help to anybody that asks me. And yes, the FBS scripts were a bit crashy which was partly down to my DLL (which i recently fixed).

Anyway back on track... Force was on the right lines with his loop (shame he cocked it up a bit) so dont have a go at him

Oh and thijn, a few things with your code... i notice you have a Tab in you code you posted (Tabs are VERY bad in mirc code, dont use notepad :))

Heres the fix you want:
Code: [Select]
elseif ($2 == !bikers) {
    var %a = 0, %b
    while (%a <= 50) {
      if ($vcmp.skin($vcmp.name(%a)) == Biker) {
        if ( %b ) %b = %b $+ , $vcmp.name(%a)
        else %b = $vcmp.name( %a )
        !inc %a
      }
    }
    vcmp.say The follow players are using the Biker skin:
    vcmp.say %b
  }

And before anybody bitchs about an inefficient loop... I dont know the alias in GUS which gets the ammount of players in the server, or the maximum ammount of players allowed

55
mIRC/pawn Scripting / Re: [Request]RPG Script
« on: August 21, 2008, 11:27:31 pm »
These scripts are usually very big and complex and it takes a lot of time to perfect them. Even then i dont think whoever makes it would want to give it away for free or have to keep maintaining it because you break it or something.

Just either use current RPG scripts and modify them (remember to keep the credits!) or look through other peoples scripts and learn from them

56
mIRC/pawn Scripting / Re: Writing ini in one line + 1 new question
« on: August 17, 2008, 12:21:51 am »
Just knocked up a quick script which will do this for you :)
Its been optimised for speed so it may look a tad complicated but its really easy :)

Heres the script:

Code: [Select]
alias CalcOwnedCars {
  var %a = 1, %b, %id = 0
  var %name = $vcmp.name(%a)

  while ( %a < $ini( CarOwners.ini, CarOwners, 0 ) ) {
    %id = $ini( CarOwners.ini, CarOwners, %a )
    if ( %id ) {
      if ( $readini( CarOwners.ini, CarOwners, %id ) == %name ) {

        ; You may want to modify the %id bit below for vehicle names
        if ( %b ) %b = %b $+ , %id
        else %b = %id
      }
    }
    !inc %a
  }

  writeini "CarOwners.ini" ReadableCarOwners %name %b
}

on *:SIGNAL:vcmp.command:{
  var %name = $left($1,-1)
  var %id = $vcmp.getid(%name)
  var %a = $iif($3,$iif($3 !isnum,$iif($vcmp.getid($3) != Unknown,$v1,-1),$iif($vcmp.name($3) != Unknown,$3,-1)),%id)

  if ( $2 == !buycar ) {

    ; DO YOUR FUNKY BUYCAR STUFF HERE

    var %vehicleid = $vcmp.vehicle(%a,id)
    ; Lets store it in an internal format. This will be used for calculating other stuff aswell as selling
    writeini "carowners.ini" CarOwners %vehicleid %name

    CalcOwnedCars %id

  }
  elseif ( $2 == !sellcar ) {

    ; DO YOUR SELL CAR STUFF HERE!

    var %vehicleid = $vcmp.vehicle(%a,id)
    ; Lets store it in an internal format. This will be used for calculating other stuff aswell as selling
    remini "carowners.ini" CarOwners %vehicleid

    CalcOwnedCars %id
  }

  elseif ( $2 == !mycars ) {

    ; DO SOME CHECKING N OTHER FUNKEH STUFF

    ; NOTE - The next line will only output owned vehicle ID's, change it to add names
    ; NOTE 2 - To change it for names, modify the CalcOwnedCars alias!
    vcmp.msg %id Your Vehicles: $readini( CarOwners.ini, ReadableCarOwners, %name )

  }
}

Although its not been tested... it should work fine. Lemme know if it doesn't work

57
mIRC/pawn Scripting / Re: !say %name xD
« on: July 09, 2008, 02:26:58 pm »
What revillo said may work but mirc may thing your giving it an empty variable (similar to when you do a $ on its own.

Try adding this...

Code: [Select]
on *:TEXT:*:#:{
if ( $chr( 37 ) isin $1- ) {
kick $chan $nick Feck Off! :)
}
}

The $chr will stop mirc parsing as a var.
Oh and as windlord said... i dont think this bug exists in my dll but i cannot confirm as i have not personally tested it.

58
All commands need the $1 parameter. This is used to do multiple things to multiple servers.

Heres the fixed code:
Code: [Select]
on *:SIGNAL:vcmp.player.command2:{
  ; $1 = ServerID, $2 = PlayerID, $3 = Command, $4- = Params
  vcmp.addchat $1 $vcmp.name( $1, $2 ) $+ : /c $3-

  if ($3 == sethp) {
    if (!$4) vcmp.msg $1 $2 Error - Missing Information, $3 <name> <amount>
    elseif (!$5) vcmp.msg $1 $2 Error - Missing Information, $3 <name> <amount>
    elseif ($4 == -1) vcmp.msg $1 $2 Error - Invalid ID/Name
    else {
      vcmp.sethp $1 $4 $5
      vcmp.say $1 Setting HP on: $4 To Amount: $5 $+ % By Admin: $2
    }
  }
!.signal vcmp.command2 $strip( $1- )
}

Also for reference, see my scripts Here

Edit: Also just noticed you using Elseif's without a starting if. You must have an if before an elseif within the same set of brackets

59
mIRC/pawn Scripting / Re: Bad language
« on: June 24, 2008, 03:19:45 pm »
Cant give you the exact code without knowing what base script your using... But heres the main part you need:

Code: [Select]
if ( $findtok( fuck shit bastard, $2-, 1, 32 ) ; Warn User
$2- would be the whatever the player said. In my scripts it would be $3- under vcmp.chat.
Sorry i cant give you the code for the other scripts, havn't got access to their signals/parameters right now (Somebody wanna grab them for me? :))

More words can be added by seperating each 'bad word' with a space

60
mIRC/pawn Scripting / Re: Commands !Ban
« on: June 20, 2008, 02:03:10 pm »
Try this (It may need some work since it wasn't originally made for the GUS, should be fine though):
Code: [Select]
on *:TEXT:!*:#:{
if ( $1 == !ban ) {
    if ( $nick isop $chan ) {
      if ( $2 ) {
        var %id = $iif( $2 isnum, $v1, $vcmp.nameid( $2 ) )
        if ( %id != 255 ) {
          vcmp.adminchat ** Admin:[ $nick ] Banned:[ $vcmp.hgetname( %id ) ] Reason:[ $iif( $3-, Reason: $v1, No Reason ) ]
          vcmp.ban %id
        }
        else !.notice $nick Error: Invalid Player
      }
      else !.notice $nick Error: You must say who to ban
    }
  }
}

This will also work for banning IDs aswell as names :)

Oh yeh, and if you want to use the command on the client the scripts are running on, remeber to change on *:TEXT:!*:#:{ to on *:INPUT:#:{

Pages: 1 2 3 [4] 5