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

[resolved] (close)

Morrison

Intermediate OT User
Joined
Mar 15, 2009
Messages
283
Solutions
3
Reaction score
123
Location
Exive me
GitHub
none
i need the next Script for war ot:
Code:
local nPos = {
x = 1000,
y = 1000,
z = 7
}

function onlogin(-------------)
       if PLAYERSEX_FEMALE then
          doTeleportThing(cid, nPos)
	end
	return TRUE
end

And how to change the letters in account manager in male or female to Warrior or Princess

Code:
Account Manager: Should your character be a 'male' or a'female'.
Account Manager: A male, are you sure?

Code:
Account Manager: Should your character be a 'Warrior' or a'Princess'.
Account Manager: A Warrior, are you sure?
 
Last edited:
??
LUA:
local nPos = {
x = 1000,
y = 1000,
z = 7
}

function onLogin(cid)
    return (getPlayerSex(cid) == 0) and doTeleportThing(cid, nPos) or end    
return true
end
 
hey te script have a one problem

[14/03/2010 21:19:35] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/onloginfemale.lua:8: unexpected symbol near 'end'
[14/03/2010 21:19:35] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/onloginfemale.lua)
[14/03/2010 21:19:35] data/creaturescripts/scripts/onloginfemale.lua:8: unexpected symbol near 'end'

local nPos = {
x = 1008,
y = 1008,
z = 7
}

function onLogin(cid)
return (getPlayerSex(cid) == 0) and doTeleportThing(cid, nPos) or end
return true
end
 
try this
LUA:
local nPos = {
x = 1000,
y = 1000,
z = 7
}

function onLogin(cid)
    if getPlayerSex(cid) == 0 then
          doTeleportThing(cid, nPos)
    else
          return false
    end
return true
end
 
Ok ty And how to convinate Pos for males and pos for females?

local nPos Male= {x = 1000, y = 1000,z = 7}

local nPos Female= {x = 1150, y = 1150,z = 7}

function onLogin(cid)
if getPlayerSex(cid) == 0 then
doTeleportThing(cid, nPos)
end
return true
end
 
LUA:
local nPos= {
        [0] = {x = 1150, y = 1150,z = 7}, --female pos
        [1] = {x = 1000, y = 1000,z = 7}  --male pos
        }
        
function onLogin(cid)
    if getPlayerSex(cid) < 2 then --won't teleport GM's, GODs
        doTeleportThing(cid, nPos[getPlayerSex(cid)])
    end
return true
end
 
Back
Top