• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action Obsidian Knife for Neutral Matter

RazorBlade

Retired Snek
Joined
Nov 7, 2009
Messages
2,015
Solutions
3
Reaction score
629
Location
Canada
Hey everyone, I decided to make the obsidian knife work for the lord of the elements so that you always get neutral matter, just like in real Tibia. Although it can only be skinned once because I set it up so that once skinned, it changes from 9009 to 9010 which can not be skinned. I also didn't use storage values because if the lord of the elements is going to be used, chances are he's going to be part of a quest you can only do once or in an area you can't access after killing him. If someone wants me to add storage values so multiple people can skin it rather than it changing to 9010, I'll add it as well. I hope it helps someone because I needed it, and I assume at least one other person might need it too. Here's what I have:

Code:
local corpse = {9009}
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if isInArray(corpse, itemEx.itemid) == TRUE then
			doPlayerAddItem(cid, 8310, 1)
			doTransformItem(itemEx.uid, itemEx.itemid + 1)
			doDecayItem(itemEx.uid)
			doSendMagicEffect(toPosition, CONST_ME_BLOCKHIT)
		else
			doPlayerSendCancel(cid, "You can not use this object.")
	end
		return TRUE
end
return FALSE

Thanks in advance :thumbup:
 
Last edited:
Alrighty. Now I have a working script. Huzza. Now with that I can recreate it and make the blessed wooden stake work for demons and vampires. Hopefully I'll learn something new. Thanks. I'm still only a junior scripter. Haven't been doing it very long. Did a couple minor scripts over the summer and did some Visual Basic programming for school last year. (High School isn't as boring as I thought)
 
Last edited:
Back
Top