A questão neste tópico de suporte foi encerrada por falta de resposta. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.
- Fórum
- OTServ
- Suporte
- Tópicos Sem Resposta
- [Encerrado] [Encerrado] Duel apenas em pvp zone(PDA)
PX
[Encerrado] [Encerrado] Duel apenas em pvp zone(PDA)
Por PxN, 23 de mai. de 2017 em Tópicos Sem Resposta
3
920
6 meses depois...
info
Grupo: Herói
Registrado: 28/11/10
Posts: 3.4k
Reputação: +585
Gênero: Masculino

29 de novembro de 2017 às 15:21
info
Grupo: Herói
Registrado: 28/11/10
Posts: 3.4k
Reputação: +585
Gênero: Masculino

29 de novembro de 2017 às 15:22
A questão neste tópico de suporte foi encerrada por falta de resposta. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

info
Grupo: Campones
Registrado: 22/04/17
Posts: 30
Reputação: +1
Gênero: Masculino
Ola amigos, boa noite.
Eu queria deixar o duel habilitado apenas se os players estivessem em pvp zone, sera que alguem poderia me ajudar?
-------- DUEL SYSTEM ------------------------if isPlayer(player) and player ~= cid and getPlayerStorageValue(player, 6598754) <= -1 and getPlayerStorageValue(player, 52480) <= -1 and not getCreatureCondition(cid, CONDITION_INFIGHT) then if getPlayerStorageValue(cid, 52480) <= -1 or (getPlayerStorageValue(cid, 52481) >= 1 and getPlayerStorageValue(cid, 52482) ~= -1) then ---local canDuel = truefor s = 1, #storages do if getPlayerStorageValue(cid, storages[s]) >= 1 or getPlayerStorageValue(player, storages[s]) >= 1 then canDuel = false break endendif not canDuel then return doPlayerSendTextMessage(cid, 20, "You can't do that while is Flying, Riding, Surfing, Diving or mount a bike!") endif getPlayerStorageValue(cid, 6598754) == 1 or getPlayerStorageValue(cid, 6598755) == 1 thenreturn doPlayerSendTextMessage(cid, 20, "You can't do that while in PVP zone!")endif getPlayerStorageValue(cid, INOUTLAND) == 1 thenreturn doPlayerSendTextMessage(cid, 20, "You can't do that while in Outland!")endif getPlayerStorageValue(cid, PLAYER_PVP_ARENA) > 0 thenreturn doPlayerSendTextMessage(cid, 20, "You can't duel while in Arena PvP. If you isn't in, please logout.")endif #getCreatureSummons(cid) < 1 thenreturn doPlayerSendTextMessage(cid, 20, "You need a pokemon to invit someone to duel!")endif getPlayerStorageValue(cid, 45765) > 0 thendoPlayerSendTextMessage(cid, 20, "Mew(two) don't want to duel.")return trueendif getTilePzInfo(getThingPos(cid)) or getTilePzInfo(getThingPos(player)) thendoPlayerSendTextMessage(cid, 20, "You can't duel in PZ.")return trueendAi esta a perte que limita os players para o duel, tem como colocar ai uma proteção para apenas quando estiver em pvp zone?