Advertisement
squidingtin

CPT

Sep 10th, 2024
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.64 KB | None | 0 0
  1. can you make the xml for the Extended have the rounds info
  2.  
  3. <Item Name="" Descriptionidentifier="smg45_magazine_noff" identifier="pistol45_magazine_noff" variantof="pistol45_magazine" maxstacksize="1" Scale="0.45" category="weapon" subcategory="Ammunition" allowsellingwhenbroken="true" cargocontaineridentifier="metalcrate" tags="smallitem,pistol45mm_magazine,smgammo,45_ammo,magazine" impactsoundtag="magimpact" health="8">
  4.         <Price baseprice="18" soldeverywhere="false" buyingpricemultiplier="2">
  5.             <Price storeidentifier="merchantoutpost" multiplier="1.3" minavailable="4" />
  6.             <Price storeidentifier="merchantcity" multiplier="1.25" minavailable="5" />
  7.             <Price storeidentifier="merchantresearch" multiplier="1.25" minavailable="2" />
  8.             <Price storeidentifier="merchantarmory" multiplier="0.9" minavailable="8" />
  9.             <Price storeidentifier="merchantmine" multiplier="1.25" minavailable="4" />
  10.             <Price storeidentifier="merchantmilitary" multiplier="0.9" minavailable="4" />
  11.         </Price>
  12.         <Deconstruct time="10">
  13.             <Item identifier="45_round_noff" amount="4" />
  14.         </Deconstruct>
  15.         <Fabricate suitablefabricators="milfabricator" requiredtime="10" >
  16.             <RequiredSkill identifier="weapons" level="50" />
  17.             <RequiredItem identifier="45_round_noff" amount="8" />
  18.             <RequiredItem identifier="titanium" />
  19.         </Fabricate>
  20.         <InventoryIcon texture="%ModDir%/Img/ammo.png" depth="0.551" sourcerect="459,670,64,64" origin="0.5,0.45" />
  21.         <ItemContainer hideitems="true" capacity="100" drawinventory="false" canbeselected="false" ShowConditionInContainedStateIndicator="true" SpawnWithId="45_round_noff" removecontaineditemsondeconstruct="false" containedstateindicatorstyle="bullet">
  22.             <Containable items="45_round_noff" />
  23.             <StatusEffect type="OnUse" target="This" condition="-1" disabledeltatime="true">
  24.                 <SpawnItem identifiers="45_round_noff" spawnposition="ThisInventory" />
  25.             </StatusEffect>
  26.         </ItemContainer>
  27.     </Item>
  28.    
  29. this isnt 9mm but 45, so things will be different but you can see how its done
  30.  
  31. replace titanium with steel and
  32.  
  33. check the amount of rounds in the mag, then check the round cost, in noff its 13, so do (roundcost) x (health) + 30 = baseprice for new mag
  34. health is the amount of rounds, it cannot be edited, its a read only
  35. health isnt something that should ever be changed as thats a read only
  36.  
  37. if identifier="pistol9mm_magazine_extended_noff" and Descriptionidentifier="pistol9mm_magazine_extended_noff"  are the same, dont have a Descriptionidentifier
  38.  
  39. Descriptionidentifier inherits the description of the identifier in its text, so having them the same is redundant
  40.  
  41.  it needs the ItemContainer and InventoryIcon still needed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement