Postado Outubro 5, 2017 7 anos Autor 22 horas atrás, Tauzyu disse: É entra pelo mapa editor na area do evento cooloca no-pvp. Também não é isso, e coloquei o pvp tile. 23 horas atrás, Enzo Caue disse: Eu não acredito que seja um erro no script e sim no mapa. Também não é isso 21 horas atrás, Dwarfer disse: Se eles forem do mesmo time, não poderá atacar. Como está demonstrado na parte do script: function onCombat(cid, target) if isPlayer(cid) and isPlayer(target) then if getPlayerStorageValue(cid, DUCA.STORAGE_TEAM) > 0 then if getPlayerStorageValue(cid, DUCA.STORAGE_TEAM) == getPlayerStorageValue(target, DUCA.STORAGE_TEAM) then return false end end end return true end È o time adversário
Postado Outubro 5, 2017 7 anos 1 hora atrás, JcA disse: Também não é isso, e coloquei o pvp tile. Também não é isso È o time adversário então, mas mesmo que vc coloque o pvp tile, se tiver um npvp em baixo nao vai funcionar.. mas se vc diz que nao é, ok. deixo para os scripters de plantão.
Postado Outubro 5, 2017 7 anos Autor 9 horas atrás, Enzo Caue disse: então, mas mesmo que vc coloque o pvp tile, se tiver um npvp em baixo nao vai funcionar.. mas se vc diz que nao é, ok. deixo para os scripters de plantão. Não é isso, ja testei
Postado Outubro 6, 2017 7 anos É como o @Dwarfer disse, o script ta para não atacar somente quem for do mesmo time... Troca isto: Spoiler function onCombat(cid, target) if isPlayer(cid) and isPlayer(target) then if getPlayerStorageValue(cid, DUCA.STORAGE_TEAM) > 0 then if getPlayerStorageValue(cid, DUCA.STORAGE_TEAM) == getPlayerStorageValue(target, DUCA.STORAGE_TEAM) then return false end end end return true end Por isto, e seja feliz: Spoiler function onCombat(cid, target) if isPlayer(cid) and isPlayer(target) and getPlayerStorageValue(cid, DUCA.STORAGE_TEAM) > 0 and getPlayerStorageValue(target, DUCA.STORAGE_TEAM) > 0 then return false end return true end -- EDIT PS:.. se for reputar alguém, repute o @Dwarfer, pois ele foi quem já tinha visto isto que falei, eu praticamente não tive trabalho nenhum. Editado Outubro 6, 2017 7 anos por antharaz (veja o histórico de edições)
Postado Outubro 6, 2017 7 anos Autor 40 minutos atrás, antharaz disse: É como o @Dwarfer disse, o script ta para não atacar somente quem for do mesmo time... Troca isto: Ocultar conteúdo function onCombat(cid, target) if isPlayer(cid) and isPlayer(target) then if getPlayerStorageValue(cid, DUCA.STORAGE_TEAM) > 0 then if getPlayerStorageValue(cid, DUCA.STORAGE_TEAM) == getPlayerStorageValue(target, DUCA.STORAGE_TEAM) then return false end end end return true end Por isto, e seja feliz: Ocultar conteúdo function onCombat(cid, target) if isPlayer(cid) and isPlayer(target) and getPlayerStorageValue(cid, DUCA.STORAGE_TEAM) > 0 and getPlayerStorageValue(target, DUCA.STORAGE_TEAM) > 0 then return false end return true end -- EDIT PS:.. se for reputar alguém, repute o @Dwarfer, pois ele foi quem já tinha visto isto que falei, eu praticamente não tive trabalho nenhum. Ainda sim não funciona, tentou atacar e não deixa --[[ <!-- DUCA Event --> <event type="login" name="Duca-Login" event="script" value="DUCA_creaturescript.lua"/> <event type="logout" name="Duca-Logout" event="script" value="DUCA_creaturescript.lua"/> <event type="preparedeath" name="Duca-Death" event="script" value="DUCA_creaturescript.lua"/> <event type="combat" name="Duca-Combat" event="script" value="DUCA_creaturescript.lua"/> ]]-- dofile('data/lib/DUCA.lua') function onLogin(cid) if getPlayerStorageValue(cid, DUCA.STORAGE_TEAM) > 0 then DUCA.removePlayer(cid) end return true end function onLogout(cid) if getPlayerStorageValue(cid, DUCA.STORAGE_TEAM) > 0 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You can not logout now!") return false end return true end function onPrepareDeath(cid, deathList, lastHitKiller, mostDamageKiller) local pontos = {[1] = 1, [2] = 1, [3] = 10, [4] = 30,} if getPlayerStorageValue(cid, DUCA.STORAGE_TEAM) > 0 then local pontos_ganhos = pontos[getPlayerStorageValue(cid, DUCA.STORAGE_TEAM)] setPlayerStorageValue(deathList[1], DUCA.TOTAL_PONTOS, getPlayerStorageValue(deathList[1], DUCA.TOTAL_PONTOS) + pontos_ganhos) doPlayerSendTextMessage(deathList[1], MESSAGE_STATUS_CONSOLE_BLUE, "You have ".. getPlayerStorageValue(deathList[1], DUCA.TOTAL_PONTOS) .." duca points.") DUCA.removePlayer(cid) DUCA.updateRank() end return false end function onCombat(cid, target) if isPlayer(cid) and isPlayer(target) and getPlayerStorageValue(cid, DUCA.STORAGE_TEAM) > 0 and getPlayerStorageValue(target, DUCA.STORAGE_TEAM) > 0 then return false end return true end
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.