New wepons and resourse

01/02/2010 01:47 rayquaza88#1
how do i have to edit the resourse file to enable the use of new weapons?
01/02/2010 02:31 Spoil60#2
Hi... Here the codes for Vital Shock and Mine Gun... read tutorials in the forum for unlock weapons...

///Vital Shock///
Code:
			<item number="5" NAME="바이탈쇼크" SEX="all">
				<base>
					<base_info name_key="NAME277" require_level="0" require_master="0" />
					<license require="LICENSE_ASSASSIN_CLAW" script="license_VitalShock.lua" script_func="OnVitalShockLicenseTest" license_map="104" />
				</base>
				<client>
					<icon image="icon_sword_sudden.tga" />
					<attrib comment_key="TIP277" />
					<feature comment_key="F_TEXT277" />
				</client>
				<attach />
				<weapon>
					<resources reload_sound_file="Resources/Sound/sword_reload.ogg" slot_image_file="Resources/Image/Weapon/slot_sword_sudden.tga" crosshair_file="Resources/Image/Weapon/crosshair_sword_plasma" crosshair_zoomin_file="Resources/Image/Weapon/crosshair_sword_plasma" auto_target_distance="0.0" />
					<ability type="20" rate_of_fire="1" power="5.0" move_speed_rate="1.1" attack_move_speed_rate="1.0" magazine_capacity="-1" cracked_magazine_capacity="-1" max_ammo="-1" accuracy="0" range="250" support_sniper_mode="0" sniper_mode_fov="15" />
					<scene value="resources/Model/Weapon/vital_shock.scn" />
				</weapon>
			</item>
///Mine-Gun///
Code:
			<item number="1" NAME="그레네이드 건" SEX="all">
				<base>
					<base_info name_key="NAME292" require_level="0" require_master="0" />
					<license require="license_mine_gun" script="license_MineGun.lua" script_func="OnMineGunLicenseTest" license_map="104" />
				</base>
				<client>
					<icon image="icon_gun_mine.tga" />
					<attrib comment_key="TIP292" />
					<feature comment_key="F_TEXT292" />
				</client>
				<attach />
				<weapon>
					<resources reload_sound_file="Resources/Sound/grenade_reload.ogg" slot_image_file="Resources/Image/Weapon/slot_gun_mine.tga" crosshair_file="Resources/Image/Weapon/crosshair_gun_mine" crosshair_zoomin_file="Resources/Image/Weapon/crosshair_gun_mine" auto_target_distance="0" />
					<ability type="10" rate_of_fire="0.3" power="45.0" move_speed_rate="1.0" attack_move_speed_rate="1.0" magazine_capacity="1" cracked_magazine_capacity="1" max_ammo="4" accuracy="0" range="500.0" support_sniper_mode="0" sniper_mode_fov="15" />
					<scene value="resources/Model/Weapon/minegun.scn" />
				</weapon>
			</item>
Good Luck ;)
01/02/2010 02:50 killer18#3
would u happen to know the code for the katana?
01/02/2010 04:28 Spoil60#4
Katana Code... (Works only in Male Chars =/ see post for more information...)

Code:
			<item number="4" NAME="카타나" SEX="all">
				<base>
					<base_info name_key="NAME276" require_level="0" require_master="0" />
					<license require="LICENSE_STORM_BAT" script="license_storm_bat.lua" script_func="OnStormBatLicenseTest" license_map="101" />
				</base>
				<client>
					<icon image="icon_sword_stormbat.tga" />
					<attrib comment_key="TIP276" />
					<feature comment_key="F_TEXT276" />
				</client>
				<attach />
				<weapon>
					<resources reload_sound_file="Resources/Sound/sword_reload.ogg" slot_image_file="Resources/Image/Weapon/slot_sword_stormbat.tga" crosshair_file="Resources/Image/Weapon/crosshair_sword_plasma" crosshair_zoomin_file="Resources/Image/Weapon/crosshair_sword_plasma" auto_target_distance="0.0" />
					<ability type="14" rate_of_fire="1" power="24.0" move_speed_rate="1.1" attack_move_speed_rate="1.0" magazine_capacity="-1" cracked_magazine_capacity="-1" max_ammo="-1" accuracy="0" range="500" support_sniper_mode="0" sniper_mode_fov="15" />
					<scene value="resources/Model/Weapon/nippondo.scn" />
					<scene value="resources/Model/Weapon/nippondow.scn" />
					<scene value="resources/Model/Weapon/nippondozip.scn" />
          <!-- 점프 데미지 -->
          <float value="30.0" />
          <!-- 일섬 기본 데미지 -->
          <float value="26.0" />
          <!-- 일섬 맥스 데미지 -->
          <float value="100.0" />
          <!-- 일섬 사정거리 -->
          <float value="5000.0" />
          <!-- 모으기 노멀 시퀀스 파일 이름 -->
          <string value="Resources/Effects/katana_save.seq" />
          <!-- 모으기 노멀 사운드 파일 이름 -->
          <string value="Resources/Sound/rail_blast.ogg" />
          <!-- 모으기 맥스 시퀀스 파일 이름 -->
          <string value="Resources/Effects/katana_save_max.seq" />
          <!-- 모으기 맥스 사운드 파일 이름 -->
          <string value="Resources/Sound/rail_blast.ogg" />
        </weapon>
Good Luck ^^
01/02/2010 04:36 killer18#5
u wouldn't happen to know the katana tga file name would u?
01/02/2010 20:21 rayquaza88#6
Quote:
Originally Posted by killer18 View Post
u wouldn't happen to know the katana tga file name would u?
i thjthink is nipondo or somehting like that