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

Lua TFS additem system

Xagul

deathzot.net
Joined
Jun 30, 2008
Messages
1,295
Solutions
3
Reaction score
1,043
Ok so my friend did not know about the new npc function "buy with backpacks" not knowing that he did it the old way and put backpack inside backpack and then went to the npc and bought potions... seeing as this is the new 8.4 client it fills all backpacks regardless of where they are on the person unlike 8.1 and such. He ran into a bug which seemed to crash the server once all your backpacks are full and needs to tell you that your out of cap or if you have ignore cap on it will drop them onto the ground. I then started playing with it and found out that it just lags the server horribly.
He had many backpacks and I decided to try to find out how many backpacks it would take and it turned out to be roughly 20 backpacks inside of each other b4 it lagged the server.
Trying to figure out the reason for this I tried making a lever that when you click, it will give you an item. the same bug occurred using this as well so I have come to the conclusion that its the function "doplayeradditem"
I talked with a few other ot hosts and they said they were having this problem too so I have decided to come on here and see if anyone had a way to resolve this issue.
 
Yes I stayed up for awile playing with different functions and eventualy got a script that works with a lever or other usable item for buying items however when it comes to the new npc system I am lost so I could not implement it into the npc system. If you could lead me in the direction of where in the npc system I can add this it would be awsome, I do not want it done for me because I really want to learn the new npc system and figure out how it works :)
 
Back
Top