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

citizen problem

Nihilismo

New Member
Joined
May 9, 2008
Messages
58
Reaction score
0
well i have a problem with citizenship script well this script takes me to temple and tells me that You are now a citizen of the town Nova but it wont make my recidence of that city
function onUse(cid, item, frompos, item2, topos)
if item.uid == 7659 then
doPlayerSendTextMessage(cid,22,"You are now a citizen of the town Nova.")
playerpos = getPlayerPosition(cid)
player = getThingfromPos(playerpos)
newpos = {x=435, y=483, z=7}
doTeleportThing(cid,newpos)
doSendMagicEffect(playerpos,12)
end
end
well i use a switch not a teleport
 
You must write in action.xml

<action uniqueid="7659" script="miasta/karmia.lua" />

and switch change Uniqueid for 7659

newpos = {x=435, y=483, z=7} << This is Position your temple (Look in map edytor what is your city have position.

When i Help you give rep ++ for me thx ;)
 
thanks for the help guys!

how can i make this switch ask for level 35 to use it?

function onUse(cid, item, frompos, item2, topos)
local townid = 1 -- townid of the temple
local playerpos = getPlayerPosition(cid)
local newpos = {x=435, y=483, z=7}
doPlayerSendTextMessage(cid,22,"You are now a citizen of the town Nova.")
doPlayerSetTown(cid, townid)
doTeleportThing(cid,newpos)
doSendMagicEffect(playerpos,12)
end
 
hello ive got a tfs (crying damson) 0.3.4 patch level 2 and i tried serveral scripts, but no one of them worked. now ive seen this script and Shawak's tipp. but i dont know where to add

doPlayerSetTown(cid, TOWN ID)

in the script

function onUse(cid, item, frompos, item2, topos)
if item.uid == 7659 then
doPlayerSendTextMessage(cid,22,"You are now a citizen of the town Nova.")
playerpos = getPlayerPosition(cid)
player = getThingfromPos(playerpos)
newpos = {x=435, y=483, z=7}
doTeleportThing(cid,newpos)
doSendMagicEffect(playerpos,12)
end
end

plx help ...
and please explain how to add in server ...
 
hello ive got a tfs (crying damson) 0.3.4 patch level 2 and i tried serveral scripts, but no one of them worked. now ive seen this script and Shawak's tipp. but i dont know where to add



in the script



plx help ...
and please explain how to add in server ...

Here you go, I tried my best at tabbing it :p

town.lua in actions/scripts/tools
Lua:
function onUse(cid, item, frompos, item2, topos)

player = getThingfromPos(playerpos)
newpos = {x=435, y=483, z=7}
playerpos = getPlayerPosition(cid)

	if item.uid == 7659 then
		doPlayerSendTextMessage(cid,22,"You are now a citizen of the town Nova.")
		doPlayerSetTown(cid, TOWN ID) 
		doTeleportThing(cid,newpos)
		doSendMagicEffect(playerpos,12)
	end
end

Lua:
<action uniqueid="7659" script="tools/town.lua" />
 
Back
Top