Firestorm Event | TFS 1.3 Revscript ~ EventCallback

maper1

New Member
Joined
Aug 17, 2012
Messages
38
Reaction score
0
I found the problem, if I put an area with nothing just the floor it works more if I put something on the ground it gives error, can you help me?

 
OP
Sarah Wesker

Sarah Wesker

ค∂vαηcε รүηтαx ❤
Support Team
Joined
Mar 16, 2017
Messages
921
Solutions
90
Reaction score
906
Location
London
GitHub
MillhioreBT
Updated your main post, in the future use the report button 👍
Very much thank, and ok i use button in the future
Post automatically merged:

I found the problem, if I put an area with nothing just the floor it works more if I put something on the ground it gives error, can you help me?

and the error? show me

i use that:

1609891028031.png
 
OP
Sarah Wesker

Sarah Wesker

ค∂vαηcε รүηтαx ❤
Support Team
Joined
Mar 16, 2017
Messages
921
Solutions
90
Reaction score
906
Location
London
GitHub
MillhioreBT

your error description is strange and it doesn't seem to be part of the code that I post here, I have also tried to reproduce your problem by editing a map with many things, walls, walls and more, and it still works fine, and to complete you are not using TFS 1.3, you are using OTServ BR, In theory it should be compatible, but it was not my intention to make this event for OTServ BR users
 

Gicu

Premium User
Premium User
Joined
Feb 26, 2011
Messages
183
Reaction score
43
Lua:
if config.miscellaneous.enterOnlyInPzTile then
        if not player:getPosition():getTile():hasFlag(TILESTATE_PROTECTIONZONE) then
            player:sendCancelMessage("You can enter only in PZ.")
            return false
        end
    end

I have problem with this on TFS 1.3 this is solution:


Lua:
   if config.miscellaneous.enterOnlyInPzTile then
    local tile = Tile(player:getPosition()):hasFlag(TILESTATE_PROTECTIONZONE)
        if not tile then
            player:sendCancelMessage("You can enter only in PZ.")
            return false
        end
    end
 

tommy727272

Premium User
Premium User
Joined
Feb 23, 2019
Messages
19
Reaction score
1
how to fix this error, im using 8.60 realmap

C:\demonica\data\scripts\firestorm.lua:206: attempt to call method 'getInbox' (a nil value)
stack traceback:
[C]: in function 'getInbox'
C:\demonica\data\scripts\firestorm.lua:206: in function <C:\demonica\data\scripts\firestorm.lua:193>
 

oualid6496

Well-Known Member
Joined
Aug 24, 2014
Messages
408
Solutions
4
Reaction score
77
Location
Dordrecht, The Netherlands
how to fix this error, im using 8.60 realmap

C:\demonica\data\scripts\firestorm.lua:206: attempt to call method 'getInbox' (a nil value)
stack traceback:
[C]: in function 'getInbox'
C:\demonica\data\scripts\firestorm.lua:206: in function <C:\demonica\data\scripts\firestorm.lua:193>
What tfs are you using? This script is for tfs 1.3 it seems you're missing the method 'getInbox'.
 

DreadShi

Member
Joined
May 18, 2019
Messages
172
Reaction score
7
data\scripts\firestorm.lua:432: attempt to call method 'getTile' (a nil value)
stack traceback:
 
Top