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

Addons reward [Text]

chackie

New Member
Joined
Nov 1, 2009
Messages
87
Reaction score
0
Hello i got this script:
Code:
local t = {
	[12001] = 'Citizen',
	[12002] = 'Hunter',
	[12003] = 'Mage',
	[12004] = 'Knight',
	[12005] = 'Nobleman',
	[12006] = 'Summoner',
	[12007] = 'Warrior',
	[12008] = 'Barbarian',
	[12009] = 'Druid',
	[12010] = 'Wizard',
	[12011] = 'Oriental',
	[12012] = 'Pirate',
	[12013] = 'Assassin',
	[12014] = 'Beggar',
	[12015] = 'Shaman',
	[12016] = 'Norse',
	[12017] = 'Nightmare',
	[12018] = 'Jester',
	[12019] = 'Brotherhood',
	[12020] = 'Demonhunter',
	[12021] = 'Yalaharian',
	[12022] = 'Warmaster'
}
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if not canPlayerWearOutfitId(cid, item.uid - 12000, 3) then
		doCreatureSay(cid, 'You now have the ' ..t[item.uid] .. ' Addons!', TALKTYPE_ORANGE_1)
		doPlayerAddOutfitId(cid, item.uid - 12000, 3)
		doSendMagicEffect(getThingPos(cid), math.random(67))
	else
		doCreatureSay(cid, 'You already have the ' .. t[item.uid] .. ' Addons!', TALKTYPE_ORANGE_1, false, cid)
	end
	return true
end

.xml
Code:
        <action uniqueid="12001-12022" event="script" value="other/addonsq.lua"/>

Its suppose to give a player addon when clicking on a object example "statue". But nothing happen in my OT. Im using TFS 0.4. Mabey wrong with the script. Can someone here fixed it. Please. :)
I do have free premiums ON in config.lua, just so you know.

EDIT:
It works. BUT it dosent show text


Thanks
 
Last edited:

Similar threads

Back
Top