Author Topic: Scripts Suggestions  (Read 36011 times)

0 Members and 1 Guest are viewing this topic.

Offline Tommis

  • Moderator
  • Wiseguy
  • *****
  • Posts: 56
    • View Profile
Scripts Suggestions
« on: August 02, 2008, 06:13:20 pm »
Hey,

Have suggestions for our scripts or server? Post them in here. Any suggestions would be greatly appreciated!

Regards,
Tommis
« Last Edit: August 28, 2008, 12:53:41 am by Tommis »

Offline Mattz

  • VC:MP Lead Tester
  • Made Man
  • *
  • Posts: 192
  • BK-201
    • View Profile
Re: Suggestions
« Reply #1 on: August 02, 2008, 09:34:17 pm »
How about making !buycar and !sellcar script?  ;)


Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: Suggestions
« Reply #2 on: August 02, 2008, 10:54:10 pm »
How about making !buycar and !sellcar script?  ;)

hey mattz nice suggestions plz tommis add buycar sellcar etc  ;)

Offline Tommis

  • Moderator
  • Wiseguy
  • *****
  • Posts: 56
    • View Profile
Re: Suggestions
« Reply #3 on: August 03, 2008, 02:35:23 am »
Hey,

Alright, and what will happen when someone else gets into a car that they do not own? (Owned by someone else).

I am thinking that person will have to pay something, but hmm. I would like to hear what you would have to say.

:P

Regards,
Tommis

Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: Suggestions
« Reply #4 on: August 03, 2008, 02:40:41 am »
Commands Buycar Sellcar Car Cardive Etc 100% Work  ;)

Code: [Select]
  elseif ($2 == !car) || ($2 == !pmcar) {
    if ($vcmp.cmdcheck(!car,%id) == fail) !halt   
    elseif (%a == -1) vcmp.msg %id  Absent ID/Name
    elseif ($vcmp.vehicle(%a,id) == 0) vcmp.msg %id  $vcmp.name(%a) car is currently on foot!
    else vcmp.msg %id Vehicle - Name: $+($chr(91),$vcmp.carname($vcmp.vehicle(%a,id)),$chr(93)) ID: $+($chr(91),$vcmp.vehicle(%a,id),$chr(93)) Price: $+($chr(91),$vcmp.vehiclecost($vcmp.vehicle(%a,id)),$chr(93)) Owner: $+($chr(91),$vcmp.carowner($vcmp.vehicle(%a,id)),$chr(93))
  }
  elseif ($2 == !buycar) {
    if ($vcmp.cmdcheck(!buycar,%id) == fail) !halt
    elseif (Sunshine Autos !isin $vcmp.area(%b)) vcmp.msg %id  To Buy A Car Deves Be Sunshine In Cars!!
    elseif ($vcmp.vehicle(%a,id) == 0) vcmp.msg %id
    elseif ($vcmp.carowner($vcmp.vehicle(%a,id)) != Sunshine Autos) vcmp.msg %id This vehicle is owned by $vcmp.carowner($vcmp.vehicle(%a,id))
    elseif ($vcmp.vehiclecost($vcmp.vehicle(%a,id)) > $vcmp.cash(%id)) vcmp.msg %id You need atleast $ $+ $vcmp.vehiclecost($vcmp.vehicle(%a,id))
    else {
      vcmp.cash- %b $vcmp.vehiclecost($vcmp.vehicle(%a,id))
      !writeini -n vcmp.cars.ini OWNERS $vcmp.vehicle(%a,id) $vcmp.name(%id)
      vcmp.msg %id You have just bought $+($chr(91),$vcmp.carname($vcmp.vehicle(%a,id)),$chr(93)) ID: $+($chr(91),$vcmp.vehicle(%a,id),$chr(93)) Price: $+($chr(91),$vcmp.vehiclecost($vcmp.vehicle(%a,id)),$chr(93))
    }
  }
  elseif ($2 == !sellcar) {
    if ($vcmp.cmdcheck(!sellcar,%id) == fail) !halt
    elseif (Sunshine Autos !isin $vcmp.area(%b)) vcmp.msg %id To Sell A Must Be In Order To Sunshine Or Make One Admin The Leasehold Landlord
    elseif ($vcmp.vehicle(%a,id) == 0) vcmp.msg %id You Have No Car No!
    elseif ($vcmp.carowner($vcmp.vehicle(%a,id)) != %name) vcmp.msg %id You Can not Buy This Car Has Owner
    else {
      !writeini -n vcmp.cars.ini OWNERS $vcmp.vehicle(%a,id) Sunshine Autos
      vcmp.cash+ %b $calc($vcmp.vehiclecost($vcmp.vehicle(%a,id)) * 0.55)
      vcmp.msg %id You have sold your vehicle with price $ $+ $calc($vcmp.vehiclecost($vcmp.vehicle(%a,id)) * 0.55)
    }
  }
  elseif ($2 == !getcar) || ($2 == !pmgetcar) {
    if ($vcmp.cmdcheck(!getcar,%id) == fail) !halt
    elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <car id>
    elseif ($3 !isnum) vcmp.msg %id Error - Invalid Vehicle ID, $2 <car id>
    elseif ($vcmp.carowner($3) != %name) vcmp.msg %id Your not the owner of this car!
    else {
      vcmp.setvehicleloc $3 $hget(vcmp,%id $+ .xyz)
      .timer -m 1 400 vcmp.setvehicle %id $3
    }
  }
  elseif ($2 == !cardive) || ($2 == !pmgetcar) {
    if ($vcmp.cmdcheck(cardivegetcar,%id) == fail) !halt
    elseif (!$3) vcmp.msg %id  Missing Information, $2 <car id>
    elseif ($3 !isnum) vcmp.msg %id  Invalid Vehicle ID, $2 <car id>
    elseif ($vcmp.carowner($3) != %name) vcmp.msg %id You are not the owner of this car, go and buy one!
    else {
      vcmp.msg %id
      vcmp.setvehicleloc $3 $hget(vcmp,%id $+ .x) $hget(vcmp,%id $+ .y) $calc($hget(vcmp,%id $+ .z) + 700)
      .timer -m 1 400 vcmp.set 9 %id $3
    }
  }
  elseif ($2 == !lockcar) || ($2 == !pmlockcar) {
    if ($vcmp.cmdcheck(!lockcar,%id) == fail) !halt
    elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <car id>
    elseif ($3 !isnum) vcmp.msg %id Error - Invalid Vehicle ID, $2 <car id>
    elseif ($vcmp.carowner($3) != %name) vcmp.msg %id You are not the owner of this car
    else {
      vcmp.lockdoors $3 4
      vcmp.msg %id **Car Locked
    }
  }
  elseif ($2 == !unlockcar) || ($2 == !pmunlockcar) {
    if ($vcmp.cmdcheck(!unlockcar,%id) == fail) !halt
    elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <car id>
    elseif ($3 !isnum) vcmp.msg %id Error - Invalid Vehicle ID, $2 <car id>
    elseif ($vcmp.carowner($3) != %name) vcmp.msg %id You are not the owner of this car
    else {
      vcmp.lockdoors $3 0
    vcmp.msg %id **Car Unlocked    }
  }

tommi you server is cool more commands add buycar car sellcar etc..  :)

Offline Tommis

  • Moderator
  • Wiseguy
  • *****
  • Posts: 56
    • View Profile
Re: Suggestions
« Reply #5 on: August 03, 2008, 04:10:14 am »
Hey,

Hmm, locking the doors would be not that good of an idea. Just because then most of the car doors will be locked and non usable.

I was thinking, if someone enters a car that is not owned by them, the owner will get 10-15$ per enter of something from that person.

Basically like a loan or something, a rent for the car.

Regards,
Tommis

Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: Suggestions
« Reply #6 on: August 03, 2008, 04:24:56 am »
Hey,

Hmm, locking the doors would be not that good of an idea. Just because then most of the car doors will be locked and non usable.

I was thinking, if someone enters a car that is not owned by them, the owner will get 10-15$ per enter of something from that person.

Basically like a loan or something, a rent for the car.

Regards,
Tommis

mm nice tommis whats other commands?

                                             
!Racing in aiport ( killing in aiport )

 Killing = Drown(1) - Drop(2) - kick(3)

Auto Warn Killing In Race Drown player:[ Name ] Warning:[ 1 / 3 ]
 
Auto Warn Killing In Race Drop player:[ Name ] Warning:[ 2 / 3 ]

Auto kick Killing In Race kick player:[ Name ] Warning:[ 3 / 3 ]

in
Quote
Killing In Race

add Killing in Bank, In Sunshine, Dribe By. Team Killing ;)

hey tommis please quit commands /c goto id is commands admin  ;) and buy Weapon and Armour in ammunation :)
« Last Edit: August 03, 2008, 04:30:10 am by TanaX01 »

Offline Mattz

  • VC:MP Lead Tester
  • Made Man
  • *
  • Posts: 192
  • BK-201
    • View Profile
Re: Suggestions
« Reply #7 on: August 03, 2008, 04:36:01 am »
Yea renting sounds good. It would be like;

!rentcar <amount-of-days> Maxium 10days = $200  (10 Multiplied by 2)

So each day is x2

When each day that goes by say for
Eg. Three days = $60 That would  be subtracted from the renters bank account and would be added to the vehicles owner account.

You can also use "Database for Vice City Vehicles" by Windlord to round off the costof all vehicles.
 :D


Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: Suggestions
« Reply #8 on: August 03, 2008, 04:37:04 am »
Yea renting sounds good. It would be like;

!rentcar <amount-of-days> Maxium 10days = $200  (10 Multiplied by 2)

So each day is x2

When each day that goes by say for
Eg. Three days = $60 That would  be subtracted from the renters bank account and would be added to the vehicles owner account.

You can also use "Database for Vice City Vehicles" by Windlord to round off the cost.
 :D



:O  mattz nice !!! is cool suggestion !! yea !rencar :D

Windlord

  • Guest
Re: Suggestions
« Reply #9 on: August 03, 2008, 09:49:47 am »
This may sound RPG-ish but being able to purchase health packs/first aid kits would be great.

So instead of healing everywhere ppl can buy packs at hospitals for instant heal or to heal later on.

Another suggestion is.... being able to buy spawn locations anywhere on the map =]
So you can run to any spot and do !buyspawn and it'll spawn you at that point everytime you spawn.

Just some ideas to make the server fun :)

Mattz// @_o Thanks

Offline Giermek

  • Street Thug
  • *
  • Posts: 1
    • View Profile
Re: Suggestions
« Reply #10 on: August 03, 2008, 06:44:36 pm »
Kick or drown for DB, becasue too many people do it. DBers don't read "db is disallowed" and still do it :/

Offline Tommis

  • Moderator
  • Wiseguy
  • *****
  • Posts: 56
    • View Profile
Re: Suggestions
« Reply #11 on: August 04, 2008, 05:51:58 am »
Hey,

Alright guys, thanks greatly for all the ideas, and I will continue coding them in. As for drive by's, I know exactly what you mean.

Most likely going to make it kick the person thus forcing them to actually read.

Keep the ideas coming! I currently like;

  • Buying cars
  • Race "Submode" at AirPort

As for buying health only in hospitals, I think that is a bit harsh. Only because most of the time that will not be an option for people.

Just for more detail with the renting car, most likely this will happen. People can buy vehicles once a day (will reset every 12 hours or something), and when someone enters a car that belongs or was bought by someone else, that person who owns it will receive money from the person that entered it.

Locking doors will not be necessary, as it is a total waste.

Please remember guys, this it not a full time RPG server. This is meant to be DM + bit of rpg'ness.

Regards,
Tommis

Offline Mattz

  • VC:MP Lead Tester
  • Made Man
  • *
  • Posts: 192
  • BK-201
    • View Profile
Re: Suggestions
« Reply #12 on: August 17, 2008, 08:28:57 am »
Use hashes to save/load data :)

Hashes saves and loads faster than ini.
Quote from mirc help: "Hash tables allow you to efficiently store large amounts of information which can be quickly referenced and retrieved later on."

Ini can lag the scripts and put wear on your pc HD.


Offline Tommis

  • Moderator
  • Wiseguy
  • *****
  • Posts: 56
    • View Profile
Re: Suggestions
« Reply #13 on: August 18, 2008, 04:23:28 am »
Hey,

Yep, in my former scripts, used to use hash's all the time. But then ran into problems with mirc and them after a long period of time.

As it works with the memory, if mirc crash's you loose that data for whatever is left from the timeout you have to save it to a text file.

But, what happened before (very rare) is the loosing of all data as it overwrites the text file every time it saves.

So I stay away from hash's for now.

Cya,
Tommis

Offline Mattz

  • VC:MP Lead Tester
  • Made Man
  • *
  • Posts: 192
  • BK-201
    • View Profile
Re: Suggestions
« Reply #14 on: August 18, 2008, 04:38:06 am »
Hmm i see, It happens even if you use the signal "on Disconnect" to save the data it?