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

Magic Wall Cutter?

Saints Anathema

Old School Doleran
Joined
Feb 24, 2009
Messages
653
Reaction score
8
Location
BC,Canada
Hello, im looking to make a magic wall cutter for my server even kind of as a test. Currently theres a Wild Growth cutter with this in the actions.xml

Code:
function onUse(cid, item, frompos, item2, topos)
	if item2.itemid == 1499 then
		doRemoveItem(item2.uid)
		doCreatureSay(cid, "Druid got owned!", TALKTYPE_ORANGE_1)
		doTargetCombatHealth(0, cid, COMBAT_FIREDAMAGE, -2000, -3000, CONST_ME_FIRE)
	else 
		return 0
	end
	return 1
end

1487 is the ID for a magic wall,

Possibly someone can just point me in the right direction by explaining

Code:
doRemoveItem(item2.uid)
what item2.uid means
 
item2.uid is the item you are using ON (item.uid would be the item you are using WITH).
but you would have to change this line:
Code:
if item2.itemid == 1499 then
to
Code:
if item2.itemid == 1487 then
and maybe you have to change the line in actions.xml

Yours,
Markey
 
Back
Top