• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Teleports

Status
Not open for further replies.

Seq

Banned User
Joined
May 6, 2009
Messages
87
Reaction score
0
Location
Poland
Moze mi ktos napisac srypt dzieki ktoremu wchodzac w teleport zostajesz mieszkancem miasta o np townid = 5? :>

Z góry dzieki ;D
 
Code:
function onStepIn(cid, item, pos)

local town = {x=?????, y=?????, z=?}

    if item.actionid == TILE ACTIONID then
        doPlayerSetTown(cid,TOWN ID) 
		doTeleportThing(cid,town)
        doSendMagicEffect(getCreaturePosition(cid),12)
		doPlayerSendTextMessage(cid,22, "You are now a citzen of NAME OF TOWN")
        end
    return 1
end

?
 
Kurcze skrypt nie działa ;//
 
Last edited:
Hmm.. moze ktos mi podac link do tego tematu? :> bylbym wdzieczny ;p
 
LUA:
function onStepIn(cid, item, position, fromPosition)
	if(item.actionid > 30020 and item.actionid < 30100) then
		local townId = (item.actionid - 30020)
		doPlayerSetTown(cid, townId)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are the newest resident of " .. getTownName(townId) .. ".")
	end

	return true
end
 
Dzieki vDk ;)

kurcze dalej mam problem ;/

[25/10/2009 22:45:52] [Warning - Event::loadScript] Event onUse not found (data/actions/scripts/miasta/venore.lua)
[25/10/2009 22:45:53] [Warning - Event::loadScript] Event onUse not found (data/actions/scripts/miasta/thais.lua)
 
Last edited by a moderator:
haha ;D no tak, czemu ja na to nie wpadlem ? :D hahahahahahahhahaha
 
Status
Not open for further replies.
Back
Top