Jump to content
  • 0

[Pedido] Summon Ring


Jefferson14789

Question

2 answers to this question

Recommended Posts

  • 0

Vamos lá, as tags do movements.xml:

	<movevent type="Equip" itemid="2210" slot="ring" event="script" value="ringsummon.lua"/>
	<movevent type="DeEquip" itemid="2210" slot="ring" event="script" value="ringsummon.lua"/>

O arquivo LUA:

local monster = "Skeleton"
tsummon = {}



function onDeEquip(cid, item, slot)
	if tsummon[cid] then
		doRemoveCreature(tsummon[cid])
		tsummon[cid] = nil
	end
	return true
end

function onEquip(cid, item, slot)
	if not tsummon[cid] then
		tsummon[cid] = doSummonCreature(monster, getThingPos(cid))
		doConvinceCreature(cid, tsummon[cid])
	end
	return true
end



Só altere o local monster = "Skeleton" com o nome do monstro que irá sumonar.

Edited by Antharaz
Link to comment
Share on other sites

×
×
  • Create New...