• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Forge Script Rep+++

masterjojje

Tibia geek! :D
Joined
Feb 10, 2009
Messages
159
Reaction score
1
Location
Sweden
Hello I need a forge script for my ot, its like if you got for example spike sword and you want to upgrade to bright sword then you need spike sword+blood crystal and you put them on like this
mm_7.jpg
I would also like so I can add more items into the script like bright sword to magic sword etc. I would really appreciate this and give rep+ Thanks :)
 
lol!!! this reminds me of something hmmm..... i just cant put my finger on it. what r the id's of everything?
 
Example:
LUA:
local cfg = {
        pos = {x=1,y=2,z=3}, -- position
        item = 6594,  -- supposes spike sword
        additem = 2654 -- add item if go to switch
}

function onUse(cid, item, frompos, item2, topos)

if doRemovePlayerItem (cid,cfg.item) then
   doPlayerAddItem(cfg.pos,cfg.additem)
      doSendMagicEffect(cid, CONST_ME_POFF)
      doSendMagicEffect(cfg.pos, CONST_ME_POFF)
      doTransform(item.uid, 1946)
      doPlayerSendCancel(cid, "Forged Susfully.")
      else
      doSendMagicEffect(cid, CONST_ME_POFF)
      doSendMagicEffect(cfg.pos, CONST_ME_POFF)
      doPlayerSendCancel(cid, "You dont forge this item.")
   return TRUE 
  end
 
Back
Top