• 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.1/1.2 10.76 Modal Window Addon and Mount Doll

Glad you like it man.
 
Yeah its awesome, i just noticed that there are 2 mounts called wazzoon instead of waccoon in your pastebin, other than that it works wonders :)

edit:
also in the other pastebin
 
Hello @beastn

I found a bug with your script,

The way you have it set up is it checks sex and gives u the addons for your sex.

IF a player changes there sex they wont have the addons they recieved.

I think its an easy fix u just remove the male/female part and make it give both them eg. citizen 128,136 (male,female)

-Martin
 
Hello @beastn

I found a bug with your script,

The way you have it set up is it checks sex and gives u the addons for your sex.

IF a player changes there sex they wont have the addons they recieved.

I think its an easy fix u just remove the male/female part and make it give both them eg. citizen 128,136 (male,female)

-Martin

I ran into this on my server aswell. I'll update the scripts when i get home
 
Lua Script Error: [Action Interface]
data/actions/scripts/custom/modalAD.lua:eek:nUse
data/actions/scripts/custom/modalAD.lua:47: attempt to index local 'player' (a number value)
stack traceback:
[C]: in function '__index'
data/actions/scripts/custom/modalAD.lua:47: in function <data/actions/scripts/custom/modalAD.lua:46>

Lua Script Error: [Action Interface]
data/actions/scripts/custom/modalMD.lua:eek:nUse
data/actions/scripts/custom/modalMD.lua:79: attempt to index local 'player' (a number value)
stack traceback:
[C]: in function '__index'
data/actions/scripts/custom/modalMD.lua:79: in function <data/actions/scripts/custom/modalMD.lua:78>

I have this error in TFS when I use the items as determined doll .
 
Lua Script Error: [Action Interface]
data/actions/scripts/custom/modalAD.lua:eek:nUse
data/actions/scripts/custom/modalAD.lua:47: attempt to index local 'player' (a number value)
stack traceback:
[C]: in function '__index'
data/actions/scripts/custom/modalAD.lua:47: in function <data/actions/scripts/custom/modalAD.lua:46>

Lua Script Error: [Action Interface]
data/actions/scripts/custom/modalMD.lua:eek:nUse
data/actions/scripts/custom/modalMD.lua:79: attempt to index local 'player' (a number value)
stack traceback:
[C]: in function '__index'
data/actions/scripts/custom/modalMD.lua:79: in function <data/actions/scripts/custom/modalMD.lua:78>

I have this error in TFS when I use the items as determined doll .
Show me login.lua
 
Show me login.lua
Issue is in the action script, player is not a player object, it's a number which means it's probably taking cid

Lua Script Error: [Action Interface]
data/actions/scripts/custom/modalAD.lua:eek:nUse
data/actions/scripts/custom/modalAD.lua:47: attempt to index local 'player' (a number value)
stack traceback:
[C]: in function '__index'
data/actions/scripts/custom/modalAD.lua:47: in function <data/actions/scripts/custom/modalAD.lua:46>

Lua Script Error: [Action Interface]
data/actions/scripts/custom/modalMD.lua:eek:nUse
data/actions/scripts/custom/modalMD.lua:79: attempt to index local 'player' (a number value)
stack traceback:
[C]: in function '__index'
data/actions/scripts/custom/modalMD.lua:79: in function <data/actions/scripts/custom/modalMD.lua:78>

I have this error in TFS when I use the items as determined doll .
Are you using tfs 1.0? If so, after the onUse function, put
Code:
 player = Player(player)
if not player then
return false
end
 
I ran into this on my server aswell. I'll update the scripts when i get home
http://pastebin.com/nRF0sje8 line 60
Code:
            if player:getSex() == 0 then
                    player:addOutfitAddon(outfits[choiceId].female, 3)
                else
                    player:addOutfitAddon(outfits[choiceId].male, 3)
            end
for
Code:
 player:addOutfitAddon(outfits[choiceId].male, 3)
player:addOutfitAddon(outfits[choiceId].female, 3)
 
http://pastebin.com/nRF0sje8 line 60
Code:
            if player:getSex() == 0 then
                    player:addOutfitAddon(outfits[choiceId].female, 3)
                else
                    player:addOutfitAddon(outfits[choiceId].male, 3)
            end
for
Code:
 player:addOutfitAddon(outfits[choiceId].male, 3)
player:addOutfitAddon(outfits[choiceId].female, 3)
lol whoops
 
lol whoops
I had a bug by using a doll in the ground, than grabbing 2 dolls, using one, I got one outfit and had 2 dolls removed. I'm not sure if the only change I made was adding window:ModalWindowDelete() after line 53.
 
Issue is in the action script, player is not a player object, it's a number which means it's probably taking cid


Are you using tfs 1.0? If so, after the onUse function, put
Code:
 player = Player(player)
if not player then
return false
end
Lua Script Error: [Action Interface]
data/actions/scripts/custom/modalAD.lua:eek:nUse
data/actions/scripts/custom/modalAD.lua:81: attempt to call method 'setMessage' (a nil value)
stack traceback:
[C]: in function 'setMessage'
data/actions/scripts/custom/modalAD.lua:81: in function <data/actions/scripts/custom/modalAD.lua:46>

Lua Script Error: [Action Interface]
data/actions/scripts/custom/modalMD.lua:eek:nUse
data/actions/scripts/custom/modalMD.lua:106: attempt to call method 'setMessage' (a nil value)
stack traceback:
[C]: in function 'setMessage'
data/actions/scripts/custom/modalMD.lua:106: in function <data/actions/scripts/custom/modalMD.lua:78>

It is now happening this error
I use a TFS 1.2
 
Sorry, now is working . I was testing with the ADM so I was giving that error. With a normal character is all going well . Thank you.
 
When using on GOD character ~>
Code:
Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/custom/modalMD.lua:onModalWindow
data/creaturescripts/scripts/custom/modalMD.lua:91: attempt to index a nil value
stack traceback:
   [C]: in function '__index'
   data/creaturescripts/scripts/custom/modalMD.lua:91: in function <data/creaturescripts/scripts/custom/modalMD.lua:78>
 
Last edited:
Back
Top