BBot - The best bot of the world
rings on/off - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Scripts & Macros (https://forums.bmega.net/forum-4.html)
+--- Forum: Requests (https://forums.bmega.net/forum-17.html)
+--- Thread: rings on/off (/thread-5265.html)



rings on/off - manahan - 11-08-2012

Would it be possible to create a script to put on-take off life and ring of healing based on mana?
also putting on and taking of sword ring based on specific creature attacking?
thanks for the help guys, successful script writing eludes me. Sad


RE: rings on/off - spiff26 - 11-13-2012

Code:
1000 {equip ring} Ring:=ID_Ring Mana:=ManaToUseRing Self.Mana()<=!Mana! [unequip] Status.InPZ()==0 [unequip] Self.Inventory.Ring.Count()==0 Self.Equip.Ring(!Ring!) Exit() {unequip} Self.UnEquip.Ring(0) Exit()
Change ID_Ring and ManaToUseRing

Code:
1000 {equip sword ring} Ring:ID_SwordRing Self.Attacking()==1 Target.NameIn(Name,Name)==1 [unequip] Self.Equip.Ring(!Ring!) Exit() {unequip} Self.UnEquip.Ring(0) Exit()
Change ID_SwordRing and Target.NameIn(Name,Name) by name of monsters, like Target.NameIn(Dragon,Dragon Lord,Frost Dragon)