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

[Actions] Click trophy and get warmaster addon

YugiNao

Banned User
Joined
Nov 22, 2008
Messages
211
Reaction score
3
Need script when you click on the trophy.
Code:
You see a lizard trophy.
It weighs 12.00 oz.
ItemID: [11330]
You get warmaster addon. :peace:
 
Code:
doPlayerAddOutfit(cid, 336, 3)

Just add that to an action script and if you want the item to be removed after using it then also add

Code:
doRemoveItem(item.uid, 1)
 
Code:
	<action itemid="11330" event="script" value="lizardtrophy.lua"/>
Code:
local t = {
	-- 0 = female, 1 = male
	outfitIDs = {
		[0] = 336,
		[1] = 335
	},
	addonIDs = { -- how many addons should players get
		[0] = 3,
		[1] = 3
	},
	remove = true
}
function onUse(cid, item, fromPosition, itemEx, toPosition)	
	local sex = getPlayerSex(cid)
	if not canPlayerWearOutfit(cid, t.outfitIDs[sex], t.addonIDs[sex]) then
		doPlayerAddOutfit(cid, t.outfitIDs[sex], t.addonIDs[sex])
		doCreatureSay(cid, 'Text', TALKTYPE_ORANGE_1)
		if t.remove then
			doRemoveItem(item.uid)
		end
	else
		doCreatureSay(cid, 'You already have this addon!', TALKTYPE_ORANGE_1, false, cid)
	end
	return true
end
 
Last edited:
Script give no error in console it just say ingame.
Code:
You earn now a warmaster addon!.
but it didn't added the addon or removed the trophy.
 
help me fix it please, i still dont get the addon it just come with a a orange "text" and doesnt do anything else.. To my conclusion my server doesnt support the warmaster addon maybe i have to. Ddd it somewhere else before i can obtain it?
 
Back
Top