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

Storage Teleport

bybbzan

mapper
Joined
Aug 4, 2012
Messages
809
Solutions
2
Reaction score
136
Location
Sweden
Hello! :p

I need a script for a teleport.

*If you have storage 11000 you can't enter, text "You have to complete the task first".
*If you have storage 12000 you can enter, text "You may pass".
*If you have storage 13000 you can't enter, text "You have already done this quest".
*If you have none of these storages you can't enter either.

*Also i would like a script for a teleport that gives storage id 13000.

Thanks in advance!
 
i think i can make it but please can you tell me how will you use it and in what ??

- - - Updated - - -

Yeah :) completed 100 post

- - - Updated - - -

and you want it action or movement more information please
 
i think i can make it but please can you tell me how will you use it and in what ??

- - - Updated - - -

Yeah :) completed 100 post

- - - Updated - - -

and you want it action or movement more information please

Well its for my task system. When you kill certain dragon lords you will get access to face demodras.
Thats what its about :)
 
Last edited:
Code:
function onStepIn(cid, item, position, fromPosition)
local pozycja = {x=1000, y=1000, z=7}

if isPlayer(cid) then
	if getPlayerStorageValue(cid, 12000) == 1 then
		doTeleportThing(cid, pozycja)
		doSendMagicEffect(pozycja, 10)
		doPlayerSendTextMessage(cid, 20, 'You may pass.')
		setPlayerStorageValue(cid, 13000, 1)
	elseif getPlayerStorageValue(cid, config.potwor) == 11000 then
		doPlayerSendCancel(cid, 'You have to complete the task first.')
	elseif getPlayerStorageValue(cid, config.potwor) == 13000 then
		doPlayerSendCancel(cid, 'You have already done this quest')
	end
return true
end
 
Code:
function onStepIn(cid, item, position, fromPosition)
local pozycja = {x=1000, y=1000, z=7}

if isPlayer(cid) then
	if getPlayerStorageValue(cid, 12000) == 1 then
		doTeleportThing(cid, pozycja)
		doSendMagicEffect(pozycja, 10)
		doPlayerSendTextMessage(cid, 20, 'You may pass.')
		setPlayerStorageValue(cid, 13000, 1)
	elseif getPlayerStorageValue(cid, config.potwor) == 11000 then
		doPlayerSendCancel(cid, 'You have to complete the task first.')
	elseif getPlayerStorageValue(cid, config.potwor) == 13000 then
		doPlayerSendCancel(cid, 'You have already done this quest')
	end
return true
end

Error:
Code:
[Error - MoveEvents Interface]
data/movements/scripts/tasks/demodras/demodras.lua:onStepIn
Description:
data/movements/scripts/tasks/demodras/demodras.lua:10: attempt to index global '
config' (a nil value)
stack traceback:
        data/movements/scripts/tasks/demodras/demodras.lua:10: in function <data
/movements/scripts/tasks/demodras/demodras.lua:1>
 
Back
Top