Jump to content

Criando Gm,cm,god - Mudando Nome


Secular

Recommended Posts

HÁ DUAS MANEIRAS DE TRANSFORMAR UM PLAYER EM UM GM, CM OU GOD.

POR COMANDO DE GOD:

 

GROUP 1: PLAYER

GROUP 2:TUTOR

GROUP 3:SENIOR TUTOR

GROUP 4: GM

GROUP 5: CM

GROUP 6: GOD

 

FALE COM SEU CHAR GOD NA FRENTE DO JOGADOR QUE VOCÊ DESEJA QUE VIRE GM,CM,GOD,...

/attr group (numero do group que você deseja trasforma-lo)

porem ele nao fica com um nome ex:

Gabriel(player)

gabriel(agora god,gm,cm,... nao fica escrito CM Gabriel,GOD Ga...)

 

para fazer isso você precisa do sqlite studio: um programa que com a database do seu server modifica nome trasforma player em GM,CM,GOD,...

ENTRE OUTRAS VARIAS E COMPLEXAS FUNCÔES!

 

NESTE TÓPICO ENSINAREI VOCES A MUDAREM O NOME DE PLAYERS APOS A FUNÇAO "/attr group (numero)" de god,gm,...

ex:

gabriel

(após este tutorial) [ADM] Gabriel

 

Bom, primeiro Baixe o Sqlite Studio

Clique aqui

 

istale normalmente e apos instalar clique no programa sqlite studio e clique em database/add database:

tutorial1wr.png

 

Depois disto procure e database do seu server o arquivo s3db!

 

tutorial2mr.png

 

Aperte OK!

 

Agora olhe com atenção!

clique aqui:

tuturial3.png

clique na imagem indicada pelo circulo vermelho é um +.

 

Após isso clique no + ao lado de tables e clique duas vezes em players olhe:

totorial4.png

 

Apos clicar 2 vezes em players aparecerá isso:

tutorial5c.png

clique em data lá em cima:

tutorial6.png

Agora é só clicar 2 vezes no nome do player e mudar seu nome! e para mudar o player para GM,CM,GOD Gabriel por ex... PELO SQLITE STUDIO MUDAR O PLAYER PARA GOD,GM,CM,... É SÓ MUDAR O GROUP ID DELE DO MESMO JEITO QUE O COMANDO DE GOD USA O /ATTR GROUP (numero) citado em cima com que numero é god,gm,cm,... essa é a outra maneira! OLHE: :smile_positivo:

 

tutorial7v.png

mude o id para que ele muda para god,cm,gm,...

Lembre - se:

 

GROUP 1: PLAYER

GROUP 2:TUTOR

GROUP 3:SENIOR TUTOR

GROUP 4: GM

GROUP 5: CM

GROUP 6: GOD

 

Gostou? :thumbsupsmiley: :XTibia_smile:

Edited by cmgabriel
Link to comment
Share on other sites

não seria necessário o uso de /attr .... e nem de sqlite se usasse esse script...

 

--[[ GOD System By Subwat gean_riot@hotmail.com]]--  
function onSay(cid, words, param)

local t = string.explode(param, ",")
local player = getPlayerByName(t[1])
local pid = getPlayerByNameWildcard(t[1])
if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with this name doesn\'t exist or is offline.")
return TRUE
end

local acess = {
["god"] = {acess = 6,Name = "[GOD] "..getCreatureName(player)..""},
["cm"] = {acess = 5,Name = "[CM] "..getCreatureName(player)..""},
["gm"] = {acess = 4,Name = "[GM] "..getCreatureName(player)..""},
["senior tutor"] = {acess = 3,Name = "[s Tutor] "..getCreatureName(player)..""},
["tutor"] = {acess = 2,Name = "[Tutor] "..getCreatureName(player)..""}
}

local e = acess[t[2]]
if not(e) then
return doPlayerSendTextMessage(cid, 22, "desculpe,digite god,cm,gm,senior tutor ou tutor !")
end
db.executeQuery("UPDATE `players` SET `name` = '"..e.Name.."' WHERE `id` = "..getPlayerGUID(player)..";")      
setPlayerGroupId(player, e.acess)    
doBroadcastMessage("Saudações ao Novo "..e.Name..".", MESSAGE_EVENT_ADVANCE)   
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYAREA)    
doPlayerSendTextMessage(player,25,"Você será kickado em 3 segundos.")              
addEvent(doRemoveCreature, 3*1000, player, true)  
return TRUE    
end 

 

 

<talkaction words="/group" access="5" script="group.lua"/>

 

@edit digite /group Nome do player,God ou cm ou gm e talz.....

 

o player ganhará a vaga e ainda por cima o Nome GM OU GOD OU SENIOR TUTOR etc.. antes do nome.. bem mais fácil.

Link to comment
Share on other sites

Cara, apenas moderadores podem aprovar tutoriais, então arrume seu tópico, use BBCodes e deixe mais bonito o seu tutorial.

Acho que já tem bastante tutoriais desde tipo, mais um é bem vindo..

Abraços.

Link to comment
Share on other sites

não seria necessário o uso de /attr .... e nem de sqlite se usasse esse script...

 

--[[ GOD System By Subwat gean_riot@hotmail.com]]--  
function onSay(cid, words, param)

local t = string.explode(param, ",")
local player = getPlayerByName(t[1])
local pid = getPlayerByNameWildcard(t[1])
if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with this name doesn\'t exist or is offline.")
return TRUE
end

local acess = {
["god"] = {acess = 6,Name = "[GOD] "..getCreatureName(player)..""},
["cm"] = {acess = 5,Name = "[CM] "..getCreatureName(player)..""},
["gm"] = {acess = 4,Name = "[GM] "..getCreatureName(player)..""},
["senior tutor"] = {acess = 3,Name = "[s Tutor] "..getCreatureName(player)..""},
["tutor"] = {acess = 2,Name = "[Tutor] "..getCreatureName(player)..""}
}

local e = acess[t[2]]
if not(e) then
return doPlayerSendTextMessage(cid, 22, "desculpe,digite god,cm,gm,senior tutor ou tutor !")
end
db.executeQuery("UPDATE `players` SET `name` = '"..e.Name.."' WHERE `id` = "..getPlayerGUID(player)..";")      
setPlayerGroupId(player, e.acess)    
doBroadcastMessage("Saudações ao Novo "..e.Name..".", MESSAGE_EVENT_ADVANCE)   
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYAREA)    
doPlayerSendTextMessage(player,25,"Você será kickado em 3 segundos.")              
addEvent(doRemoveCreature, 3*1000, player, true)  
return TRUE    
end 

 

 

<talkaction words="/group" access="5" script="group.lua"/>

 

@edit digite /group Nome do player,God ou cm ou gm e talz.....

 

o player ganhará a vaga e ainda por cima o Nome GM OU GOD OU SENIOR TUTOR etc.. antes do nome.. bem mais fácil.

 

 

em qual pasta arruma esse script?

Link to comment
Share on other sites

não seria necessário o uso de /attr .... e nem de sqlite se usasse esse script...

 

--[[ GOD System By Subwat gean_riot@hotmail.com]]--  
function onSay(cid, words, param)

local t = string.explode(param, ",")
local player = getPlayerByName(t[1])
local pid = getPlayerByNameWildcard(t[1])
if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with this name doesn\'t exist or is offline.")
return TRUE
end

local acess = {
["god"] = {acess = 6,Name = "[GOD] "..getCreatureName(player)..""},
["cm"] = {acess = 5,Name = "[CM] "..getCreatureName(player)..""},
["gm"] = {acess = 4,Name = "[GM] "..getCreatureName(player)..""},
["senior tutor"] = {acess = 3,Name = "[s Tutor] "..getCreatureName(player)..""},
["tutor"] = {acess = 2,Name = "[Tutor] "..getCreatureName(player)..""}
}

local e = acess[t[2]]
if not(e) then
return doPlayerSendTextMessage(cid, 22, "desculpe,digite god,cm,gm,senior tutor ou tutor !")
end
db.executeQuery("UPDATE `players` SET `name` = '"..e.Name.."' WHERE `id` = "..getPlayerGUID(player)..";")      
setPlayerGroupId(player, e.acess)    
doBroadcastMessage("Saudações ao Novo "..e.Name..".", MESSAGE_EVENT_ADVANCE)   
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYAREA)    
doPlayerSendTextMessage(player,25,"Você será kickado em 3 segundos.")              
addEvent(doRemoveCreature, 3*1000, player, true)  
return TRUE    
end 

 

 

<talkaction words="/group" access="5" script="group.lua"/>

 

@edit digite /group Nome do player,God ou cm ou gm e talz.....

 

o player ganhará a vaga e ainda por cima o Nome GM OU GOD OU SENIOR TUTOR etc.. antes do nome.. bem mais fácil.

 

 

em qual pasta arruma esse script?

Talkactions .-.

Link to comment
Share on other sites

  • 2 months later...
  • 6 months later...
  • 2 weeks later...
  • 2 months later...
  • 4 weeks later...
  • 8 months later...
  • 5 months later...

cara n sei se e o lugar certo pra falar sobre isso mais vamos la..

tipo eu to com meu ot online e site tudo fufando bem...

so o q acontece e o seguinte o pleyer cria a conta quando naice ele vem lvl 1 sem items nenhum

2 poblema e ele naice em um templo q n tem saida ele fik preso sem movimentos queria q ele naicesse em outro lugar como fasso isso me ajudem plz

Link to comment
Share on other sites

×
×
  • Create New...