• 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!

Hammer script Please

jbh1993

New Member
Joined
Jan 3, 2012
Messages
109
Reaction score
2
The Hammer!​

Ok, well i need a script for something im making in my open tibia server. Ill try and explain it as clear as i can and if you could make this i would be greatly pleased.

Ok, i need a script, when you use a hammer on x25 gem's it will great an item.
I will give you the id's used below.

Tool's
Hammer=4846

Gem's
small sapphire=2146
small emerald=2149
small ruby=2147

Material's
Energy soil=8303
Natural soil=8298
Ice'd Soil=8302

Example when you use the hammer on the gem's.

x25 Small Ruby Creat's x1 Energy Soil
x25 Small Emerald Creat's x1 Natural Soil
x25 Small Sapphire Creat's x1 Ice'd Soil
~If someone could make this for me i will give you a great big Hug ;D~


 
Nope, use hammer on 25 gem's makes big gem.. could use an upgrade script edit it to x25 stacked item's. But yeah im not home an i just needed it
 
Enjoy. :thumbup:

2881h93.png


Lua:
local t = {
	[{2146, 25}] = 8303,
	[{2149, 25}] = 8298
}
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
	for i, k in pairs(t) do
		if(itemEx.itemid == i[1]) then
			if(itemEx.type >= i[2]) then
				doRemoveItem(item.uid, 1)
				doRemoveItem(itemEx.uid, i[2])
				doPlayerAddItem(cid, k, 1, false)
				doSendMagicEffect(getThingPosition(cid), CONST_ME_MAGIC_BLUE)
			else
				doPlayerSendCancel(cid, "You need " .. i[2] .. " " .. getItemInfo(itemEx.itemid).plural .. ".")
			end
		end
	end
	return true
end
 
Last edited:
Could you make me another one kind sir :)

Well i also needed a script when you use the big gem on an item it does this.

Normal~
01:06 You see a mace (Atk:16, Def:11).
It weighs 28.00 oz.

Refine~
01:06 You see a [Refine] mace (Atk:16 +10, Def:11 +10).

[*] one star is refine 2 is unique 3 is elite.
It weighs 28.00 oz.

Now i have a +stone script wich also add's attack/defence if you could make them both work togeather that would be awesome, so if every + gives 2 atk it would look like this

01:06 You see a [Refine] mace +5 (Atk:26 +10, Def:21 +10).

[*] One star is refine 2 is unique 3 is elite.
It weighs 28.00 oz.
 
Back
Top