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

[v] in front of character name

Emtrex

New Member
Joined
Aug 31, 2013
Messages
47
Reaction score
0
Whenever i log in to my server i get the message "You will be disconnected and will be required to put the login and password again."
And when I logging again my character has "[v]" in front of his name.
This is in my login.lua file.

[local id,nm,qry = getPlayerAccountId(cid),string.find (getCreatureName(cid), "(%[+)%v*(%]+)%s*"),""
if isPremium(cid) and nm == nil then
qry = "UPDATE `theforgottenserver`.`players` SET `name` = '[v] "..getCreatureName(cid).."' WHERE `players`.`account_id`= "..id..";"
elseif (not isPremium(cid)) and nm ~= nil then
local nnome = string.gsub(getCreatureName(cid), "(%[+)%v*(%]+)%s*", "")
qry = "UPDATE `theforgottenserver`.`players` SET `name` = '"..nnome.."' WHERE `players`.`account_id`= "..id..";"
end
if qry ~= "" then
db.executeQuery(qry)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You will be disconnected and will be required to put the login and password again.")
addEvent(doRemoveThing,3000,cid)
end
return true
Thaks in advance!
 
Back
Top Bottom