• 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 addon system?

Newpy

New Member
Joined
May 5, 2010
Messages
50
Reaction score
1
Hey I'm sorry is this is a lot to ask for but I'm looking for a script for a new way to get addons!

addon.png


1. You put the dragon claw[5919] on the empty coal basin
2. You pull the switch
3. Takes the dragon claw away
4. Gives the player a scroll[7702]

Thank you so much in advance! :D
 
PHP:
local config = {
		claw_pos = {x=122,y=122,z=7,stackpos=255},
		claw_id = 5919,
		get_id = 7702
	}

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.itemid == 9826 then
		return doTransformItem(item.uid,9825)
	end
	local c = getThingFromPos(config.claw_pos)
	if c.itemid == config.claw_id then
		doRemoveItem(c.uid)
		doPlayerAddItem(cid,config.get_id,1)
		doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"You got a scroll! Edit this text.")
	else
		doPlayerSendCancel(cid,"You need to put a dragon claw on the coal bassin.")
	end
	doTransformItem(item.uid,9826)
	return true
end

You just need to edit the position in config. Change it to the pos where the bassin is.
And in items.xml register the script.
 
Back
Top