P3D-Legacy/P3D/Content/Data/Scripts/tintower/sage.dat

53 lines
2.9 KiB
Plaintext
Raw Normal View History

2016-09-07 18:50:38 +02:00
<EFBFBD><EFBFBD>version=2
:if:<register.registered(sagepasstin)>=true
@text.show(You may pass!)
:end
:endif
@text.show(I am sorry but~only a certain~few may pass here.*I must ask you~to turn back.)
:if:<inventory.countitem(178)>>0
@text.show(Oh! The Rainbow Wing!*You may pass!)
@register.register(sagepasstin)
@npc.turn(2,3)
:select:<player.position>
:when:9,0,2
@npc.turn(2,1)
:endwhen
@npc.move(2,1)
@npc.register(ecruteak\tintower1f.dat|2|remove|0)
@npc.turn(2,1)
:select:<player.position>
:when:26,1,20
@npc.turn(2,3)
:endwhen
:end
:endif
:if:<inventory.countitem(56)>>0
@text.show(Oh my!~I never thought I would see it!*The Crystal Wing!*This is a rare and precious item!*It definately proves your worth,~however, beyond this point you~will need the Rainbow Wing.*I can give you one,~but, in exchange~I will need your Crystal Wing.*Is this acceptable?)
@Options.show(Yes,No)
:when:Yes
@item.remove(56,1)
@item.give(178,1)
@item.messagegive(178,1)
@text.show(Thank you!*I wish you the best of luck!)
@register.register(sagepasstin)
@npc.register(ecruteak\tintower1f.dat|2|remove|0)
:when:No
@text.show(I understand.*If you ever change your mind,~I will remain here waiting.)
:end
:endwhen
@npc.turn(2,3)
:select:<player.position>
:when:9,0,2
@npc.turn(2,1)
:endwhen
@npc.move(2,1)
@npc.turn(2,1)
:select:<player.position>
:when:26,1,20
@npc.turn(2,3)
:endwhen
:end
:endif
:end