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

Lua help out!

tompan

Member
Joined
Dec 13, 2008
Messages
646
Reaction score
23
Location
Sweden
Code:
function onUse(cid, item, frompos, item2, topos)
	if topos.x == 65535 or not(topos.x == 538 and topos.y == 751 and topos.z == 11) then
		doPlayerSendCancel(cid, 'Put the metal on the anvil first.')
		return 1
	end
 
	doSendMagicEffect(topos, 2)
	if item2.itemid == 2225 then
		doTransformItem(item2.uid, 2088)
		return 1
	end
end


i want the key to get a action id..
 
Warning: [Event::loadScript] Can not load script. data/actions/scripts/blacksmith.lua
data/actions/scripts/blacksmith.lua:11: ')' expected (to close '(' at line 10) near 'return'
 
Back
Top