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

Help @Addon for donation.

Mowgley91

New Member
Joined
Apr 29, 2008
Messages
11
Reaction score
0
Does anyone know how to insert first/second for a specified addon as donation?

Thanks in advance!
 
That's an example for hunter addon
Code:
function onUse(cid, item, frompos, item2, topos)
		if getPlayerStorageValue(cid,11552) < 1 then
			doPlayerAddOutfit(cid, 129, 3) -- 1 = Addon1 2 = Addon2 3 = both addons
			doPlayerAddOutfit(cid, 137, 3)
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have received Hunter Addons.")
			doSendMagicEffect(getCreaturePosition(cid), 14)
			setPlayerStorageValue(cid, 11552, 1)
		else
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have already done this quest.")
		end
	return 1
end
 
Back
Top