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

TalkAction Addon Dolls!

Seq

Banned User
Joined
May 6, 2009
Messages
87
Reaction score
0
Location
Poland
Download this file:
Addon Dolls by Seq.rar

Skan:
Virustotal. MD5: f7a2b31b3130bbfd520c0d7a78924f26

1.Copy all
from my rar file, and paste that in /your-ots-directory/data/talkactions/scripts

2.Open /your-ots-directory/data/talkactions/ and open talkactions.xml
Copy that:
LUA:
<talkaction words="!firstcitizen" script="first citizen.lua"/>
	<talkaction words="!secondcitizen" script="second citizen.lua"/>
	<talkaction words="!firsthunter" script="first hunter.lua"/>
	<talkaction words="!firstjester" script="first jester.lua"/>
	<talkaction words="!secondhunter" script="second hunter.lua"/>
	<talkaction words="!firstmage" script="first mage.lua"/>
	<talkaction words="!firstknight" script="first knight.lua"/>
	<talkaction words="!firstnobleman" script="first nobleman.lua"/>
	<talkaction words="!firstsummoner" script="first summoner.lua"/>
	<talkaction words="!firstwarrior" script="first warrior.lua"/>
	<talkaction words="!firstbarbarian" script="first barbarian.lua"/>
	<talkaction words="!firstdruid" script="first druid.lua"/>
	<talkaction words="!firstwizard" script="first wizard.lua"/>
	<talkaction words="!firstoriental" script="first oriental.lua"/>
	<talkaction words="!firstpirate" script="first pirate.lua"/>
	<talkaction words="!firstassassin" script="first assassin.lua"/>
	<talkaction words="!firstbeggar" script="first beggar.lua"/>
	<talkaction words="!firstshaman" script="first shaman.lua"/>
	<talkaction words="!firstnorseman" script="first norseman.lua"/>
	<talkaction words="!firstnightmare" script="first nightmare.lua"/>
	<talkaction words="!firstbrotherhood" script="first bro.lua"/>
	<talkaction words="!firstyalaharian" script="first yalaharian.lua"/>
	<talkaction words="!secondmage" script="second mage.lua"/>
	<talkaction words="!secondknight" script="second knight.lua"/>
	<talkaction words="!secondnobleman" script="second nobleman.lua"/>
	<talkaction words="!secondsummoner" script="second summoner.lua"/>
	<talkaction words="!secondwarrior" script="second warrior.lua"/>
	<talkaction words="!secondbarbarian" script="second barbarian.lua"/>
	<talkaction words="!seconddruid" script="second druid.lua"/>
	<talkaction words="!secondwizard" script="second wizard.lua"/>
	<talkaction words="!secondoriental" script="second oriental.lua"/>
	<talkaction words="!secondpirate" script="second pirate.lua"/>
	<talkaction words="!secondassassin" script="second assassin.lua"/>
	<talkaction words="!secondbeggar" script="second beggar.lua"/>
	<talkaction words="!secondshaman" script="second shaman.lua"/>
	<talkaction words="!secondjester" script="second jester.lua"/>
	<talkaction words="!secondnorseman" script="second norseman.lua"/>
	<talkaction words="!secondnightmare" script="second nightmare.lua"/>
	<talkaction words="!secondbrotherhood" script="second bro.lua"/>
	<talkaction words="!secondyalaharian" script="second yalaharian.lua"/>
and paste behind your last talkactions .

Addon Doll id - 8982!
If you wanna change doll name go to /your-ots-directory/data/items/ open items.xml and find
 
Last edited:
You can merge all these files into one. Also, you are missing return TRUE in the end of the script and checking if player have ALREADY addon.

I prefer addon NPC.
 
Eh, this one sucks ! XD
heres better version:
Code:
function onSay(cid, words, param)
	local controls = {
			["citizen"] = {female = 136, male = 128},
			["hunter"] = {female = 137, male = 129}, 
			["mage"] = {female = 138, male = 130}, 
			["knight"] = {female = 139, male = 131}, 
			["noblewoman"] = {female = 140, male = 132},
			["summoner"] = {female = 141, male = 133},
			["warrior"] = {female = 142, male = 134},
			["barbarian"] = {female = 147, male = 143},
			["druid"] = {female = 148, male = 144},
			["wizard"] = {female = 149, male = 145},
			["oriental"] = {female = 150, male = 146},
			["pirate"] = {female = 155, male = 151},
			["assassin"] = {female = 156, male = 152},
			["beggar"] = {female = 157, male = 153},
			["shaman"] = {female = 158, male = 154},
			["norsewoman"] = {female = 252, male = 251},
			["norseman"] = {female = 252, male = 251},
			["nightmare"] = {female = 269, male = 268},
			["jester"] = {female = 270, male = 273},
			["brotherhood"] = {female = 279, male = 278},
			["demonhunter"] = {female = 288, male = 289},
			["yalaharian"] = {female = 324, male = 325}		
	}
	ctrl = controls[param]
	if (ctrl ~= nil) then
		removenugget = doPlayerRemoveItem(cid, 9693, 1)
		if removenugget == 1 then
			doPlayerAddOutfit(cid, ctrl.female, 1)
			doPlayerAddOutfit(cid, ctrl.female, 2)
			doPlayerAddOutfit(cid, ctrl.male, 1)
			doPlayerAddOutfit(cid, ctrl.male, 2)
			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have purchased your set of addons!  Thank you for donating!")
		else
			doPlayerSendCancel(cid, "You do not have enough Addon Doll.")
			doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
		end
	else
	doPlayerSendCancel(cid, "The silent Addon.")
	doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
	end
end

Code:
<talkaction words="!buyaddon" script="buyaddon.lua" />
 
Well rep+ pls :D


I have next one addon dolls :P

LUA:
<talkaction words="!addon" event="script" value="addondoll.lua"/>

and create addondoll.lua folder and paste that:
LUA:
function onSay(cid, words, param)
    local femaleOutfits = { ["citizen"]={136}, ["hunter"]={137}, ["mage"]={138}, ["knight"]={139}, ["noblewoman"]={140}, ["summoner"]={141}, ["warrior"]={142}, ["barbarian"]={147}, ["druid"]={148}, ["wizard"]={149}, ["oriental"]={150}, ["pirate"]={155}, ["assassin"]={156}, ["beggar"]={157}, ["shaman"]={158}, ["norsewoman"]={252}, ["nightmare"]={269}, ["jester"]={270}, ["brotherhood"]={279}, ["demonhunter"]={288}, ["yalaharian"]={324} }
    local maleOutfits = { ["citzien"]={128}, ["hunter"]={129}, ["mage"]={130}, ["knight"]={131}, ["nobleman"]={132},["summoner"]={133}, ["warrior"]={134}, ["barbarian"]={143}, ["druid"]={144}, ["wizard"]={145}, ["oriental"]={146}, ["pirate"]={151}, ["assassin"]={152}, ["beggar"]={153}, ["shaman"]={154}, ["norsewoman"]={251}, ["nightmare"]={268}, ["jester"]={273}, ["brotherhood"]={278}, ["demonhunter"]={289}, ["yalaharian"]={325} }
    local msg = {"Command requires GOOD param!", "You dont have Addon Doll!", "Bad param!", "Full Addon Set sucesfully added!"}
    local param = string.lower(param) 

    if(getPlayerItemCount(cid, 8982) > 0) then
        if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then
            doPlayerRemoveItem(cid, 8982, 1)
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4])
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
            if(getPlayerSex(cid) == 0)then
              doPlayerAddOutfit(cid, femaleOutfits[param][1], 3)
            else
              doPlayerAddOutfit(cid, maleOutfits[param][1], 3)
            end
        else
          doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])
        end
    else
      doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
    end
end

This is not mine script but i was edit that :P
 
this script doesn't work i have tfs 0.2.0 [8.42]
help me plz , but plz fast msg here !:(
 
The first script is doesn't working on TFS 0.3.4 , Try that second on page 2 .
 
Back
Top