• 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 0.X svargrond arena script problem

vexler222

Active Member
Joined
Apr 22, 2012
Messages
714
Solutions
15
Reaction score
46
Hi, i have problem with doors in this script
All work but, if i open door 6907 they change to 6908, but if i leave from door 6908 they not back to 6907, but to 6980 why? i can't search in script anything :(
 

Attachments

check your movement.xml

TFS 1.2
Code:
<movevent event="StepOut" itemid="6908" script="closingdoor.lua" />

TFS 0.4
Code:
<movevent type="StepOut" itemid="6908" event="script" value="closingdoor.lua"/>

search the id 6908 with Control + F
 
check your movement.xml

TFS 1.2
Code:
<movevent event="StepOut" itemid="6908" script="closingdoor.lua" />

TFS 0.4
Code:
<movevent type="StepOut" itemid="6908" event="script" value="closingdoor.lua"/>

search the id 6908 with Control + F


i have 2 lines with id 6908

<movevent type="StepOut" itemid="6908" event="script" value="closingdoor.lua"/>
<movevent type="StepIn" itemid="6908" event="script" value="walkback.lua"/>
 
Okey, i change it

if item.actionid == DoorsActID or RewardsDoors[item.actionid] then

doTransformItem(item.uid, item.itemid - 1)

on it

if item.actionid == DoorsActID or RewardsDoors[item.actionid] then

doTransformItem(item.uid, 6907)

and now work :D
 
Back
Top