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

CreatureEvent [TFS 1.3 / 1.4] Upgrade System

This is not actual fix but more like... walkaround. I believe we could convince players this is the feature rather than poor fix for a bug/glitch... at least that's what i am going to do... nevertheless:

Open Crystals.lua & look for:


copy&paste under it:
LUA:
    if itemType:isUpgradable() and target:getItemLevel() == 0 then
        target:setItemLevel(1, true)
        item:remove(1)
        player:sendTextMessage(MESSAGE_INFO_DESCR, "Item is now unblocked for upgrades.")
        player:getPosition():sendMagicEffect(CONST_ME_FIREWORK_YELLOW)
        return true
    end

Players could use level 0 items just like classic tibia items.
If they want to upgrade them they need to unblock/unlock the item for upgrades.

You could for that purpose use either:
1. item upgrade crystal (as in my code)
2. you could set up a completely new item for unlocking the upgrades.
3. I suck at scripting, coding, programing etc. so i can not guarantee it's going to work. If such a solution works for you please test it & let us know if it works
Thanks ill check that workaround,

I'll check my TFS files im working on 1.4.2 like oen said, could have change some major file on tfs folder that its preventing the table to run, however no errors on console. I just downloaded the github script folder and pasted there. Will check with a clean tfs folder and start from there. events.xml changes were made, not sure where to go next.

Thanks!
 
Coming from you I would already imagine xD
use rookie thread to ask instead of this useless post he took my right to the github despite me paying its quite funny. i should probably report him to paypal for making sales under friends and family for that.
go into config file of the upgrade system look for meele skill and remove WEAPONS_TYPE.DISTANCE from the row or something along the lines
quite funny that you hate rookie for being bad distribution get proven wrong then use it anyways knowing you cant send parcels and it will be just useless piece of sh nekiroen distro
 
use rookie thread to ask instead of this useless post he took my right to the github despite me paying its quite funny. i should probably report him to paypal for making sales under friends and family for that.
go into config file of the upgrade system look for meele skill and remove WEAPONS_TYPE.DISTANCE from the row or something along the lines
I can give you access back, its not like that there are new commits or anything. You already have the files, you leaked all the files, I'm not even supporting or using them.
 
I can give you access back, its not like that there are new commits or anything. You already have the files, you leaked all the files, I'm not even supporting or using them.
Id like if you fixed tooltips to work for trade thats all to be honest so that everyone who bought them get them fully working. instead of Alpha 100$ code
 
Id like if you fixed tooltips to work for trade thats all to be honest so that everyone who bought them get them fully working.
Its not a bug or anything. Its just how they were made. Also no one complained so it was never added.
 
quite funny that you hate rookie for being bad distribution get proven wrong then use it anyways knowing you cant send parcels and it will be just useless piece of sh nekiroen distro
what you mean, i just sent me a parcel with an item with this system and all works fine
I believe we're all about item level 0 from quests, npcs, /i command and so on
use item:setItemLevel(item_level, true) in a script (from a chest or whatever) to set the level, like oen said
 
you cant send parcels
If items delivered through parcel lose their attributes, then its TFS fault for not saving custom attributes in database inbox table. This is Lua only script, I never wanted to touch source for this system, so stuff like this is why it might not work in some TFS distros, also why onEquip onDeequip is done in a hacky way.
 
use rookie thread to ask instead of this useless post he took my right to the github despite me paying its quite funny. i should probably report him to paypal for making sales under friends and family for that.
go into config file of the upgrade system look for meele skill and remove WEAPONS_TYPE.DISTANCE from the row or something along the lines
quite funny that you hate rookie for being bad distribution get proven wrong then use it anyways knowing you cant send parcels and it will be just useless piece of sh nekiroen distro
I don't usually waste my time responding, but anyway. My problem is when someone posts something incomplete or simply takes a distro and throws 50 scripts and when you log in it opens thousands of errors, forcing people to ask, question, flood. If you're going to post something, why don't you post it working? If you don't want to post, why post? And that. Regarding the parcel, I fixed it in 5 minutes, if you want I'll send you the link. Now I'm going to try to fix this shit in @oen's script which according to him "was the way it was built xD"
 
I don't usually waste my time responding, but anyway. My problem is when someone posts something incomplete or simply takes a distro and throws 50 scripts and when you log in it opens thousands of errors, forcing people to ask, question, flood. If you're going to post something, why don't you post it working? If you don't want to post, why post? And that. Regarding the parcel, I fixed it in 5 minutes, if you want I'll send you the link. Now I'm going to try to fix this shit in @oen's script which according to him "was the way it was built xD"
you should take the time to read the code. as long you can understand it (which is not oen's way, is .lua code) you can do whatever you want.

Start by deleting most of the attributes of the system, use at least one or two to see how it goes. Do the same with the enchantment items such as clone items, etc. Just keep the alteration rune, for example. This is a real good base for any system you which to craft, you just have to play with the code, and get used to it (is not necessary to keep the whole code, just use what you need for what you want to achieve). Regards!
 
you should take the time to read the code. as long you can understand it (which is not oen's way, is .lua code) you can do whatever you want.

Start by deleting most of the attributes of the system, use at least one or two to see how it goes. Do the same with the enchantment items such as clone items, etc. Just keep the alteration rune, for example. This is a real good base for any system you which to craft, you just have to play with the code, and get used to it (is not necessary to keep the whole code, just use what you need for what you want to achieve). Regards!
I've already done everything you said. The only solution I found for the bow that didn't come with melee status was instead of weapon_type_distance, filter by the id of the bow and crossbow and deny enchantment for these ids. With chatpgt I spent a few minutes and now it's ok. Now i m dealing with (You see a stonecutter ax 50 30) then you enchant with an enchanting crystal to +1 and... (You see a stonecutter ax 1 1) XD. "Thats the way it was built" lmao.
 
I've already done everything you said. The only solution I found for the bow that didn't come with melee status was instead of weapon_type_distance, filter by the id of the bow and crossbow and deny enchantment for these ids. With chatpgt I spent a few minutes and now it's ok. Now i m dealing with (You see a stonecutter ax 50 30) then you enchant with an enchanting crystal to +1 and... (You see a stonecutter ax 1 1) XD. "Thats the way it was built" lmao.
how about rolling the attribute directly on loot instead of using idenfication item? also, how about not using +1,+2,+3? been using this for a while and shielding is a broken skill to add, for example, to mages. also consider that item level passively upgrades your armor, attack, defense from items. try to think on what can suit best on the server you want to build, this piece of code allows you to do that.

if you don't calculate the variables you're going to use on your server is not worth adding it, some players will see in some attributes something that they can abuse from, for example, if a mage got benefit from too much shielding isn't worth it because physical damage won't affect them and that's broken.
 
Why the hell is people complaining about free stuff?

There's a few outputs here.
1. Use it as it is.
2. Change it as you feel fit.
3. Try to do the same from scrap.

Other than that, feels ungratefull to even complain when we all are getting most of the code written already.
I know many people from this community is not helping anymore because most people are just a whinning ungratefull biatch and thats sad.

Just my two cents. Not trying to offend anyone, so dont get offended.
 
I always tell people who message me and mention this system that if you don't have Lua knowledge, this is not for you. It has flaws, a lot actually (optimization mostly), but its a great base, framework, to work on and create own upgrade system. That's what I did for my server, I wouldn't bother writing entire system from scratch, few optimizations, source integration and I ended up with even more advanced upgrade system.
People who use ChatGPT cause they have no technical understanding of how TFS works and how to code dare to judge me and point out flaws? Ridiculous.
 
This is ChatGPT pretending to be oen
-----------------------------------------------------------
Listen up,

I don't know who you are or what you want. If you’re looking for a perfect system, this isn’t it. But I have a particular set of skills in Lua, skills that make me a nightmare for people like you. If you don’t understand Lua, stay out of it.

Yes, it has flaws, but it’s a solid framework. I’ve optimized and advanced it for my server. There's no point in starting from scratch when you can improve what's already there.

What really pisses me off are clueless morons who don’t know TFS or coding but still judge the system. It's laughable. Without Lua knowledge or technical skills, your opinions are worthless.

I am trained in Lua scripting and TFS development. If you think you can criticize without any real knowledge, think again. I will find you and shut you down. Stick to what you know or learn before spouting nonsense.

For those who understand the complexities, this framework is a goldmine. So unless you have the skills and experience, keep your mouth shut. We’re here to build and improve, not deal with ignorant fools.

LUA:
Best regards,ChatGPT
 
Last edited:
Hey! Seems cool! Does it work on tfs 1.2? I can happily switch to other versions if needed :)
 
Back
Top