-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdreamMount_mwscripts.lua
88 lines (69 loc) · 1.65 KB
/
dreamMount_mwscripts.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
return {
DreamMountDismount = [[
Begin DreamMountDismount
short doOnce
if ( doOnce == 0 )
if ( DreamMountMount.doOnce )
stopScript DreamMountMount
set DreamMountMount.doOnce to 0
pcforce1stperson
player->loopgroup idle 2
endif
set doOnce to 1
return
endif
enableplayerjumping
enableplayerviewswitch
if ( DreamMountMount.wasThirdPerson )
pcforce3rdperson
endif
MessageBox "Dismount successful."
set doOnce to 0
stopscript DreamMountDismount
End DreamMountDismount
]],
DreamMountMount = [[
Begin DreamMountMount
short doOnce
short wasThirdPerson
if ( doOnce == 0 )
set wasThirdPerson to ( PCGet3rdPerson )
if ( player->GetSpellReadied == 0 )
Messagebox "Engage your mount by\ndrawing your magic!"
pcforce3rdperson
player->loopgroup idlespell 100000 1
endif
disableplayerjumping
disableplayerviewswitch
set doOnce to 1
return
endif
if ( player->GetSpellReadied )
player->playgroup idle 2
pcforce1stperson
set doOnce to 0
stopscript DreamMountMount
endif
End DreamMountMount
]],
DreamMountForceThirdPerson = [[
Begin DreamMountForceThirdPerson
short wasThirdPerson
set wasThirdPerson to ( PCGet3rdPerson )
PCForce3rdPerson
disablePlayerViewSwitch
stopScript DreamMountForceThirdPerson
End DreamMountForceThirdPerson
]],
DreamMountDisableForceThirdPerson = [[
Begin DreamMountDisableForceThirdPerson
if ( DreamMountForceThirdPerson.wasThirdPerson )
pcforce3rdperson
else
pcforce1stperson
endif
enablePlayerViewSwitch
stopScript DreamMountDisableForceThirdPerson
End DreamMountDisableForceThirdPerson
]],
}