Author Topic: Add 3 simple commands (i think) to WSVv0.3  (Read 4021 times)

0 Members and 1 Guest are viewing this topic.

Offline Daniel95

  • Made Man
  • ***
  • Posts: 120
  • NOU!!!!
    • View Profile
Add 3 simple commands (i think) to WSVv0.3
« on: March 10, 2009, 09:22:21 am »
How i can add the commands:
!hunt !getall and !healall to the WSV scripts?
<@Foxtrot> halooo
<@Foxtrot> darfeh any cw's?
* Desert_Eagle is now known as darfeh
<@darfeh> idk

Offline Daniel95

  • Made Man
  • ***
  • Posts: 120
  • NOU!!!!
    • View Profile
Re: Add 3 simple commands (i think) to WSVv0.3
« Reply #1 on: March 10, 2009, 03:49:15 pm »
 :-\ not so undrestood it but i will try..
<@Foxtrot> halooo
<@Foxtrot> darfeh any cw's?
* Desert_Eagle is now known as darfeh
<@darfeh> idk

Offline [AoD]NC

  • VC:MP Beta Tester
  • VC:MP Veteran
  • *
  • Posts: 616
  • AoD forever!
    • View Profile
    • KURWA MAĆ
Re: Add 3 simple commands (i think) to WSVv0.3
« Reply #2 on: March 10, 2009, 04:36:38 pm »
Getall on FBS looks so:
Code: [Select]
  elseif ($3 == getall) {
    if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 You must either register or be logged in as Admin Level 2.
    elseif ($FBS.Level($1, $2) < 2) vcmp.msg $1 $2 Error, You need to be at least level 2 to use this command. 
    else {
      vcmp.say $1 ** Warping:[ All players $chr(93) to:[ $vcmp.name($1, $2) $chr(93)
      var %a = 0
      while (%a <= %limit) {
        if ($vcmp.name($1, %a) != $vcmp.name($1, $2)) {
          vcmp.setlocation $1 %a $calc($vcmp.location($1, $2).x + 2) $vcmp.location($1, $2).y $calc($vcmp.location($1, $2).z - 1.12)   
          vcmp.msg $1 %a District:[ $+ $vcmp.area($1, $2) $+ $chr(93)
        }
        !inc %a
      }
    }
  }

I thought WSV is based on VRockers DLL, FBS is based on this too, so it should work noproblemo.

U need only to change this:
Code: [Select]
    if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 You must either register or be logged in as Admin Level 2.
    elseif ($FBS.Level($1, $2) < 2) vcmp.msg $1 $2 Error, You need to be at least level 2 to use this command. 
Change it to a WSV admin rule [only for admins with level 2 or higher]. I think there are in WSV also commands that are only for admins.

Offline Daniel95

  • Made Man
  • ***
  • Posts: 120
  • NOU!!!!
    • View Profile
Re: Add 3 simple commands (i think) to WSVv0.3
« Reply #3 on: March 10, 2009, 05:24:48 pm »
U need only to change this:
Code: [Select]
    if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 You must either register or be logged in as Admin Level 2.
    elseif ($FBS.Level($1, $2) < 2) vcmp.msg $1 $2 Error, You need to be at least level 2 to use this command. 
Change it to a WSV admin rule [only for admins with level 2 or higher]. I think there are in WSV also commands that are only for admins.

For what i need to change it? soory just i not undrestand in that nothing
<@Foxtrot> halooo
<@Foxtrot> darfeh any cw's?
* Desert_Eagle is now known as darfeh
<@darfeh> idk

Offline [AoD]NC

  • VC:MP Beta Tester
  • VC:MP Veteran
  • *
  • Posts: 616
  • AoD forever!
    • View Profile
    • KURWA MAĆ
Re: Add 3 simple commands (i think) to WSVv0.3
« Reply #4 on: March 10, 2009, 05:52:31 pm »
U know: some commands are in only for admins. Search in the MRC file commands, that are only for admin [like kicking players]. At the start of the command will be a script like this from FBS.

Mmm, i downloaded WSV, huh....
This is the parameter:
Code: [Select]
if ($WSV.levels($4) > 1)
So it should be:
Code: [Select]
  elseif ($3 == getall) {
    if ($WSV.levels($4) > 1) vcmp.msg $1 $2 You need to be Admin level 2 or higher. 
    else {
      vcmp.say $1 ** Warping:[ All players $chr(93) to:[ $vcmp.name($1, $2) $chr(93)
      var %a = 0
      while (%a <= %limit) {
        if ($vcmp.name($1, %a) != $vcmp.name($1, $2)) {
          vcmp.setlocation $1 %a $calc($vcmp.location($1, $2).x + 2) $vcmp.location($1, $2).y $calc($vcmp.location($1, $2).z - 1.12)   
          vcmp.msg $1 %a District:[ $+ $vcmp.area($1, $2) $+ $chr(93)
        }
        !inc %a
      }
    }
  }
I dont know WSV very well. Maybe instead of f.e. vcmp.say u have wsv.say? U need them to rescript it ;).

Offline Daniel95

  • Made Man
  • ***
  • Posts: 120
  • NOU!!!!
    • View Profile
Re: Add 3 simple commands (i think) to WSVv0.3
« Reply #5 on: March 11, 2009, 09:26:26 am »
I cant put it jsut in the scripter editor? :P ??? ::)
<@Foxtrot> halooo
<@Foxtrot> darfeh any cw's?
* Desert_Eagle is now known as darfeh
<@darfeh> idk