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

Staff Room

Bazi

Member
Joined
Oct 24, 2011
Messages
270
Reaction score
8
Location
Germany
Hey OTLand

I need a Script for a Staff Room

Please Post Here If u Have One! :D

Thx
 
Lua:
local position = { x = 1000, y = 1000, z = 7 }

function onStepIn(cid, item, frompos, itemEx, topos)
	if getPlayerAccess(cid) >= 2 -- or idk the access of the tutor :D
		doTeleportThing(cid, position)
			doPlayerSendTextMessage(cid,21,"You are in.")
	else
		doTeleportThing(cid, fromPosition, TRUE)
			doPlayerSendTextMessage(cid,21,"You can't enter unless u are a staff member.")
	end
		return true
	                       end
 
Is That Right

Data/actions/sripts/staff

local position = { x = 1014, y = 1028, z = 7 }

function onStepIn(cid, item, frompos, itemEx, topos)
if getPlayerAccess(cid) >= 2 -- or idk the access of the tutor :D
doTeleportThing(cid, position)
doPlayerSendTextMessage(cid,21,"You are in.")
else
doTeleportThing(cid, fromPosition, TRUE)
doPlayerSendTextMessage(cid,21,"You can't enter unless u are a staff member.")
end
return true
end

Data/Actions/actions.xml
<action actionid="8585" event="script" value="staff.lua"/>

- - - Updated - - -

[29/07/2012 19:39:21] [Error - LuaScriptInterface::loadFile] data/actions/scripts/Staff Door.lua:5: 'then' expected near 'doTeleportThing'
[29/07/2012 19:39:21] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/Staff Door.lua)
[29/07/2012 19:39:21] data/actions/scripts/Staff Door.lua:5: 'then' expected near 'doTeleportThing'
[29/07/2012 19:39:21] Reloaded actions.
 
Is That Right

Data/actions/sripts/staff



Data/Actions/actions.xml


- - - Updated - - -

[29/07/2012 19:39:21] [Error - LuaScriptInterface::loadFile] data/actions/scripts/Staff Door.lua:5: 'then' expected near 'doTeleportThing'
[29/07/2012 19:39:21] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/Staff Door.lua)
[29/07/2012 19:39:21] data/actions/scripts/Staff Door.lua:5: 'then' expected near 'doTeleportThing'
[29/07/2012 19:39:21] Reloaded actions.

Then add a god damn "then" on line 5 after "doTeleportThing", you can read right?

onStepIn -- You should use it as a movement instead, if you want to use it as action use "onUse"
 
This is why people shouldn't help anyone who doesn't know how to even put a simple script in their own server, either find a tutorial or simply pay someone to teach you.
 
/\
This

This kind of people is exactly what is killing OT Community -.-'
People that don't know to add a simple script shouldnt host servers, simple as that!
 
man

[30/07/2012 11:38:42] [Error - LuaScriptInterface::loadFile] data/movements/scripts/Staff.lua:5: 'then' expected near 'doTeleportThing'
[30/07/2012 11:38:42] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/Staff.lua)
[30/07/2012 11:38:42] data/movements/scripts/Staff.lua:5: 'then' expected near 'doTeleportThing'

local position = { x = 1032, y = 1028, z = 7 }

function onStepIn(cid, item, frompos, itemEx, topos)
if getPlayerAccess(cid) >= 2
doTeleportPlayer(cid, position)
doPlayerSendTextMessage(cid,21,"You are in.")
else
doTeleportPlayer(cid, fromPosition, TRUE)
doPlayerSendTextMessage(cid,21,"You can't enter unless u are a staff member.")
end
return true
end
<movevent type="StepIn" uniqueid="6000" event="script" value="Staff.lua"/>

- - - Updated - - -

man

[30/07/2012 11:38:42] [Error - LuaScriptInterface::loadFile] data/movements/scripts/Staff.lua:5: 'then' expected near 'doTeleportThing'
[30/07/2012 11:38:42] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/Staff.lua)
[30/07/2012 11:38:42] data/movements/scripts/Staff.lua:5: 'then' expected near 'doTeleportThing'

local position = { x = 1032, y = 1028, z = 7 }

function onStepIn(cid, item, frompos, itemEx, topos)
if getPlayerAccess(cid) >= 2
doTeleportPlayer(cid, position)
doPlayerSendTextMessage(cid,21,"You are in.")
else
doTeleportPlayer(cid, fromPosition, TRUE)
doPlayerSendTextMessage(cid,21,"You can't enter unless u are a staff member.")
end
return true
end

<movevent type="StepIn" uniqueid="6000" event="script" value="Staff.lua"/>

idk whats the probem pls help
 
Now i made do

local position = { x = 1032, y = 1028, z = 7 }

function onStepIn(cid, item, frompos, itemEx, topos)
if getPlayerAccess(cid) >= 2
Then add a god damn "then" on line 5 after "doTeleportThing",(cid, position)
doPlayerSendTextMessage(cid,21,"You are in.")
else
doTeleportPlayer(cid, fromPosition, TRUE)
doPlayerSendTextMessage(cid,21,"You can't enter unless u are a staff member.")
end
return true
end
and again that

[30/07/2012 12:06:11] [Error - GlobalEvent Interface]
[30/07/2012 12:06:11] data/globalevents/scripts/zombie/onthink.lua:eek:nThink
[30/07/2012 12:06:11] Description:
[30/07/2012 12:06:11] data/lib/zombie_event.lua:105: bad argument #2 to 'random' (interval is empty)
[30/07/2012 12:06:11] stack traceback:
[30/07/2012 12:06:11] [C]: in function 'random'
[30/07/2012 12:06:12] data/lib/zombie_event.lua:105: in function 'spawnNewZombie'
[30/07/2012 12:06:12] data/globalevents/scripts/zombie/onthink.lua:6: in function <data/globalevents/scripts/zombie/onthink.lua:1>
[30/07/2012 12:06:12] [Error - GlobalEvents::think] Couldn't execute event: ZombieGlobalThink
[30/07/2012 12:06:16] [Error - LuaScriptInterface::loadFile] data/movements/scripts/Staff.lua:5: 'then' expected near 'Then'
[30/07/2012 12:06:16] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/Staff.lua)
[30/07/2012 12:06:16] data/movements/scripts/Staff.lua:5: 'then' expected near 'Then'

- - - Updated - - -

Now i made do

local position = { x = 1032, y = 1028, z = 7 }

function onStepIn(cid, item, frompos, itemEx, topos)
if getPlayerAccess(cid) >= 2
Then add a god damn "then" on line 5 after "doTeleportThing",(cid, position)
doPlayerSendTextMessage(cid,21,"You are in.")
else
doTeleportPlayer(cid, fromPosition, TRUE)
doPlayerSendTextMessage(cid,21,"You can't enter unless u are a staff member.")
end
return true
end
and again that Error:

[30/07/2012 12:08:25] [Error - LuaScriptInterface::loadFile] data/movements/scripts/Staff.lua:5: 'then' expected near 'Then'
[30/07/2012 12:08:25] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/Staff.lua)
[30/07/2012 12:08:25] data/movements/scripts/Staff.lua:5: 'then' expected near 'Then'
[30/07/2012 12:08:54] Reloaded movements.
 
local position = { x = 1032, y = 1028, z = 7 }

function onStepIn(cid, item, frompos, itemEx, topos)
if getPlayerAccess(cid) >= 2
Then add a god damn "then" on line 5 after "doTeleportThing",(cid, position)
doPlayerSendTextMessage(cid,21,"You are in.")
else
doTeleportPlayer(cid, fromPosition, TRUE)
doPlayerSendTextMessage(cid,21,"You can't enter unless u are a staff member.")
end
return true
end

Troll?

Btw at the end of a line that starts with if you have to type then.
 
Last edited:
Cyro forgot (then) after if
Lua:
local position = { x = 1000, y = 1000, z = 7 }
 
function onStepIn(cid, item, frompos, itemEx, topos)
	if getPlayerAccess(cid) >= 2 then
		doTeleportThing(cid, position)
			doPlayerSendTextMessage(cid,21,"You are in.")
	else
		doTeleportThing(cid, fromPosition, TRUE)
			doPlayerSendTextMessage(cid,21,"You can't enter unless u are a staff member.")
	end
		return true
	                       end
 
sry man my english is very bad !

- - - Updated - - -

Hey can you give me pleas e that script for da door :D but its works fine Thank you very Much
 
Back
Top