Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(_root.save.inventorySubtype[k] == "Weapon Mystery Enhancer")
- {
- _root.save.inventoryBonusPow[k] = _root.save.inventoryBonusPow[k] + 500;
- typeX = random(5) + 1;
- if(typeX == 1)
- {
- _root.save.inventorySubtype[k] = "Weapon Attack Enhancer";
- _root.save.inventoryAttack[k] = _root.save.inventoryAttack[k] * 5;
- }
- if(typeX == 2)
- {
- _root.save.inventorySubtype[k] = "Weapon Defense Enhancer";
- _root.save.inventoryAttack[k] = _root.save.inventoryAttack[k] * 12;
- }
- if(typeX == 3)
- {
- _root.save.inventorySubtype[k] = "Weapon Critical Enhancer";
- }
- if(typeX == 4)
- {
- _root.save.inventorySubtype[k] = "Weapon Dexterity Enhancer";
- }
- if(typeX == 5)
- {
- _root.save.inventorySubtype[k] = "Weapon Health Enhancer";
- }
- }
- if(_root.save.inventorySubtype[k] == "Armor Mystery Enhancer")
- {
- _root.save.inventoryBonusPow[k] = _root.save.inventoryBonusPow[k] + 500;
- typeX = random(5) + 1;
- if(typeX == 1)
- {
- _root.save.inventorySubtype[k] = "Armor Attack Enhancer";
- _root.save.inventoryAttack[k] = _root.save.inventoryAttack[k] * 2;
- }
- if(typeX == 2)
- {
- _root.save.inventorySubtype[k] = "Armor Defense Enhancer";
- _root.save.inventoryAttack[k] = _root.save.inventoryAttack[k] * 5;
- }
- if(typeX == 3)
- {
- _root.save.inventorySubtype[k] = "Armor Critical Enhancer";
- }
- if(typeX == 4)
- {
- _root.save.inventorySubtype[k] = "Armor Dexterity Enhancer";
- }
- if(typeX == 5)
- {
- _root.save.inventorySubtype[k] = "Armor Health Enhancer";
- }
- }
- }
- else if(_root.save.inventorySubtype[j] == "Weapon Mystery Enhancer")
- {
- _root.save.inventoryEnhance[k] = _root.save.inventoryEnhance[k] + 1;
- if(_root.save.inventoryEnhance[k] == 10)
- {
- _root.save.arenaMaxEnhance = _root.save.arenaMaxEnhance + 1;
- }
- if(_root.save.inventoryAttack[k] != 0)
- {
- typeX = random(5) + 1;
- }
- else
- {
- typeX = random(4) + 2;
- }
- if(typeX == 1)
- {
- _root.save.inventoryAttack[k] = _root.save.inventoryAttack[k] + pow * 5;
- _root.save.inventoryBonusPow[k] = _root.save.inventoryBonusPow[k] + pow * 5;
- }
- if(typeX == 2)
- {
- _root.save.inventoryDefense[k] = _root.save.inventoryDefense[k] + pow * 12;
- _root.save.inventoryBonusPow[k] = _root.save.inventoryBonusPow[k] + pow * 5;
- }
- if(typeX == 3)
- {
- _root.save.inventoryCrit[k] = _root.save.inventoryCrit[k] + pow;
- _root.save.inventoryBonusPow[k] = _root.save.inventoryBonusPow[k] + pow * 5;
- }
- if(typeX == 4)
- {
- _root.save.inventoryDexterity[k] = _root.save.inventoryDexterity[k] + pow;
- _root.save.inventoryBonusPow[k] = _root.save.inventoryBonusPow[k] + pow * 5;
- }
- if(typeX == 5)
- {
- _root.save.inventoryHealth[k] = _root.save.inventoryHealth[k] + pow;
- _root.save.inventoryBonusPow[k] = _root.save.inventoryBonusPow[k] + pow * 5;
- }
- }
- else if(_root.save.inventorySubtype[j] == "Armor Mystery Enhancer")
- {
- _root.save.inventoryEnhance[k] = _root.save.inventoryEnhance[k] + 1;
- if(_root.save.inventoryEnhance[k] == 10)
- {
- _root.save.arenaMaxEnhance = _root.save.arenaMaxEnhance + 1;
- }
- typeX = random(5) + 1;
- if(typeX == 1)
- {
- _root.save.inventoryAttack[k] = _root.save.inventoryAttack[k] + pow * 2;
- _root.save.inventoryBonusPow[k] = _root.save.inventoryBonusPow[k] + pow * 5;
- }
- if(typeX == 2)
- {
- _root.save.inventoryDefense[k] = _root.save.inventoryDefense[k] + pow * 5;
- _root.save.inventoryBonusPow[k] = _root.save.inventoryBonusPow[k] + pow * 5;
- }
- if(typeX == 3)
- {
- _root.save.inventoryCrit[k] = _root.save.inventoryCrit[k] + pow;
- _root.save.inventoryBonusPow[k] = _root.save.inventoryBonusPow[k] + pow * 5;
- }
- if(typeX == 4)
- {
- _root.save.inventoryDexterity[k] = _root.save.inventoryDexterity[k] + pow;
- _root.save.inventoryBonusPow[k] = _root.save.inventoryBonusPow[k] + pow * 5;
- }
- if(typeX == 5)
- {
- _root.save.inventoryHealth[k] = _root.save.inventoryHealth[k] + pow;
- _root.save.inventoryBonusPow[k] = _root.save.inventoryBonusPow[k] + pow * 5;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement