Quantcast

Jump to content

» «
Photo

Editing Weapon Prices

10 replies to this topic
iwishihadbroadband
  • iwishihadbroadband

    Now I'm a 1.1 mbpser

  • Members
  • Joined: 17 Apr 2005

#1

Posted 02 May 2005 - 05:44 PM

Is there anyway to edit the prices of guns or items from shops in general in Vice City? Sometimes I feel that the prices are too low whereas San Andreas' weapon stores were quite expensive.

PatrickW
  • PatrickW

    GTA Juggernaut

  • Moderator
  • Joined: 07 Jan 2004
  • Netherlands

#2

Posted 02 May 2005 - 06:54 PM

QUOTE (iwishihadbroadband @ May 2 2005, 19:44)
Is there anyway to edit the prices of guns or items from shops in general in Vice City? Sometimes I feel that the prices are too low whereas San Andreas' weapon stores were quite expensive.

yes ..... that's a relative simple to do.....

The threads that are handling the three weapon shops are:


  • IMMU1

  • IMMU2

  • IMMU3



In each of those threads, the following code-fragment (or similar) will occur five times, once for each weapon sold there:
QUOTE
:Label015A0F
00D6: if  0
0038:  $353 ==  0  ;; integer values
004D: jump_if_false ££Label015B48
0001: wait  0 ms
00BA: text_styled "PISTOL"  1000 ms  4  ;; Pistol
01E5: text_1number_highpriority "G_COST"  100  1000 ms  1  ;; Cost: $~1~
00D6: if  0
0256:  player $PLAYER_CHAR defined
004D: jump_if_false ££Label015B41
0050: gosub ££Label01A97E
04B8: get_weapon_data player $PLAYER_ACTOR weapon_group  4 weapon $365 ammo $354 model $366
0050: gosub ££Label01B0FB
00D6: if  0
0490:  player $PLAYER_CHAR has_weapon  18
004D: jump_if_false ££Label015A96
01E5: text_1number_highpriority "HELP54"  100 1000 ms  1  ;; ~w~Cost: $~1~ ~r~Buying this will replace your current weapon.

:Label015A96
00D6: if  0
00E1:  key_pressed  0  16
004D: jump_if_false ££Label015B28
0419: $354 = player $PLAYER_CHAR weapon  17 ammo
00D6: if  0
010A:  player $PLAYER_CHAR money >  99
004D: jump_if_false ££Label015B21
00D6: if  0
001A:    9999 > $354  ;; integer values
004D: jump_if_false ££Label015B1A
01B1: give_player $PLAYER_CHAR weapon  17 ammo  68  ;; Load the weapon model before using this
00D6: if  0
0018:  $354 >  9999  ;; integer values
004D: jump_if_false ££Label015AFC
01B1: give_player $PLAYER_CHAR weapon  17 ammo  9999  ;; Load the weapon model before using this

:Label015AFC
01B8: set_player $PLAYER_CHAR armed_weapon_to  17
0050: gosub ££Label01A935
0109: player $PLAYER_CHAR money += -100
0528: add  100 to_money_spent_on_weapons_stats
0001: wait  300 ms


The red text indicated which weapon is sold, and the yellow amounts is the price.

You should be able to change the price of each item in this way. To change the type of weapons that are sold, more changes to other parts of these threads are required.

iwishihadbroadband
  • iwishihadbroadband

    Now I'm a 1.1 mbpser

  • Members
  • Joined: 17 Apr 2005

#3

Posted 05 May 2005 - 08:43 PM

Thanks, but I am new to the world of VC modding. What tools and which files would I need to edit?

PatrickW
  • PatrickW

    GTA Juggernaut

  • Moderator
  • Joined: 07 Jan 2004
  • Netherlands

#4

Posted 06 May 2005 - 07:21 AM

You'll need to edit main.scm, and MBv1.5 is the most used tool for it.
You'll find all about it in the pinned tutorial topic

iwishihadbroadband
  • iwishihadbroadband

    Now I'm a 1.1 mbpser

  • Members
  • Joined: 17 Apr 2005

#5

Posted 07 May 2005 - 11:20 AM

I downloaded gtama_ide, but I can't find a 'opcode Definition File (scm_vice.ini)'. Is there anywhere to get it?

(Thanks for your help, I know it must be difficult being an expert telling a n00b like me how to do stuff)

Y_Less
  • Y_Less

    629

  • Members
  • Joined: 14 Mar 2004

#6

Posted 08 May 2005 - 11:26 AM

To be fair, its easier for 'experts' to tell a newb than other newbs - that is what the forum is for.

You can get the latest ini file from here - just find the link to generate it.

careca
  • careca

    Rat

  • Members
  • Joined: 05 May 2005

#7

Posted 31 May 2005 - 02:26 AM

hey! just to say that i did another thing to mine scm...

instead of this

0109: player $PLAYER_CHAR money += -100

i have this

0109: player $PLAYER_CHAR money += 1000

so what happened? instead of loosing money...i earn!
instead of "give" 100 credits or dollars or whatever, i earn 1000 by buying a weapon!! tounge.gif



PatrickW
  • PatrickW

    GTA Juggernaut

  • Moderator
  • Joined: 07 Jan 2004
  • Netherlands

#8

Posted 31 May 2005 - 10:09 AM

Wow, thanx for sharing this.. This is soooo helpful

Even better would be, to include
CODE
0109: player $PLAYER_CHAR money += 1000000

right after the player has been created, and you never need to buy a weapon again to earn money.

random_download
  • random_download

    :o

  • Members
  • Joined: 07 Mar 2004

#9

Posted 31 May 2005 - 10:13 AM

yes, because instead of adding -100 (ie. taking 100 away) it adds 1000

careca
  • careca

    Rat

  • Members
  • Joined: 05 May 2005

#10

Posted 31 May 2005 - 06:41 PM

Yes, it´s just an example...but don't forget that for some higher numbers u will ned to add "&" or "&&" next to the number...
Or is before? well it depends of the scm editor.
It is nice to know that someone likes that little trick, hack or whatever! tounge.gif
Another little thing i done, but in the default ide...
i changed the Class of the Sandking, Stretch and Deluxo...
Where it was "ignore"...i have now "normal"
That allows the cars that never go out of the store, to apear in the streets as the other cars!
Im not sure if anyone already knew this...

(my game and my friends game dont crash with this modification...)

PatrickW
  • PatrickW

    GTA Juggernaut

  • Moderator
  • Joined: 07 Jan 2004
  • Netherlands

#11

Posted 31 May 2005 - 08:03 PM

Yes, this is a known trick, that can be used without any problem.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users