Modificasse no arquivo xml o grupo que pode usar?
info
Grupo: Herói
Registrado: 07/03/16
Posts: 1.4k
Reputação: +385
Gênero: Masculino

Editado Agosto 31 por Poccnn
3 minutos atrás, Poccnn disse:Modificasse no arquivo xml o grupo que pode usar?
sim sim, está tudo certo, todas as outras Talk funcionam normalmente, essa funciona tmbm, porem não consigo mandar os players.
Veja como está:
<!-- Gamemasters --> <talkaction words="/save" script="save.lua" /> <talkaction words="/ban" separator=" " script="ban.lua" /> <talkaction words="/ipban" separator=" " script="ipban.lua" /> <talkaction words="/unban" separator=" " script="unban.lua" /> <talkaction words="/up" script="up.lua" /> <talkaction words="/down" script="down.lua" /> <talkaction words="/c" separator=" " script="teleport_creature_here.lua" /> <talkaction words="/goto" separator=" " script="teleport_to_creature.lua" /> <talkaction words="/gotopos" separator=" " script="teleport_to_pos.lua" /> <talkaction words="/t" script="teleport_home.lua" />
info
Grupo: Herói
Registrado: 07/03/16
Posts: 1.4k
Reputação: +385
Gênero: Masculino

Remove isso do código:
Citarif not player:getGroup():getAccess() then return true end
Aqui está o Groups.xml
<?xml version="1.0" encoding="UTF-8"?><groups> <group id="1" name="player" flags="0" access="0" maxdepotitems="0" maxvipentries="0" /> <group id="2" name="gamemaster" flags="137438953471" access="1" maxdepotitems="0" maxvipentries="200" /> <group id="3" name="god" flags="272730398714" access="1" maxdepotitems="0" maxvipentries="200" /></groups>
info
Grupo: Herói
Registrado: 07/03/16
Posts: 1.4k
Reputação: +385
Gênero: Masculino

Não preciso do groups.xml. o que pedi para fazer tu fizes-te?
info
Grupo: Conde
Registrado: 25/04/12
Posts: 752
Reputação: +125
Gênero: Masculino

Testa ai, nao cheguei testar..
NO XML EDITA O <talkaction words="/t" separator=" " script="teleport_home.lua" />
adiciona o separator...
e no .lua
function onSay(player, words, param) if not player:getGroup():getAccess() then return true end if param == '' then player:teleportTo(player:getTown():getTemplePosition()) target = player:getTarget() if not target then return false end else target = Player(param) end if not target then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Player ' .. param .. ' is not currently online.') return false end target:teleportTo(target:getTown():getTemplePosition()) return falseend
Editado Agosto 31 por Cleberadm
1 hora atrás, Poccnn disse:Não preciso do groups.xml. o que pedi para fazer tu fizes-te?
Retirei a parte do código, porem o god não consegue mandar os players para o templo e os players comuns conseguem usar o /t
info
Grupo: Conde
Registrado: 25/04/12
Posts: 752
Reputação: +125
Gênero: Masculino

@marvadon usa o que eu postei ali... acho que vc nao viu!
1 hora atrás, Cleberadm disse:Testa ai, nao cheguei testar..
NO XML EDITA O <talkaction words="/t" separator=" " script="teleport_home.lua" />
adiciona o separator...
e no .lua
function onSay(player, words, param) if not player:getGroup():getAccess() then return true end if param == '' then player:teleportTo(player:getTown():getTemplePosition()) target = player:getTarget() if not target then return false end else target = Player(param) end if not target then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Player ' .. param .. ' is not currently online.') return false end target:teleportTo(target:getTown():getTemplePosition()) return falseend
Funcionou perfeitamente. muito obrigado! ![]()
![]()
![]()
![]()




info
Grupo: Campones
Registrado: 07/11/13
Posts: 75
Reputação: +1
Bom dia Galera,
Estou com problemas em minha talkaction que manda o player para o templo.
Ela manda o God para o templo mas não manda os players.
alguém pode me ajudar?