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

Tfs 0.2.11 town teleport

Nokturno

Not a human
Joined
Aug 7, 2009
Messages
606
Solutions
2
Reaction score
422
hello guys,
well i got this 9.10 server with tfs 0.2.11 and this script is not working
if someone has a similar script or just a fix for ill be so appriciated. :)

Code:
function onStepIn(cid, item, pos)
if isPlayer(cid) == TRUE then
if (item.actionid == 4036) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of rookgard.")
doPlayerSetTown(cid,1)

elseif (item.actionid == 4037) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Orgrimar.")
doPlayerSetTown(cid,2)

elseif (item.actionid == 4038) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Stormwind.")
doPlayerSetTown(cid,5)

elseif (item.actionid == 4039) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Grum Gol Camp.")
doPlayerSetTown(cid,3)

elseif (item.actionid == 4040) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of stormwind Hills.")
doPlayerSetTown(cid,4)

elseif (item.actionid == 4041) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Horde Gates.")
doPlayerSetTown(cid,6)

elseif (item.actionid == 4042) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Moonville.")
doPlayerSetTown(cid,7)

elseif (item.actionid == 4043) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Lost Temple.")
doPlayerSetTown(cid,8)

elseif (item.actionid == 4044) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Quel Thalas.")
doPlayerSetTown(cid,9)

elseif (item.actionid == 4045) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Zirtny sunset.")
doPlayerSetTown(cid,10)

elseif (item.actionid == 4046) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Bounty Bay.")
doPlayerSetTown(cid,11)

elseif (item.actionid == 4047) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Svargrond.")
doPlayerSetTown(cid,13)
end
end
end

its a residence Teleport, when a player steps IN , your town Id changes
 
no no, the teleport thing does work, i want That the New Town Id´s work.

cuz that script goes on the teleport properties..

but im using a tfs 02.1 and its not working , cuz i have tested before,. in a 8.54 tfs 0.3.6
 
try puting only aid on tp and using
Code:
local config =
{
	[4046]={1, "Rookgard", {x=, y=, z=}},
	[4047]= {2, "Orgrimar", {x=, y=, z=}},
	finishme
}

function onStepIn(cid, item, pos)
	if isPlayer(cid) == TRUE then
		doPlayerSendTextMessage(cid, 24, "Now you are citizen of " .. config[item.actionid][2])
		doPlayerSetTown(cid, config[item.actionid][1])
		doTeleportThing(cid, config[item.actionid][3])
	end
end
(finish config by filling destinations and adding missing towns)
 
Back
Top