SHARE
TWEET

Untitled

a guest Jul 17th, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function onUse(cid, item, fromPosition, itemEx, toPosition)
  2.  
  3. local ores = {
  4.     [11672] = 11682
  5. }
  6. local bars = {
  7.     [11682] = 11682
  8. }
  9.  
  10. -- Cooper Ores // Script --
  11.     if (itemEx.itemid == 11672) then
  12.         doTransformItem(itemEx.itemid, 11682)
  13.         doSendMagicEffect(fromPosition, 15)
  14.         doSendMagicEffect(toPosition, 13)
  15.         doSendAnimatedText(fromPosition, "~Smelted", 192)
  16.     elseif(getPlayerItemCount(item.itemid, 11672) < 2) then
  17.         doPlayerSendCancel(cid, 'You must have a pair of cooper ores to do this.')
  18.         return true
  19.     end
  20.    
  21.     return false
  22. end
RAW Paste Data
Top