Night Wolf
I don't bite.
- Joined
- Feb 10, 2008
- Messages
- 582
- Solutions
- 8
- Reaction score
- 930
- Location
- Spain
- GitHub
- andersonfaaria
I can't edit the first message but just a disclaimer that I forgot to add:
The reason for this topic is to show a few possibilities, it's to share ideas rather than code tricks, code style or code efficiency.
Some of the things here are just "detail-oriented"adjustments on existing functions/systems, they don't bring anything new except to remind us all to pay attention to small details.
Most of the scripts were created several years ago, when we just had TFS 1.0 (6 years ago, maybe?). By then we didn't had the architecture that we have today and I wasn't so familiar with metamethods either, so lots of functions are compat based (tfs 0.x).
Of course some of the npcs/actions/spells here will work if you copy/paste in your server and adjust the XML tags, however I highly advise you to remake the idea considering cleaner cone and better code styles. Some redundancies can be eliminated.
I don't have a server anymore but I'll try to add screenshots/gifs later.
The reason for this topic is to show a few possibilities, it's to share ideas rather than code tricks, code style or code efficiency.
Some of the things here are just "detail-oriented"adjustments on existing functions/systems, they don't bring anything new except to remind us all to pay attention to small details.
Most of the scripts were created several years ago, when we just had TFS 1.0 (6 years ago, maybe?). By then we didn't had the architecture that we have today and I wasn't so familiar with metamethods either, so lots of functions are compat based (tfs 0.x).
Of course some of the npcs/actions/spells here will work if you copy/paste in your server and adjust the XML tags, however I highly advise you to remake the idea considering cleaner cone and better code styles. Some redundancies can be eliminated.
I don't have a server anymore but I'll try to add screenshots/gifs later.