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

52 lines
2.9 KiB
Plaintext

version=2
:if:<register.registered(sagepasswhirl)>=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(71)>>0
@text.show(Oh! The Silver Wing!*You may pass!)
@register.register(sagepasswhirl)
@npc.turn(0,3)
:select:<player.position>
:when:26,1,20
@npc.turn(0,1)
:endwhen
@npc.move(0,1)
@npc.register(whirlislands\bf1main.dat|0|remove|0)
@npc.turn(0,1)
:select:<player.position>
:when:26,1,20
@npc.turn(0,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 Silver 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(71,1)
@item.messagegive(71,1)
@text.show(Thank you!*I wish you the best of luck!)
@register.register(sagepasswhirl)
@npc.register(whirlislands\bf1main.dat|0|remove|0)
:when:No
@text.show(I understand.*If you ever change your mind,~I will remain here waiting.)
:end
:endwhen
@npc.turn(0,3)
:select:<player.position>
:when:26,1,20
@npc.turn(0,1)
:endwhen
@npc.move(0,1)
@npc.turn(0,1)
:select:<player.position>
:when:26,1,20
@npc.turn(0,3)
:endwhen
:end
:endif
:end