View difference between Paste ID: 9wCLwKv0 and Ee5ygDQb
SHOW: | | - or go back to the newest paste.
1-
groom='Mineturtle12'
1+
groom='Mousetat'
2-
bride='Bepperluver'
2+
bride='Pixlelight'
3-
 
3+
4-
 
4+
5
f=400
6
e=350
7
a=0
8
t=0
9
p=0
10
finale=0
11-
 
11+
12
groomanswer=0
13
brideanswer=0
14
positiongroomlock=1
15
positionbridelock=0
16
bridewalking=0
17
stop=5
18-
 
18+
facepaw=0
19
p={}
20
21
tfm.exec.disableAutoShaman(true)
22
tfm.exec.disableAutoTimeLeft(true)
23
tfm.exec.disableAfkDeath(true)
24-
 
24+
25
tfm.exec.newGame('@5014080')
26-
                tfm.exec.movePlayer(groom,1350, 290,offset,0,0,offset)
26+
27-
                tfm.exec.killPlayer(bride)
27+
28
		tfm.exec.movePlayer(groom,1380, 290,offset,0,0,offset)
29-
 
29+
		tfm.exec.killPlayer(bride)
30
		system.disableChatCommandDisplay("start",true)
31
		for name,player in pairs(tfm.get.room.playerList) do
32
			p[name]={facepaw=false}
33-
 
33+
		end
34
end
35
36-
                if positiongroomlock==1 then
36+
37-
                tfm.exec.movePlayer(groom,1350, 290,offset,0,0,offset)
37+
p[name]={facepaw=false}
38-
                end
38+
39-
 
39+
40-
                if positionbridelock==1 then
40+
41-
                tfm.exec.movePlayer(bride,1350, 290,offset,0,0,offset)
41+
function eventChatCommand(name, message)
42-
                end
42+
if name==groom and message=="start" then
43-
 
43+
t=48
44-
                if t==60 then
44+
45-
                ui.addTextArea(1,"I believe everyone is here. We will now begin.",nil, 1350, 180,150,40, color,color,Alpha,false)
45+
46-
                end
46+
47-
 
47+
48-
                if t==80 then
48+
49-
                ui.addTextArea(1,"Please welcome the bride!",nil, 1350, 180,150,40, color,color,Alpha,false)
49+
		if positiongroomlock==1 then
50-
                tfm.exec.respawnPlayer(bride)
50+
		tfm.exec.movePlayer(groom,1380, 290,offset,0,0,offset)
51-
                tfm.exec.movePlayer(bride,400, 350,offset,0,0,offset)
51+
		end
52-
                bridewalking=1
52+
53-
                stop=0
53+
		if positionbridelock==1 then
54-
                end
54+
		tfm.exec.movePlayer(bride,1320, 290,offset,0,0,offset)
55-
 
55+
		end
56-
 
56+
57-
                if stop==0 then
57+
		if t==50 then
58-
 
58+
		ui.addTextArea(1,"I believe everyone is here. We will now begin.",nil, 1350, 180,150,40, color,color,Alpha,false)
59-
                        if bridewalking==1 then
59+
		end
60-
                        tfm.exec.movePlayer(bride,f, 350,offset,0,0,offset)
60+
61-
                        f=f+10
61+
		if t==60 then
62-
                        end
62+
		ui.addTextArea(1,"Please welcome the bride!",nil, 1350, 180,150,40, color,color,Alpha,false)
63-
               
63+
		tfm.exec.respawnPlayer(bride)
64-
                        if f > 1145 then
64+
		tfm.exec.movePlayer(bride,400, 350,offset,0,0,offset)
65-
                        e=e-3.5
65+
		bridewalking=1
66-
                        tfm.exec.movePlayer(bride,f, e,offset,0,0,offset)
66+
		stop=0
67-
                        end
67+
		end
68-
       
68+
69-
                        if f==1350 then
69+
70-
                        stop=1
70+
		if stop==0 then
71-
                        bridewalking=0
71+
72-
                        positionbridelock=1
72+
			if bridewalking==1 then
73-
                        ui.addTextArea(1,"She is here!",nil, 1350, 180,150,40, color,color,Alpha,false)
73+
			tfm.exec.movePlayer(bride,f, 350,offset,0,0,offset)
74-
                        t=1000
74+
			f=f+20
75-
                        end
75+
			end
76-
                end
76+
		
77-
               
77+
			if f > 1145 then
78-
                if t==1006 then
78+
			e=e-3.5
79-
                ui.addTextArea(1,"Let us begin the ceremony.",nil, 1350, 180,150,40, color,color,Alpha,false)
79+
			tfm.exec.movePlayer(bride,f, e,offset,0,0,offset)
80-
                end
80+
			end
81-
               
81+
	
82-
                if t==1012 then
82+
			if f>=1300 then
83-
                ui.addTextArea(1,"We are gathered to witness and celebrate",nil, 1350, 180,150,40, color,color,Alpha,false)
83+
			stop=1
84-
                end
84+
			bridewalking=0
85-
               
85+
			positionbridelock=1
86-
                if t==1018 then
86+
			ui.addTextArea(1,"She is here!",nil, 1350, 180,150,40, color,color,Alpha,false)
87-
                ui.addTextArea(1,"the union of 2 souls in eternal companionship.",nil, 1350, 180,150,40, color,color,Alpha,false)
87+
			t=1000
88-
                end
88+
			end
89-
 
89+
		end
90-
                if t==1024 then
90+
		
91-
                ui.addTextArea(1,"May they journey forth in prosperity and poverty",nil, 1350, 180,150,40, color,color,Alpha,false)
91+
		if t==1006 then
92-
                end
92+
		ui.addTextArea(1,"Let us begin the ceremony.",nil, 1350, 180,150,40, color,color,Alpha,false)
93-
 
93+
		end
94-
                if t==1030 then
94+
		
95-
                ui.addTextArea(1,"and in joy and hardship.",nil, 1350, 180,150,40, color,color,Alpha,false)
95+
		if t==1012 then
96-
                end
96+
		ui.addTextArea(1,"We gathered to witness and celebrate",nil, 1350, 180,150,40, color,color,Alpha,false)
97-
 
97+
		end
98-
                if t==1036 then
98+
		
99-
                ui.addTextArea(1,'Do you, '..groom..'. agree to be bound together in love now and forever?',nil, 1350, 160,150,70, color,color,Alpha,false)
99+
		if t==1018 then
100-
                groomanswer=1
100+
		ui.addTextArea(1,"The union of 2 souls in ethernal companionship.",nil, 1350, 180,150,40, color,color,Alpha,false)
101-
                end
101+
		end
102-
 
102+
103-
                if groomanswer==1 then
103+
		if t==1024 then
104-
                ui.addTextArea(2,'<a href="event:groomanswer"><p align="center">I do. Now and forever.</p></a>',groom ,830,350,100,40,0x3c5064,0x3c5064,alpha)
104+
		ui.addTextArea(1,"May they journey forth in prosperity and poverty",nil, 1350, 180,150,40, color,color,Alpha,false)
105-
                end
105+
		end
106-
 
106+
107-
                if groomanswer==2 then
107+
		if t==1030 then
108-
                ui.addTextArea(3,"I do. Now and forever.",nil ,1300,200,100)
108+
		ui.addTextArea(1,"and in joy and hardship",nil, 1350, 180,150,40, color,color,Alpha,false)
109-
                t=2000
109+
		end
110-
                groomanswer=3
110+
111-
                end
111+
		if t==1036 then
112-
 
112+
		ui.addTextArea(1,'Do you, '..groom..', agree to be bound together in love now and forever?',nil, 1350, 160,150,70, color,color,Alpha,false)
113-
                if t==2006 then
113+
		groomanswer=1
114-
                ui.removeTextArea(3,nil)
114+
		end
115-
                ui.addTextArea(1,'And do you, '..bride..'. agree to be bound together in love now and forever?',nil, 1350, 160,150,70, color,color,Alpha,false)
115+
116-
                ui.addTextArea(2,'<a href="event:brideanswer"><p align="center">I do. Now and forever.</p></a>',bride ,830,350,100,40,0x3c5064,0x3c5064,alpha)
116+
		if groomanswer==1 and t==1037 then
117-
                end
117+
		ui.addPopup(5, 1, "Do you agree to marry "..bride.." and be bound together in love now and forever?", groom, 272, 131, 253, true)
118-
 
118+
		end
119-
                if brideanswer==1 then
119+
120-
                ui.addTextArea(3,"I do. Now and forever",nil ,1300,200,100)
120+
		if groomanswer==2 then
121-
                t=3000
121+
		ui.addTextArea(3,"I do. Now and forever",nil ,1330,200,100)
122-
                brideanswer=2
122+
		t=2000
123-
                end
123+
		groomanswer=3
124-
 
124+
		end
125-
                if t==3006 then
125+
126-
                ui.removeTextArea(3,nil)
126+
		if t==2006 and groomanswer==3 then
127-
                ui.addTextArea(1,'Then congratiulations! I declare this couple to be wed. Now you may kiss your spouse.',nil, 1350, 180,150,50, color,color,Alpha,false)
127+
		ui.removeTextArea(3,nil)
128-
                end
128+
		ui.addTextArea(1,'And do you, '..bride..', agree to be bound together in love now and forever?',nil, 1350, 160,150,70, color,color,Alpha,false)
129-
 
129+
		ui.addPopup(6, 1, "Do you agree to marry "..groom.." and be bound together in love now and forever?", bride, 272, 131, 253, true)
130-
                if t==3012 then
130+
		end
131-
                ui.removeTextArea(3,nil)
131+
132-
                tfm.exec.movePlayer(groom,1380, 290,offset,0,0,offset)
132+
		if brideanswer==1 then
133-
                tfm.exec.movePlayer(bride,1320, 290,offset,0,0,offset)
133+
		ui.addTextArea(3,"I do. Now and forever",nil ,1270,200,100)
134-
                finale=1
134+
		t=3000
135-
                positiongroomlock=0
135+
		brideanswer=2
136-
                positionbridelock=0
136+
		end
137-
                end
137+
138-
 
138+
		if t==3006 and brideanswer==2 then
139-
                if t==3020 then
139+
		ui.removeTextArea(3,nil)
140-
                ui.addTextArea(1,"Now let us party in celebration of this new couple!",nil, 1350, 180,150,40, color,color,Alpha,false)
140+
		ui.addTextArea(1,'Then congratiulation! I declare this couple to be wed. Now you may kiss your spouse',nil, 1350, 180,150,50, color,color,Alpha,false)
141-
                end
141+
		end
142-
               
142+
143
		if t==3012 then
144-
 
144+
		ui.removeTextArea(3,nil)
145-
function eventTextAreaCallback(id, player, callback)
145+
		tfm.exec.movePlayer(groom,1380, 290,offset,0,0,offset)
146-
        if callback=='groomanswer' then
146+
		tfm.exec.movePlayer(bride,1320, 290,offset,0,0,offset)
147-
        ui.removeTextArea(2,groom)
147+
		tfm.exec.playEmote(bride,3,nil)
148-
        ui.removeTextArea(1,nil)
148+
		tfm.exec.playEmote(groom,3,nil)
149-
        groomanswer=2
149+
		for name,player in pairs(tfm.get.room.playerList) do
150-
        end
150+
			if name==groom or name==bride then
151-
 
151+
			else
152-
        if callback=='brideanswer' then
152+
				tfm.exec.playEmote(name,5,nil)
153-
        ui.removeTextArea(2,bride)
153+
			end
154-
        ui.removeTextArea(1,nil)
154+
		end
155-
        brideanswer=1
155+
		finale=1
156-
        end
156+
		positiongroomlock=0
157
		positionbridelock=0
158
		end
159
160
		if t>=3020 and t<9000 then
161
		ui.addTextArea(1,"Now lets partyyy!",nil, 1350, 180,150,40, color,color,Alpha,false)
162
			for name,player in pairs(tfm.get.room.playerList) do
163
				tfm.exec.playEmote(name,0,nil)
164
			end
165
			t=3020
166
		end
167
		
168
		if t>=9012 and t<9036 then
169
			ui.addTextArea(1,'This is a disaster! The worst wedding I have ever attended! YOU WILL ALL PERISH!',nil, 1350, 160,200,70, color,color,Alpha,false)
170
			
171
			for name,player in pairs(tfm.get.room.playerList) do
172
				if name==bride or name==groom then
173
					if groomanswer==5 then
174
						tfm.exec.playEmote(bride,2,nil)
175
						tfm.exec.playEmote(groom,1,nil)
176
					else
177
						tfm.exec.playEmote(bride,1,nil)
178
						tfm.exec.playEmote(groom,2,nil)
179
					end
180
				elseif p[name].facepaw==false then
181
				tfm.exec.playEmote(name,7,nil)
182
				p[name].facepaw=true
183
				end
184
			end
185
		end
186
		if t==9036 then
187
			positiongroomlock=0
188
			positionbridelock=0
189
			for name,player in pairs(tfm.get.room.playerList) do
190
				tfm.exec.killPlayer(name)
191
			end
192
			ui.addTextArea(1,"I'M THE RULER OF 'EM ALL! HAHAHAHAHA!!",nil, 1350, 160,160,70, color,color,Alpha,false)
193
		end
194
		if t==9050 then
195
			system.exit()
196
		end
197
end
198
199
function eventPopupAnswer(popupID, name, answer)
200
if popupID==5 and name==groom then
201
	if answer=="yes" then
202
		groomanswer=2
203
	else
204
		groomanswer=5
205
		t=9000
206
		ui.addTextArea(3,"Screw this, I quit!",nil ,1330,200,100)
207
	end
208
elseif popupID==6 and name==bride then
209
	if answer=="yes" then
210
		brideanswer=1
211
	else
212
		brideanswer=5
213
		t=9000
214
		ui.addTextArea(3,"Screw this, I quit!",nil ,1270,200,100)
215
	end
216
end
217
end