Untitled

 avatar
unknown
lua
2 years ago
287 B
2
Indexable
function onUseWeapon(cid, var)
	local valor = getPlayerStorageValue(cid, storage)

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

	doCombat(cid, typeCombat, var)
	return true
end
Editor is loading...