• 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 Change outfit when cast spell's [Tfs1.1]

Ruan Sebast

New Member
Joined
Nov 9, 2014
Messages
38
Reaction score
0
Location
Brazil
I need help in a lua script, that should be used in spells.
When i or a monster cast a spell the scripts runs, then it check if the player/monster have x looktype.

If yes, then the script change player or monster outfit for x seconds and back.
If no, just cast the spell normal.

The script will run in all spells, its just a check , if the looktype = x , then the script run , if no , it just cast the spell normal.

Im using tfs 1.1
 
But for sure, there is alot that read and got a good help.
Thanks Evan!

and how I do If I want to add more outfits to get same effect, for exemple in this line:

if prevOutfit.lookType == 136 then

How I add outfits 137, 138..all of them?
 
Last edited:
But for sure, there is alot that read and got a good help.
Thanks Evan!

and how I do If I want to add more outfits to get same effect, for exemple in this line:

if prevOutfit.lookType == 136 then

How I add outfits 137, 138..all of them?
if isInArray({137, 138, ...}, prevOutfit.lookType) then
 
Back
Top