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

Upgrade items

Kippetjee

Member
Joined
Jun 17, 2009
Messages
1,197
Reaction score
11
Location
The Netherlands
Got a error on this script when you use the cystal on yourself this error will come

LUA:
[22/01/2011 19:34:30] [Error - Action Interface] 
[22/01/2011 19:34:30] data/actions/scripts/upgrade.lua:onUse
[22/01/2011 19:34:30] Description: 
[22/01/2011 19:34:30] data/actions/scripts/upgrade.lua:87: attempt to compare number with boolean
[22/01/2011 19:34:30] stack traceback:
[22/01/2011 19:34:30] 	data/actions/scripts/upgrade.lua:87: in function <data/actions/scripts/upgrade.lua:85>

[22/01/2011 19:34:40] [Error - Action Interface] 
[22/01/2011 19:34:40] data/actions/scripts/upgrade.lua:onUse
[22/01/2011 19:34:40] Description: 
[22/01/2011 19:34:40] data/actions/scripts/upgrade.lua:87: attempt to compare number with boolean
[22/01/2011 19:34:40] stack traceback:
[22/01/2011 19:34:40] 	data/actions/scripts/upgrade.lua:87: in function <data/actions/scripts/upgrade.lua:85>

LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	toPosition.stackpos = 255
	if isInArray(gain.blocked_ids, itemEx.itemid) == true or getItemWeaponType(itemEx.uid) > 4 or (getItemWeaponType(itemEx.uid) == 0 and isArmor(itemEx) == false) or itemEx.itemid == 0 then
		doPlayerSendTextMessage(cid, 24, "You can't refine this item.")
		return true
	end
 
	if(isCreature(itemEx.uid) == true) then
		return false
	end
 
Last edited:
Back
Top