• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved Questions about TFS v0.2.14

froie

Expert Mapper
Joined
May 27, 2013
Messages
196
Reaction score
4
Location
Canada
Ok... so just yesturday i started looking for scripts for The Forgotten Server v0.2.14 anything such as addon doll script, item that teleports script, !aol command, !bless command, etc. i found many of them while i was browsing and im sure they work perfectly. but when i did exactly as told to do to get the script working when i would save, and restart the server the commands wouldn't work, same for instance the addon doll i would set the same item id's etc and still nothing :/ so maybe someone can give me a link to a script page for v0.2.14 or someone can help me out with them, and anyone who helps i will gladly REP++
 
Last edited:
Most xml example lines are ment for TFS 0.3.
There are some differences between the ones from TFS 0.3 and TFS 0.2, for example TFS 0.3 uses event and value in the xml line, TFS 0.2 uses script.
What you can do is look at the other lines as example and make the 0.3 lines the same way.
If it is still not working, post the xml lines and I can show you how to make them for TFS 0.2.
 
hmm im not entirely sure what you mean :/ like just to try it out i wanted to get an addon doll script for the item id 9693 (jester doll), i attempted to copy one from another script in my folder that was already there and just change what needed to be changed but i wasnt sure how because none were similar to how an addon doll would work
 
Here is an actions.xml line example from an other script.
TFS 0.2
Code:
<action actionid="2000" [COLOR="#FF0000"]script[/COLOR]="quests/system.lua"/>
TFS 0.3
Code:
<action actionid="2000" [COLOR="#FF0000"]event[/COLOR]="script" [COLOR="#FF0000"]value[/COLOR]="quests/system.lua"/>
As you can see, the way to locate the script is different, using event and value in TFS 0.2 won't work.
 
ok so if i was to put that in the folder and copy the second part from another thread, the part with all the outfits etc, it will work? if i use the first one for tfs 0.2
 
In most xml files it's just the event and value part thats different, so if you change that to script it will work. But for example with movements.
TFS 0.2
Code:
<movevent [COLOR="#FF0000"]event[/COLOR]="StepIn" itemid="293" [COLOR="#FF0000"]script[/COLOR]="decay.lua"/>
TFS 0.3
Code:
<movevent [COLOR="#FF0000"]type[/COLOR]="StepIn" itemid="293" [COLOR="#FF0000"]event[/COLOR]="script" [COLOR="#FF0000"]value[/COLOR]="decay.lua"/>
So what you can do before adding a script, compare it with the other xml lines of that file.
 
Last edited:
ok so here is what i have

under data<talkactions<scripts i have a file name addondoll.lua

LUA:
function onSay(cid, words, param)
 
local itemid = 9693 -- the items id for addon doll
local msg = {"enter the correct name!", "You no have the Addon Doll!", "Bad param!", "You received your addons!"} -- the messages when use the talkaction
 
	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},
	["warmaster"]={336},
	["wayfarer"]={366},
	["afflicted"]={431},
	["elementalist"]={433},
	["deepling"]={464},
	["insectoid"]={466},
	["entrepreneur"]={471},
	["crystal warlord"]={513},
	["soil guardian"]={514} 
 
	} 
	local maleOutfits = 
	{ 
	["citizen"]={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}, 
	["warmaster"]={335}, 
	["wayfarer"]={366},
	["afflicted"]={430},
	["elementalist"]={432},
	["deepling"]={463}, 
	["insectoid"]={465},
	["entrepreneur"]={472},
	["crystal warlord"]={512}, 
	["soil guardian"]={516}
	} 
       local param = string.lower(param) 
       if(getPlayerItemCount(cid, itemid) > 0) then
       if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then
       doPlayerRemoveItem(cid, itemid, 1)
       doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4])
       doSendMagicEffect(getCreaturePosition(cid), 33)
       doSendAnimatedText(getPlayerPosition(cid), "AddonDoll", TEXTCOLOR_RED)
       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
       return TRUE
       end

then under data<actions<actions.xml

i have this

<action actionid="2000" script="talkactions/addondoll.lua"/>

would this be correct or?
 
Last edited by a moderator:
This is a talkaction, so this goes in talkactions.xml
And the xml line would be like this.
XML:
<talkaction words="!addon" script="addondoll.lua"/>
 
after doing this it still wont work i dont understand this at all lmao is the TFS 0.3 easier to use?

i did both of them so far but in the action.xml what should it look like :S so far i have what i posted up there and i dont think thats correct :/
 
actions is for scripts that work with clicking use on an item, you can't add a talkaction scripts (or other kind of scripts) in actions.xml.
If you find a script, the person who made the thread explains where to add it, you can't add it anywhere else.
Only thing you have to look at is the event and value part and change this to script (and look at the other xml lines incase more things are different).
 
Last edited:
alright ill try that and see if anything works :) sorry if im being a pain, im new to this but once i get one done ill get the hang of it im sure :p

- - - Updated - - -

omg it worked !!!!! thank you soo much Limos i am very grateful :D!
REP++
 
Back
Top