Username: Password:

Author Topic: [Share] Switch weapon 149 (and others weapons)  (Read 4040 times)

Offline MikeOwh

  • Administrator
  • Wolf
  • *****
  • Posts: 156
  • Cookies 10001
  • The DemonLord himself.
    • View Profile
    • OwhTool
[Share] Switch weapon 149 (and others weapons)
« on: May 19, 2020, 02:53:09 AM »
Script used to avoid consuming points in weapon 149 (can also be used for other unlimited weapons). The user sets the values ​​to perform the weapon change: Mob, Mob% and Skills.

Youtube video:


IMPORTANT: If you use this script, you don't use the "BOT Switch Weapon".






-Write here the percentage you want, when the mob's HP is less than "x"%, the BOT will change to the "Main Weapon".

     Example:
          Percent = 50




-The format must be -> 'Mob name': %
-If you want, delete "Percent" and write a different % to each mobs.
     Example:
          { 'Troll': 35, 'Minotaur': 45 }








-If you write -1 in the percentage, the BOT will not change weapons.
     Example:
          { 'Forgotten': -1, 'Ghost': -1 }









-Here you must write the ID of each weapon, if you don't know the ID and don't want use that weapon, just leave it as is.






-Last but not least, you must indicate when it will change  weapon considering if the skills are activated or not.



Example 1: Weapon 149 will only be used when both skills are disabled.
     SkillLeft = 0
     SkillRight = 0

Example 2: Weapon 149 will only be used when both skills are disabled or only the left skill is enabled.

     SkillLeft = 1
     SkillRight = 0

Example 3: Weapon 149 will only be used when both skills are disabled or only the right skill is enabled.

     SkillLeft = 0
     SkillRight = 1

Example 4: Weapon 149 will always be used and skills will not be considered.

     SkillLeft = 1
     SkillRight = 1
« Last Edit: August 27, 2020, 04:22:30 PM by DemonLord »



Offline Ibrahim6alsayed

  • Bug
  • *
  • Posts: 7
  • Cookies 0
  • I love Mindee-BOT!
    • View Profile
Re: [Share] Switch weapon 149 (and others weapons)
« Reply #1 on: June 05, 2020, 05:02:12 AM »
 [what?] wpn 149 will never decrease anymore?


Other question!! Can i use that script with with other script!
For example my char on script hunting  and gogorus and doratia script
Can i  add the code of this 149 change wpn script ! So the char hunt and quests gogorus and doratia and in the same time change wpn of 149!!!
« Last Edit: June 05, 2020, 05:08:41 AM by Ibrahim6alsayed »

Offline MikeOwh

  • Administrator
  • Wolf
  • *****
  • Posts: 156
  • Cookies 10001
  • The DemonLord himself.
    • View Profile
    • OwhTool
Re: [Share] Switch weapon 149 (and others weapons)
« Reply #2 on: June 05, 2020, 08:16:25 PM »
Wpn 149 will never decrease anymore?
There is always a risk of lowering points, in the video no point goes down.  But it depends on the configuration (%, skills).

Can i use that script with with other script!
You can do it yourself by pasting it into my script, be sure to put everything from “onScriptActivation()” into the one that is already there.  And don't use Switch weapon from BOT settings.  Anyway in the next G+D+R+H scripts, this script will be added to it.
« Last Edit: June 05, 2020, 08:18:16 PM by DemonLord »

Offline MikeOwh

  • Administrator
  • Wolf
  • *****
  • Posts: 156
  • Cookies 10001
  • The DemonLord himself.
    • View Profile
    • OwhTool
Re: [Share] Switch weapon 149 (and others weapons)
« Reply #3 on: August 05, 2020, 05:41:23 PM »
Update:
-Now it will switch to the main weapon when activated the skills (which you don't want) before reaching the mob. Good for those who kill a mob in one hit.

Offline dragonatter

  • Bug
  • *
  • Posts: 13
  • Cookies 0
  • I love Mindee-BOT!
    • View Profile
Re: [Share] Switch weapon 149 (and others weapons)
« Reply #4 on: November 05, 2020, 10:18:31 PM »
the script doesn't run for me.

Code: [Select]
###############################################

#DON'T USE SWITCH WEAPON OF BOT SETTINGS
# Switch to the main weapon when the mob's hp is less than:
    Percent = 50

# Mobs names corresponding to each weapon:
# 'Mob name': % at which script should switch weapon.
# If you want, delete "Percent" and write a different % to each mobs.
# "MobsMainWeapon" It is so as not to change weapon 149.
# % = -1  | Means, don't switch to weapon.
    MobsMainWeapon = { 'Mob': -1, 'Mob': -1 }
    MobsWeaponIce = { 'Krakomin': Percent, 'Darktaur': Percent }
    MobsWeaponFire = { 'Krakomin': Percent, 'Tyrannix': Percent }
    MobsWeaponHit = { 'Mob': Percent, 'Mob': Percent }
    MobsWeaponSoul = { 'Mob': -1, 'Mob': -1 }
    MobsWeaponElectric = { 'Mob': Percent, 'Mob': Percent }

    # Weapons IDs
    MainWeapon = 5593
    Weapon149Ice = 5298
    Weapon149Fire = 5296
    Weapon149Hit = 5294
    Weapon149Soul = 5300
    Weapon149Electric = 5302

    # Switch to weapon 149 even with skills activated  (Yes/No | 1/0)
    #  Or both are deactivated:
    SkillLeft = 1
    SkillRight = 1

Offline =Mindee=

  • Commander Shepard
  • BOT Developer Administrator
  • Dragon
  • *****
  • Posts: 2,788
  • Cookies 9020
  • We'll bang, OKAY?
    • View Profile
    • http://mindee-bot.com
Re: [Share] Switch weapon 149 (and others weapons)
« Reply #5 on: November 05, 2020, 10:47:57 PM »
the script doesn't run for me.

Code: [Select]
###############################################

#DON'T USE SWITCH WEAPON OF BOT SETTINGS
# Switch to the main weapon when the mob's hp is less than:
    Percent = 50

# Mobs names corresponding to each weapon:
# 'Mob name': % at which script should switch weapon.
# If you want, delete "Percent" and write a different % to each mobs.
# "MobsMainWeapon" It is so as not to change weapon 149.
# % = -1  | Means, don't switch to weapon.
    MobsMainWeapon = { 'Mob': -1, 'Mob': -1 }
    MobsWeaponIce = { 'Krakomin': Percent, 'Darktaur': Percent }
    MobsWeaponFire = { 'Krakomin': Percent, 'Tyrannix': Percent }
    MobsWeaponHit = { 'Mob': Percent, 'Mob': Percent }
    MobsWeaponSoul = { 'Mob': -1, 'Mob': -1 }
    MobsWeaponElectric = { 'Mob': Percent, 'Mob': Percent }

    # Weapons IDs
    MainWeapon = 5593
    Weapon149Ice = 5298
    Weapon149Fire = 5296
    Weapon149Hit = 5294
    Weapon149Soul = 5300
    Weapon149Electric = 5302

    # Switch to weapon 149 even with skills activated  (Yes/No | 1/0)
    #  Or both are deactivated:
    SkillLeft = 1
    SkillRight = 1

Because you messed up indention. There should be no spaces before MobsMainWeapon and so on.


Mindee-BOT creator, founder and developer.

Offline dragonatter

  • Bug
  • *
  • Posts: 13
  • Cookies 0
  • I love Mindee-BOT!
    • View Profile
Re: [Share] Switch weapon 149 (and others weapons)
« Reply #6 on: November 05, 2020, 11:09:47 PM »
Code: [Select]
###############################################
# Made by Mindee and DemonLord  2020
###############################################

#DON'T USE SWITCH WEAPON OF BOT SETTINGS
# Switch to the main weapon when the mob's hp is less than:
Percent = 50

# Mobs names corresponding to each weapon:
# 'Mob name': % at which script should switch weapon.
# If you want, delete "Percent" and write a different % to each mobs.
# "MobsMainWeapon" It is so as not to change weapon 149.
# % = -1  | Means, don't switch to weapon.
MobsMainWeapon = { 'Mob': -1, 'Mob': -1 }
MobsWeaponIce = { 'Bullwar': Percent, 'Darktaur': Percent }
MobsWeaponFire = { 'Krakomin': Percent, 'Tyrannix': Percent }
MobsWeaponHit = { 'Mob': Percent, 'Mob': Percent }
MobsWeaponSoul = { 'Mob': -1, 'Mob': -1 }
MobsWeaponElectric = { 'Mob': Percent, 'Mob': Percent }

# Weapons IDs
MainWeapon = 5593
Weapon149Ice = 5298
Weapon149Fire = 5296
Weapon149Hit = 5294
Weapon149Soul = 5300
Weapon149Electric = 5302

# Switch to weapon 149 even with skills activated  (Yes/No | 1/0)
#  Or both are deactivated:
SkillLeft = 1
SkillRight = 1



my bad. still not working

Offline dragonatter

  • Bug
  • *
  • Posts: 13
  • Cookies 0
  • I love Mindee-BOT!
    • View Profile
Re: [Share] Switch weapon 149 (and others weapons)
« Reply #7 on: November 06, 2020, 07:14:25 PM »
Is this the entire code? Are there no functions, no events, no nothing? I can NOT make it work...

Offline dragonatter

  • Bug
  • *
  • Posts: 13
  • Cookies 0
  • I love Mindee-BOT!
    • View Profile
Re: [Share] Switch weapon 149 (and others weapons)
« Reply #8 on: November 07, 2020, 03:13:16 PM »
Lol. I am an idiot. You have left so much space between the beginning of the code and the rest, I didn't even see it. I only pasted the first bit. It works now.
However, i want to only use 149 holy against the forgottens, not use the script. That is because the forgottens are imun to any other element apart from holy. So how do i make the bot only use the 149 holy against the forgottens?
« Last Edit: November 07, 2020, 03:48:28 PM by dragonatter »