Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. DLC
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
      7. The Diamond Casino Heist
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA IV Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA SA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA VC Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA III Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

iwishihadbroadband

Editing Weapon Prices

Recommended Posts

iwishihadbroadband

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.

Share this post


Link to post
Share on other sites
PatrickW

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:

 

: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.

Share this post


Link to post
Share on other sites
iwishihadbroadband

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

Share this post


Link to post
Share on other sites
PatrickW

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

Share this post


Link to post
Share on other sites
iwishihadbroadband

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)

Share this post


Link to post
Share on other sites
Y_Less

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.

Share this post


Link to post
Share on other sites
careca

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

 

 

 

Share this post


Link to post
Share on other sites
PatrickW

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

 

Even better would be, to include

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.

Share this post


Link to post
Share on other sites
random_download

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

Share this post


Link to post
Share on other sites
careca

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...)

 

Share this post


Link to post
Share on other sites
PatrickW
Yes, this is a known trick, that can be used without any problem.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • 2 Users Currently Viewing
    0 members, 0 Anonymous, 2 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.