Author Topic: WSV script... (help)  (Read 5759 times)

0 Members and 1 Guest are viewing this topic.

Offline Knucis

  • Wiseguy
  • **
  • Posts: 82
  • u wot m9
    • View Profile
WSV script... (help)
« on: September 24, 2008, 07:49:10 pm »
Can somebody show me a Command for WSV like !addcmd <!cmd> <text> Please?

Im glad if you help :)

Offline Punjabi

  • Made Man
  • ***
  • Posts: 147
  • Config Editor
    • View Profile
    • PUN Clan
Re: WSV script... (help)
« Reply #1 on: September 26, 2008, 12:59:18 pm »
Which type of command u want to edit
If something like this
!help
Ply type !commands for more help..
Than i can help u...

Regards Punjabi_goli
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Windlord

  • Guest
Re: WSV script... (help)
« Reply #2 on: September 26, 2008, 02:32:04 pm »
Under
Code: [Select]
;----------------------
;-- In-Game Commands --
;----------------------

on *:signal:WSV.commands: {
add
Code: [Select]
var %addedcmd = $readini(addedcmd.ini,cmd,$3)

Anywhere between all of the other commands,
add
Code: [Select]
elseif ($3 == addcmd) {
  WSV.cmdlevelcheck $1-
  if ($5) {
    writeini -n addedcmd.ini cmd $4 $5-
    WSV.msg $2 Added Command, $4 with details, $5-
  }
  else WSV.msg $2 Format: !addcmd <cmdname> <details>
}

near to the end of the script...
above
Code: [Select]
  elseif ($2 < 100) WSV.msg $2 Invalid/Login-Only Command
}
add
Code: [Select]
  elseif (%addedcmd) WSV.say >> %addedcmd

so that it becomes,
Code: [Select]
    ...
    ...
    elseif (propspawn* iswm $3) WSV.propspawn $1-
    elseif (gotoprop* iswm $3) WSV.gotoprop $1-
    elseif ($2 < 100) WSV.msg $2 Invalid Command
  }
  elseif (%addedcmd) WSV.say >> %addedcmd
  elseif ($2 < 100) WSV.msg $2 Invalid/Login-Only Command
}
« Last Edit: September 27, 2008, 07:09:52 am by Windlord »

Offline Knucis

  • Wiseguy
  • **
  • Posts: 82
  • u wot m9
    • View Profile
Re: WSV script... (help)
« Reply #3 on: September 26, 2008, 04:28:17 pm »
Thanks :) You are the best scripter ever!

Windlord

  • Guest
Re: WSV script... (help)
« Reply #4 on: September 27, 2008, 07:10:29 am »
Oops I made a mistake >_<

I have editted my original post.

Sorry

Offline gamyster

  • Wiseguy
  • **
  • Posts: 61
    • View Profile
Re: WSV script... (help)
« Reply #5 on: September 28, 2008, 06:22:38 am »
:( the addcmd works but there is no addcmd.ini file and when i type !addcmd !vc vice city and then i type !vc it says invalid Cmd


;----------------------
;-- In-Game Commands --
;----------------------

on *:signal:WSV.commands: {
  var %addedcmd = $readini(addedcmd.ini,cmd,$3)
  WSV.say $WSV.mutekick($2)
  if (script* iswm $3) {
    WSV.say // $WSV.version %scriptinfo // 
    WSV.say // Total: $lines(" $+ $scriptdir $+ WSV.mrc $+ ") lines // 
  }
Founder of [SAF]Clan

Offline gamyster

  • Wiseguy
  • **
  • Posts: 61
    • View Profile
Re: WSV script... (help)
« Reply #6 on: September 28, 2008, 06:28:30 am »
in WSV there also no !IP script :( and Prop script in which it shows PROP PICKUPS only one time and after starting MIRC next time they wont come 100%
Founder of [SAF]Clan

Windlord

  • Guest
Re: WSV script... (help)
« Reply #7 on: September 28, 2008, 06:44:07 am »
You're meant to do !addcmd vc Vice-City.

Without the !

And yes there is not !ip script in WSV.
You can easily add one though.

Code: [Select]
elseif ($3 == ip) {
  WSV.cmdlevelcheck $1-
  if ($4) WSV.msg $2 $+($4,',s) IP address: $iif($iif($readini(" $+ $scriptdirIPs.ini",IP-logs,$4),$v1,$readini(" $+ $scriptdirIPs.ini",IP-logs,$WSV.name($4))),$v1,Unknown)
  else WSV.msg $2 Format: !ip <nick>
}

PS.
Prop pickups are respawned by the server.
So they take long to re-spawn. Just be patient.

If you want them to re-spawn automatically,
change
Code: [Select]
on *:SIGNAL:WSV.pickuphit: {
  if ($4 == 406) || ($4 == 407) { WSV.propinfo $2 $3 }
  elseif ($4 == 382) { WSV.respawnpickup $3 | WSV.endrace $1- }
  else { WSV.msg $2 Pickup ID: $3 $+ , Pickup Type: $4 }
}

to
Code: [Select]
on *:SIGNAL:WSV.pickuphit: {
  if ($4 == 406) || ($4 == 407) { WSV.respawnpickup $3 | WSV.propinfo $2 $3 }
  elseif ($4 == 382) { WSV.respawnpickup $3 | WSV.endrace $1- }
  else { WSV.msg $2 Pickup ID: $3 $+ , Pickup Type: $4 }
}

PPS.
If you want the addedcmd.ini to appear in your WSV v0.3 folder,
change the
Code: [Select]
addedcmd.inito
Code: [Select]
" $+ $scriptdirAddedcmd.ini"
« Last Edit: September 28, 2008, 06:48:23 am by Windlord »

Offline gamyster

  • Wiseguy
  • **
  • Posts: 61
    • View Profile
Re: WSV script... (help)
« Reply #8 on: September 28, 2008, 08:57:01 am »
No Effect Of Prop :( and that !addcmd also

;----------------------
;-- In-Game Commands --
;----------------------
on *:signal:WSV.commands: {
  var %addedcmd = $readini("$+ $scriptdirAddedcmd.ini",cmd,$3)
  WSV.say $WSV.mutekick($2)
  if (script* iswm $3) {
    WSV.say // $WSV.version %scriptinfo // 
    WSV.say // Total: $lines(" $+ $scriptdir $+ WSV.mrc $+ ") lines // 
  }
Founder of [SAF]Clan

Offline Tamas

  • Made Man
  • ***
  • Posts: 127
    • View Profile
    • http://www.tamasnet.eu/
Re: WSV script... (help)
« Reply #9 on: September 28, 2008, 12:18:24 pm »
I tryed that prop respawning thing its work fine so..  :P

Offline Punjabi

  • Made Man
  • ***
  • Posts: 147
  • Config Editor
    • View Profile
    • PUN Clan
Re: WSV script... (help)
« Reply #10 on: October 02, 2008, 09:39:32 am »
Yes it works fine..... ;D
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Offline evil_night13

  • Wiseguy
  • **
  • Posts: 61
  • i are a normal person like you
    • View Profile
    • web hosting
Re: WSV script... (help)
« Reply #11 on: October 15, 2008, 06:39:52 pm »
addcmd not working  :(

still says invalid command!

any other solution?  ::)