Author Topic: An easy to use WEAPONS.INI EDITOR !!! IN-GAME !!!  (Read 1827 times)

0 Members and 1 Guest are viewing this topic.

Offline LORD KILLA

  • Camper
  • ***
  • Posts: 254
  • Happie
An easy to use WEAPONS.INI EDITOR !!! IN-GAME !!!
« on: December 20, 2008, 12:55:48 pm »
Hey
the whole code is in Code Box [just a little  ;D  ]
I made an easy to use Weapons-Editor:

Script Name: Weapons-Editor
Script Description: let u edit the Weapons.ini IN-GAME !
Original Author(s): [TTD] LORD KILLA
Core Version: 2.6.3
Code:
Code: [Select]
var ini: TINIFile;
  if (GetPiece(Text, ' ',1) = '/editwep') then begin
  iniSetValue(ini, GetPiece (Text,' ',3), GetPiece (Text,' ',4), GetPiece (Text,' ',5));
  iniSave(GetPiece (Text,' ',2), ini); // must call to save changes
  end;

Example:
/editwep weapons.ini Minigun Damge 900
Will set in "Weapons.ini" the "Minigun" settings (Damge) to 900
« Last Edit: December 21, 2008, 05:34:58 am by LORD KILLA »

Offline ~Niko~

  • Rainbow Warrior
  • *****
  • Posts: 2410
Re: An easy to use WEAPINS.INI EDITOR !!! IN-GAME !!!
« Reply #1 on: December 21, 2008, 04:44:04 am »
amazin' :D  Just fix this typo:

Quote
An easy to use WEAPINS.INI EDITOR !!! IN-GAME !!!

Offline LORD KILLA

  • Camper
  • ***
  • Posts: 254
  • Happie
Re: An easy to use WEAPONS.INI EDITOR !!! IN-GAME !!!
« Reply #2 on: December 21, 2008, 05:35:25 am »
Eh, there nothing....
 ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: An easy to use WEAPONS.INI EDITOR !!! IN-GAME !!!
« Reply #3 on: December 21, 2008, 01:41:36 pm »
Damge -> Damage
in your example


Offline LORD KILLA

  • Camper
  • ***
  • Posts: 254
  • Happie
Re: An easy to use WEAPONS.INI EDITOR !!! IN-GAME !!!
« Reply #4 on: December 22, 2008, 11:40:56 am »
ye, anyway

I found an error, and, i dont know better ask an moderator to put it to scripting help
the error is awshome

its an easy script, but i cant find the error

[ http://forums.soldat.pl/index.php?topic=22338.new#new - goog ini-functions :) but error]

Offline -Major-

  • Veteran
  • *****
  • Posts: 1419
Re: An easy to use WEAPONS.INI EDITOR !!! IN-GAME !!!
« Reply #5 on: December 22, 2008, 02:27:38 pm »
doesn't weapons.ini modifications require recompiling?

Offline rayanaga

  • Soldier
  • **
  • Posts: 143
  • ~Fur flying~
    • Kryonex
Re: An easy to use WEAPONS.INI EDITOR !!! IN-GAME !!!
« Reply #6 on: December 22, 2008, 05:51:35 pm »
doesn't weapons.ini modifications require recompiling?

just a /loadwep command will do the trick.
[kY] Kryonex - Your local zombie fanatics.
http://www.kryonex.com/