Author Topic: WSV Cmds  (Read 5299 times)

0 Members and 1 Guest are viewing this topic.

Jkownz

  • Guest
WSV Cmds
« on: August 27, 2008, 11:59:30 am »
hi I was wandering if someone could help me with a cmd to set a weapon like !setwep <wep id> <nickname> or !givewep <wep id> <nickname>
ok thanks bye :)

Windlord

  • Guest
Re: WSV Cmds
« Reply #1 on: August 27, 2008, 02:26:29 pm »
There is already a command called;

!setwep <Nick/ID> <WepName/ID> <Ammo>

Cheers

Jkownz

  • Guest
Re: WSV Cmds
« Reply #2 on: August 28, 2008, 01:53:04 am »
thanks Windlord and is t possible to get a saveloc??? or a gotoloc which works
cheers :)

Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: WSV Cmds
« Reply #3 on: August 28, 2008, 06:59:47 am »
There is already a command called;

!setwep <Nick/ID> <WepName/ID> <Ammo>

Cheers

or you confing.ini use password admin join in game use: /setwep id weaon and id user  ;)

Jkownz

  • Guest
Re: WSV Cmds
« Reply #4 on: August 28, 2008, 10:30:47 am »
thanks Windlord and is t possible to get a saveloc??? or a gotoloc which works
cheers :)
Looking 4 answers still

Windlord

  • Guest
Re: WSV Cmds
« Reply #5 on: August 28, 2008, 01:30:33 pm »
Code: [Select]
elseif ($3 == saveloc) {
  WSV.cmdlevelcheck $1-
  if ($4) {
    writeini -n " $+ $scriptdirSavedLocs.ini" SavedLocs $4 $WSV.location($2)
    WSV.say New Location saved by $WSV.name($2) at $4
  }
  else WSV.msg $2 Please type a name after !saveloc
}
elseif ($3 == gotoloc) {
  WSV.cmdlevelcheck $1-
  if ($readini(" $+ $scriptdirSavedLocs.ini",SavedLocs,$4)) {
    WSV.setlocation $2 $readini(" $+ $scriptdirSavedLocs.ini",SavedLocs,$4)
    WSV.msg $2 Taking you to $4
  }
  else WSV.msg $2 Invalid Location
}
Note: Untested but should work.

Offline Punjabi

  • Made Man
  • ***
  • Posts: 147
  • Config Editor
    • View Profile
    • PUN Clan
Re: WSV Cmds
« Reply #6 on: August 29, 2008, 10:07:59 am »
Hey Windlord thanks i really want this saveloc and gotoloc ;D
Thanks vry much
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 Cmds
« Reply #7 on: October 15, 2008, 09:09:56 pm »
saveloc and gotoloc not working, says invalid command!

any tested and working one for wsv0.3 ???

Offline Punjabi

  • Made Man
  • ***
  • Posts: 147
  • Config Editor
    • View Profile
    • PUN Clan
Re: WSV Cmds
« Reply #8 on: October 20, 2008, 12:41:37 pm »
It will work u just have to place then at right place...aah i prefer to paste it under ur !aspirine command.. 8) ;D
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Offline Tamas

  • Made Man
  • ***
  • Posts: 127
    • View Profile
    • http://www.tamasnet.eu/
Re: WSV Cmds
« Reply #9 on: October 24, 2008, 06:12:56 pm »
That script working fine, anyway try this if "not":

Quote
elseif ($3 == saveloc) && ($2 < 100) {
WSV.cmdlevelcheck $1-
if ($4) {
if (!$hget(WSV.Savedlocks,$4)) {
hadd WSV.Savedlocks $4 $calc($WSV.location($2).x) $calc($WSV.location($2).y) $calc($WSV.location($2).z)
WSV.msg $2 Location saved sucessfully! Name: $chr(91) $4 $chr(93)
WSV.msg $2 Coord: $calc($WSV.location($2).x) $calc($WSV.location($2).y) $calc($WSV.location($2).z)
}
else WSV.msg $2 Error: This location name is allready saved!
}
else WSV.msg $2 Syntax: /c saveloc <locname>
}
elseif ($3 == gotoloc) && ($2 < 100) {
WSV.cmdlevelcheck $1-
if ($4) {
if ($hget(WSV.Savedlocks,$4)) {
WSV.setlocation $2 $WSV.savedloc($4)
WSV.say Teleporting: $WSV.name($2) To: $chr(91) $4 $chr(93)
WSV.msg $2 Location: $WSV.savedloc($4)
}
else WSV.msg $2 Error: This location name is not on the saved list.
}
else WSV.msg $2 Syntax: /c gotoloc <locname>
}

Hash indentifiers:

loadhash WSV.Savedlocks
whsave WSV.Savedlocks
!hfree WSV.Savedlocks