Advertisement
ramin1992

new item cocain and its effect

Jan 10th, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.97 KB | None | 0 0
  1. itemsxml
  2. <item id="1878" name="cocain">
  3. <property name="CustomIcon" value="potassiumNitratePowder" />
  4. <property name="Meshfile" value="Items/Health/painkillersPrefab" />
  5. <property name="Material" value="organic" />
  6. <property name="HoldType" value="16" />
  7. <property name="Stacknumber" value="50" />
  8. <property class="Action0">
  9. <property name="Class" value="UseOther" />
  10. <property name="Delay" value="1.0" />
  11. <property name="Use_time" value="..." />
  12. <property name="Gain_health" value="0" />
  13. <property name="Gain_food" value="0" />
  14. <property name="Gain_water" value="-1" />
  15. <property name="Sound_start" value="UseActions/player_painkillers" />
  16. <property name="Buff" value="DrinkBeer2" />
  17. </property>
  18. <property class="Action1">
  19. <property name="Class" value="Eat" />
  20. <property name="Delay" value="1.0" />
  21. <property name="Use_time" value="..." />
  22. <property name="Gain_health" value="0" />
  23. <property name="Gain_food" value="0" />
  24. <property name="Gain_wellness" value="80" />
  25. <property name="Gain_water" value="-1" />
  26. <property name="Sound_start" value="UseActions/player_painkillers" />
  27. <property name="Buff" value="DrinkBeer2" />
  28. </property>
  29. <property name="ActionSkillGroup" value="Medicine"/>
  30. <property name="CraftingSkillGroup" value="Science"/>
  31. <property name="Group" value="Medicine" />
  32. <property name="ActionExp" value="200"/>
  33. </item>
  34. ----------------------------------------------------------------------------------------
  35. buffsxml
  36. <buff id="DrinkBeer2" duration="1" actions="increment(beers2, 1, 0, 0, 1)">
  37. <modify id="0" stat="stamina" amount="2" rate="1"/>
  38. </buff>
  39.  
  40. <buff id="MetabolizeBeer2" buffif="beers2 greater 0" debuffif="beers2 less 1" actions="increment(beers2, -1, 90, 0, 0);min(beers2, 0)"/>
  41.  
  42. <buff id="speedBoost" mutex="Hangover2,Drunk2,SickDrunk2,AlcoholPoisoning2" buffif="beers2 greater 0" debuffif="beers2 less 1" duration="60" name_key="speedBoost" stack="reset" description_key="speedBoostDesc" tooltip_key="speedBoostTooltip" icon="ui_game_symbol_run">
  43. <modify id="0" stat="speedmodifier" modifyMaxValue="2"/>
  44. <modify id="1" stat="speedmodifier" modifyValue="2"/>
  45. </buff>
  46.  
  47. <buff id="Drunk2" mutex="Hangover2,SickDrunk2,AlcoholPoisoning2" buffif="beers2 greater 5" debuffif="beers2 less 2" actions="debuff(speedBoost)" name_key="drunk" type="staminadown" description_key="drunkDesc2" tooltip_key="drunkTooltip2" icon="ui_game_symbol_drunk">
  48. <modify id="0" stat="speedmodifier" modifyMaxValue="3"/>
  49. <modify id="1" stat="speedmodifier" modifyValue="3"/>
  50. </buff>
  51.  
  52. <buff id="InstantSickDrunk2" duration="1" buffif="beers2 greater 0" mutex="SickDrunk2,AlcoholPoisoning2" requires="Hangover2" actions="setvar(beers2, 9)" name_key="InstantSickDrunk2" type="staminadown"/>
  53.  
  54. <buff id="SickDrunk2" mutex="AlcoholPoisoning2" buffif="beers2 greater 8" debuffif="beers2 less 1" actions="increment(@wellness, -0.5, 40, 0, 0);debuff(Drunk2);debuff(Hangover2)" ondebuff="Hangover2" name_key="sickDrunk2" type="staminadown" description_key="sickDrunkDesc2" tooltip_key="sickDrunkTooltip2" icon="ui_game_symbol_dysentery">
  55. <modify id="0" stat="speedmodifier" modifyMaxValue="4"/>
  56. <modify id="1" stat="speedmodifier" modifyValue="4"/>
  57. <modify id="2" stat="health" amount="-10" rate="4"/>
  58. </buff>
  59.  
  60. <buff id="Hangover2" mutex="AlcoholPoisoning2" duration="720" name_key="hangover2" type="staminadown" description_key="hangoverDesc2" tooltip_key="hangoverTooltip2" icon="ui_game_symbol_food_poisoning">
  61. <modify id="0" stat="stamina" amount="-15" rate="1"/>
  62. </buff>
  63.  
  64. <buff id="AlcoholPoisoning2" buffif="beers2 greater 14" debuffif="beers2 less 9" ondebuff="SickDrunk2" name_key="alcoholPoisoning2" type="bleeding" description_key="alcoholPoisoningDesc2" tooltip_key="alcoholPoisoningTooltip2" actions="increment(@wellness, -1, 40, 0, 0);debuff(SickDrunk2);debuff(Hangover2)" icon="ui_game_symbol_critical" stack="extend">
  65. <modify id="0" stat="speedmodifier" modifyMaxValue="8"/>
  66. <modify id="1" stat="speedmodifier" modifyValue="8"/>
  67. <modify id="2" stat="health" amount="-20" rate="2"/>
  68. </buff>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement