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

OpenTibia Item Generator (Make items faster)

Ascuas Funkeln

Rakkedo Game
Joined
Apr 14, 2013
Messages
549
Solutions
32
Reaction score
304
Location
Poland
GitHub
AscuasFunkeln
Hello, this is my next shit what i use for faster working :D
Make for 0.3.6 TFS, ( ' ) instead of ( " ) can cause errors in other distro, but for real i dont think so :p
Made with excel, free Gnumeric or other stuff can miss something, i dont test it.
Video how its work. On start make weapon, and 3:15 show how work creating ammo.
This maybe be useful for someone, so enjoy xD
 

Attachments

Nice work!

You can also do it in lua :)
Lua:
local item = {
    id = "1234",
    name = "my item"
}
local itemProperties = {
    description = "this is my item",
    weight = 8,
    attack = 33,
    defense = nil,
    extradef = nil,
    weaponType = nil,
    absorbPercentAll = nil,
    absorbPercentPhysical = nil,
    absorbPercentLifeDrain = nil,
    absorbPercentManaDrain = nil,
    absorbPercentDeath = nil,
    absorbPercentHoly = nil,
    absorbPercentFire = nil,
    absorbPercentIce = nil,
    absorbPercentEnergy = nil,
    absorbPercentEarth = nil,
    speed = nil,
    magiclevelpoints = 2,
    skillFist = nil,
    skillClub = nil,
    skillSword = nil,
    skillAxe = nil,
    skillDist = nil,
    skillShield = 5,
    elementDeath = nil,
    elementHoly = nil,
    elementFire = nil,
    elementIce = nil,
    elementEnergy = nil,
    elementEarth = nil,
}
print('\t<item id="'..item.id..'" name="'..item.name..'">')
for key, value in pairs(itemProperties) do
    if value then
        print('\t\t<attribute key="'..key..'" value="'..value..'" />')
    end
end
print('\t</item>')
Then it prints out.. not perfectly tho, but in the sources it doesn't really matter in what order the data is read.
HTML:
    <item id="1234" name="my item">
       <attribute key="weight" value="8" />
       <attribute key="attack" value="33" />
       <attribute key="skillShield" value="5" />
       <attribute key="magiclevelpoints" value="2" />
       <attribute key="description" value="this is my item" />
   </item>
 
Last edited by a moderator:
Back
Top