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

[TFS 1.X] Pet System - Scripters, I challange you to make it together!

What's point of storing these things in tables?
Player's storage/item's description or sql entries are better.

Anyway. Anyone still interested?
I want to write it myself(and post it as always ofc).
What do you think about these talkaction parameters(what should be changed?):
Code:
/pet "name", params
/pet id, params
/pet help -- parameters
/pet list -- list of pets with id, name and max amount of pets

parameters:
call -- call/remove from map
name -- tfs doesn't support that yet, but can be used as reference
attack, "target" -- if no target specified - summon AI
info -- name, id, stats, exp, level
pick, slot -- let's say the pet has max 4 slots, you decide which one is used, applies only when a pet has slots
drop, slot -- drop item to the ground
mount -- ride if mountable, pet AI would be synced with player's behavior
give, "itemname", slot -- put something from your eq in your pet's inventory
take, slot -- get it back
move, direction -- move if possible
say, message -- orange text

Yeah, I know the thread is old, golden shovel to me pls.
 
I think you shouldn't write it and let someone else try, this shit is too easy for you and your making it too easy for everyone else.. time to pass the torch.
 
What's point of storing these things in tables?
Player's storage/item's description or sql entries are better.

Anyway. Anyone still interested?
I want to write it myself(and post it as always ofc).
What do you think about these talkaction parameters(what should be changed?):
Code:
/pet "name", params
/pet id, params
/pet help -- parameters
/pet list -- list of pets with id, name and max amount of pets

parameters:
call -- call/remove from map
name -- tfs doesn't support that yet, but can be used as reference
attack, "target" -- if no target specified - summon AI
info -- name, id, stats, exp, level
pick, slot -- let's say the pet has max 4 slots, you decide which one is used, applies only when a pet has slots
drop, slot -- drop item to the ground
mount -- ride if mountable, pet AI would be synced with player's behavior
give, "itemname", slot -- put something from your eq in your pet's inventory
take, slot -- get it back
move, direction -- move if possible
say, message -- orange text

Yeah, I know the thread is old, golden shovel to me pls.

Why do you feel that sql queries are better than lua tables?
 
You are able to save items your pet carries with all attributes this way.

@Jotran
Stop me then.
Don't worry, you have plenty of time to write it before I do because scripting params is easy but requires a lot of work.
 
Last edited:
What's point of storing these things in tables?
Player's storage/item's description or sql entries are better.

Anyway. Anyone still interested?
I want to write it myself(and post it as always ofc).
What do you think about these talkaction parameters(what should be changed?):
Code:
/pet "name", params
/pet id, params
/pet help -- parameters
/pet list -- list of pets with id, name and max amount of pets

parameters:
call -- call/remove from map
name -- tfs doesn't support that yet, but can be used as reference
attack, "target" -- if no target specified - summon AI
info -- name, id, stats, exp, level
pick, slot -- let's say the pet has max 4 slots, you decide which one is used, applies only when a pet has slots
drop, slot -- drop item to the ground
mount -- ride if mountable, pet AI would be synced with player's behavior
give, "itemname", slot -- put something from your eq in your pet's inventory
take, slot -- get it back
move, direction -- move if possible
say, message -- orange text

Yeah, I know the thread is old, golden shovel to me pls.

Looking good from where I'm sitting, looking forward to it. :cool:

Oh, here you are...
latest
... Hmm...
latest
? o_O

Kind Regards,
Eldin.
 
oh yea.. that is indeed true. how to perma-store creature data? globalstorage is not in the database anymore in TFS 1.0 which is a bummer.

If I were you, and you play not to do much C++, I mean so you'll be able to switch engine whenever a newer is released, you could make global-storages by lua functions.
Create a lua function in your globals, create a table in the database for the events.

From there you could name the functions just as they were named earlier.
getGlobalStorage(id) and setGlobalStorage(id, new_value)
And have it execute mysql queries :)
 
I used it in my evo datapack. Queries to create tables for globalstorage are in last page of that thread.

Edit:
Okay guys. I'm open to your suggestions.
What pets you would like to see in this script?
 
Last edited:
@Jotran
Stop me then.
Don't worry, you have plenty of time to write it before I do because scripting params is easy but requires a lot of work.
I can't stop you, but I also have no time to bother trying, but your efforts aren't helping this community either..
You just don't get it do you, all your doing is making things easier on the hosters who are just in it for the money by allowing them to update their servers to the latest distro's instead of 8.6 servers being renowned for being full of bots now the 10.41 or later will be full of botters as well.

Your not helping anyone learn the framework at all, all your doing is contributing to the decline of this community if you want to call it that everyday there is about 500 - a thousand people online whether they are registered or not and maybe a small percent of 1% of that number are people who actually contribute or share ideas.

But the rest are here for request or free scripts they can make money off of.. outside of these forums is the real world where people will gladly take full advantage of this 'community' where they are not mandated to know anything at all.

Imagine if all the open source technologies that exist didn't require the people who use them to learn anything about them, imagine where they would be today?

If you want to this community to shrivel up and die.. pls continue
 
Last edited:
@Jotran
He is helping himself obtain more knowledge, that is enough for me.
People who do not want to learn will not do so either just because you force them.
I do scripting because it is fun for myself and I could not care less about the people that use any of my work that I released for free, because I did so willingly.
Stop bitching about people doing their thing, you may just not release stuff and it is fine.
 
Back
Top