Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local WeaponBackpack = "Backpack"
- local ReplaceWeapon = 7385
- local ChargeGem = 676
- Module.New("Enchant", function(mod)
- local weapon = Self.Weapon()
- if (weapon.id == 7383) then
- Walker.Stop()
- local ping = Self.Ping()
- local bp = Container.New(WeaponBackpack)
- local spots = {}
- while (Self.Weapon().id == 7383) do
- Self.Equip(ReplaceWeapon, "weapon")
- wait(500 + ping)
- end
- for i = 0, bp:ItemCount() do
- local spot = bp:GetItemData(i)
- if (spot.id == ChargeGem) then
- spots[1] = i
- elseif (spot.id == 7383) then
- spots[2] = i
- end
- end
- if (spots ~= nil) then
- bp:UseItemWithContainerItem(spots[1], bp:Index(), spots[2])
- wait(500 + ping)
- local new = bp:GetItemData(spots[2])
- while (Self.Weapon().id ~= new.id) do
- Self.Equip(new.id, "weapon")
- wait(500 + ping)
- end
- else
- print("weapon and gems must be in the same backpack!")
- end
- Walker.Start()
- end
- mod:Delay(30000)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement