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

Request Template Or Script For Npc That Is Depot Box.

GhostX

Mapping Board Moderator
Staff member
Board Moderator
Joined
Nov 2, 2011
Messages
6,050
Reaction score
1,809
Location
UK
Twitch
ghostxpr0
I Guess I May Need more than 1 lua script for this 1 npc?

Is it possible to have an npc be a depot box.

E.g. Deposit Guy: Hello Would You Like To Use Our Services, It Costs 10 Gold?
Player: Yes
And Depot Window Appears As In Normal Tibia..

Is this possible? I don't seem to see why it wouldn't be, but obviously it would need to be like normal, so others can use theirs & even at same time etc.
And if so town specific?. :)

I'm not really experienced with scripts but understand basis of how it works and what certain functions do (guess i should take a few more tutorials and become a Cykotitan wannabe?)

Also, this wouldn't affect performance?
 
Sorry to say, but from what I've experimented, it's not possible. I've used every possible idea to create such an NPC, but there is next to no way. If you are using OTServ it may be possible, but with TFS it's not "barebones" enough. I actually confronted a professional coder about this very script.

Keep in mind, my TFS comment just means that it would be much simpler in OTServ, where as TFS has too many random features that make it more complex to work through.
 
hmm but surely there must be something in the sources like "getdepotstorage" or something... Becuase the depot box has to call up a script, so surely an npc could just be coded in such way to execute that said script and work like a real depot box?? Essentially that is like a bank script/npc.. but for items..

It's a shame if not then :/
 
Honestly, if I did figure it out, I probably wouldn't release it just because there's way too many freebies given out nowadays on OTLand. I can lead you in the right direction, but I won't give you the code. Basically, I was told you want to be looking through the containers.cpp/.h and the actions.cpp/.h
 
hmm that would require a lot of editing and scripting npc wise nevermind sources, etc. Guess it is best to be left, nice idea though.
 
Back
Top