Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. function onAddItem(moveitem, tileitem, position)
  2.  
  3. local config = {
  4. [1] = 2338,     -- left horn
  5. [2] = 2337,     -- right horn
  6. [3] = 2341,     -- helmet adornment
  7. [4] = 2340,     -- helmet piece
  8. [5] = 2336,     -- gem holder
  9. [6] = 2339,     -- damaged helmet
  10. [7] = 2335      -- helmet ornament
  11. }
  12.  
  13. if getThingfromPos({x=33198, y=32876, z=11, stackpos = 2}).uid, config[1] then
  14.  doTransformItem(config, 2342)
  15.   doSendMagicEffect(position, CONST_ME_EXPLOSIONAREA)
  16.    end
  17.   return true
  18.  end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement