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

Item Article

Colandus

Advanced OT User
Senator
Joined
Jun 6, 2007
Messages
2,434
Solutions
19
Reaction score
219
Location
Sweden
Is it possible to check the items article in TFS? :p I couldn't find it in my itemslist x)
 
Yeah, im looking for it too..couldn't find it in the LUA_FUNCTIONS file that comes with TFS.
 
Just use getArticle(word)
In global.lua there is already:
function getArticle(str)
if string.find(str, "[A,a,E,e,I,i,O,o,U,u,Y,y]") == 1 then
return "an"
end
return "a"
end
 
Well, if that's what I wanted I'd create my own :( But like avenger, it has article "the" :S

Okay, I'll simply create a Lua table with all itemids and their articles then :/
 
Back
Top