• 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!

addDialog?

Bill3000

New Member
Joined
Jul 26, 2010
Messages
106
Reaction score
1
I got console error with this script
It says something about "doPlayerAddDialog

What's this?

Code:
modaldialog3 = {
	title = "Teleportation Marks",
	message = "Where do you want to go?",
	buttons = {
		{ id = 1, value = "Go" },
		{ id = 2, value = "Cancel" },
	},
	buttonEnter = 1,
	buttonEscape = 2,
	choices = {
		{ id = 1, value = "Home" },
		{ id = 2, value = "Thais" },
		{ id = 3, value = "Rookgaard" },
		{ id = 4, value = "Premium Rookgaard" },
		{ id = 5, value = "Desert" },
		{ id = 6, value = "Outlaw Camp" },
		{ id = 7, value = "Dreamer Quest" },
		{ id = 8, value = "Dlair Edron" },
		{ id = 9, value = "Annihi" },
		{ id = 10, value = "DH Quest" },
		{ id = 11, value = "DLaird Darashia" },
		{ id = 12, value = "Carlin" },
		{ id = 13, value = "Venore" },
		{ id = 14, value = "Edron" },
		{ id = 15, value = "Zao" },
		{ id = 16, value = "Mino Hell" },
		{ id = 17, value = "Travora" },
		{ id = 18, value = "Fibula" },
		{ id = 19, value = "Calcanea" },
		{ id = 20, value = "Vega" },
		{ id = 21, value = "Folda" },
		{ id = 22, value = "Gray Isle" },
		{ id = 23, value = "Dwarven Bridge" },
		{ id = 24, value = "Orlan" },
		{ id = 25, value = "Ab'Dendriel" },
		{ id = 26, value = "Kazordoon" },
		{ id = 27, value = "Knightwatch tower" }
	},
	popup = false
}


function callback3(cid, button, choice)
	if (button == 1) then
		local pos = 0
		if (choice == 1) then
			pos = {x=32315, y=31918, z=7}
		elseif (choice == 2) then
			pos = {x=32346, y=32225, z=7}
		elseif (choice == 3) then
			pos = {x=32097, y=32204, z=7}
		elseif (choice == 4) then
			pos = {x=32033, y=32197, z=7}
		elseif (choice == 5) then
			pos = {x=32654, y=32096, z=7}
		elseif (choice == 6) then
			pos = {x=32655, y=32201, z=7}
		elseif (choice == 7) then
			pos = {x=32861, y=32242, z=9}
		elseif (choice == 8) then
			pos = {x=33098, y=31707, z=7}
		elseif (choice == 9) then
			pos = {x=33230, y=31658, z=13}
		elseif (choice == 10) then
			pos = {x=33322, y=31591, z=15}
		elseif (choice == 11) then
			pos = {x=33265, y=32279, z=7}
		elseif (choice == 12) then
			pos = {x=32336, y=31784, z=7}
		elseif (choice == 13) then
			pos = {x=32924, y=32075, z=7}
		elseif (choice == 14) then
			pos = {x=33168, y=31810, z=8}
		elseif (choice == 15) then
			pos = {x=33144, y=31418, z=6} 
		elseif (choice == 16) then
			pos = {x=32130, y=32061, z=12}
		elseif (choice == 17) then
			pos = {x=32075, y=32363, z=7}
		elseif (choice == 18) then
			pos = {x=32175, y=32436, z=7}
		elseif (choice == 19) then
			pos = {x=32157, y=32306, z=7}
		elseif (choice == 20) then
			pos = {x=31939, y=31714, z=6}
		elseif (choice == 21) then
			pos = {x=32010, y=31566, z=4}
		elseif (choice == 22) then
			pos = {x=33179, y=31994, z=7}
		elseif (choice == 23) then
			pos = {x=32622, y=31950, z=7}
		elseif (choice == 24) then
			pos = {x=32590, y=30821, z=7}
		elseif (choice == 25) then
			pos = {x=32683, y=31686, z=7}
		elseif (choice == 26) then
			pos = {x=32657, y=31903, z=8}
		elseif (choice == 27) then
			pos = {x=32818, y=32344, z=7}
		end
		doTeleportThing(cid, pos)
	end
end

function onSay(cid, words, param)
	[COLOR="#FF0000"][B]doPlayerAddDialog(modaldialog3, 1003, cid, callback3);[/B][/COLOR]
	return true
end
 
Back
Top