Advertisement
Guest User

KANDYMAN KURWAAAAA

a guest
May 3rd, 2015
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.18 KB | None | 0 0
  1. local WeaponBackpack = "Backpack"
  2. local ReplaceWeapon = 7385
  3. local ChargeGem = 676
  4.  
  5. Module.New("Enchant", function(mod)
  6.     local weapon = Self.Weapon()
  7.     if (weapon.id == 7383) then
  8.         Walker.Stop()
  9.         local ping = Self.Ping()
  10.         local bp = Container.New(WeaponBackpack)
  11.         local spots = {}
  12.         while (Self.Weapon().id == 7383) do
  13.             Self.Equip(ReplaceWeapon, "weapon")
  14.             wait(500 + ping)
  15.         end
  16.         for i = 0, bp:ItemCount() do
  17.             local spot = bp:GetItemData(i)
  18.             if (spot.id == ChargeGem) then
  19.                 spots[1] = i
  20.             elseif (spot.id == 7383) then
  21.                 spots[2] = i
  22.             end
  23.         end
  24.         if (spots ~= nil) then
  25.             bp:UseItemWithContainerItem(spots[1], bp:Index(), spots[2])
  26.             wait(500 + ping)
  27.             local new = bp:GetItemData(spots[2])
  28.             while (Self.Weapon().id ~= new.id) do
  29.                 Self.Equip(new.id, "weapon")
  30.                 wait(500 + ping)
  31.             end
  32.         else
  33.             print("weapon and gems must be in the same backpack!")
  34.         end
  35.         Walker.Start()
  36.     end
  37.     mod:Delay(30000)
  38. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement