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

Lua Chnage Town_ID?

Alyhide

Banned User
Joined
Aug 21, 2010
Messages
1,945
Reaction score
55
Location
Switzerland
Hey, I made a sort of rook for my server, but the problem is, they start out at it when they die.
I wanted it to be like..

1. You start out at rook
2. Get level 50 and go to main town
3. Die, and start at main town again << Thing is, even though you finished rook, it starts out at rook after you die.

So, In the config, do I just put >>NewplayertownID: maintownid<<
will that work?
 
i think its something wrong at the oracle, could you post this script ?

It doesn't have an oracle, just a door and a teleport. I will not use an oracle, since it wouldn't really fit my server lol
But, couldn't there be a script that you set the portal's actionid as blah blah and it changes the person's townid to 4?
 
Code:
function onUse(cid, item, frompos, item2, topos)
	if item.uid==1000 then
		newpos = {x=100, y=100, z=7}
		doPlayerSetTown(cid, 1)
		doPlayerSendTextMessage(cid,22,"Welcome to main.")
		doTeleportThing(cid,newpos)
		doSendMagicEffect(newpos,12)
		return 1
	end

this might work :)
rep++ if i help thanks :)
 
Back
Top