Untitled

mail@pastecode.io avatar
unknown
lua
2 years ago
287 B
2
Indexable
Never
function onUseWeapon(cid, var)
	local valor = getPlayerStorageValue(cid, storage)

	local typeCombat = isSorcerer(cid) and death or ice
	if valor == 3 then
		typeCombat = earth
	elseif valor == 4 then
		typeCombat = fire
	end

	doCombat(cid, typeCombat, var)
	return true
end