[PEDIDO] AJUSTE SISTEMA REP

TomProgammer
em Scripts

TomProgammer

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 10/12/15Posts: 16

Falaaa xtibianos...

 

Galera, to com um script aqui, de rep system, queria saber se alguem consegue privar ele pra um sistema, que matar o player com o msm IP, não da rep.. Entendeu? Sempre tem os safadinhos que abrem MC e vão ficar matando o MC pra ganhar rep.. Será que também consigo tira o sistema da database? As vezes da um lagzin ao player morrer, creio eu q seja por causa da db..

 

 

Bluester

Ervinha
avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 01/07/15Posts: 416Gênero: MasculinoChar no Tibia: Bluester

por que simplesmente não coloca um AntiMC no seu servidor ?

TomProgammer

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 10/12/15Posts: 16

 

 

por que simplesmente não coloca um AntiMC no seu servidor ?

Não está nos meus planos ;s

Danihcv

I'm Coordenador, Bitch!
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 08/04/15Posts: 926Gênero: Masculino

Manda os scripts do sistema.

Te ajudei?? REP+ e ficamos quites... happyy.png

Atenciosamente,
                    Danihcv.
                           Abraços!

TomProgammer

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 10/12/15Posts: 16

Manda os scripts do sistema.

 

function onKill(cid, target, lastHit)

if(isPlayer(target) ~= true) then

return true

end

 

if (isPlayer(cid) == true) and (isPlayer(target) == true) then

if getPlayerSkullType(target) == SKULL_WHITE then

addPlayerRep(cid, 30, TEXTCOLOR_LIGHTBLUE)

elseif getPlayerSkullType(target) == SKULL_YELLOW then

addPlayerRep(cid, 30, TEXTCOLOR_LIGHTBLUE)

elseif getPlayerSkullType(target) == SKULL_RED then

addPlayerRep(cid, 40, TEXTCOLOR_LIGHTBLUE)

elseif getPlayerSkullType(target) == SKULL_BLACK then

addPlayerRep(cid, 45, TEXTCOLOR_LIGHTBLUE)

elseif getPlayerSkullType(target) == SKULL_NONE then

removePlayerRep(cid, 30, TEXTCOLOR_RED)

end

return TRUE

end

end

 

 

 

Creature Script

Danihcv

I'm Coordenador, Bitch!
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 08/04/15Posts: 926Gênero: Masculino


function onKill(cid, target, lastHit)

if(isPlayer(target) ~= true) then

return true

end

 

if getPlayerIp(cid) ~= getPlayerIp(target) then

if (isPlayer(cid) == true) and (isPlayer(target) == true) then

if getPlayerSkullType(target) == SKULL_WHITE then

addPlayerRep(cid, 30, TEXTCOLOR_LIGHTBLUE)

elseif getPlayerSkullType(target) == SKULL_YELLOW then

addPlayerRep(cid, 30, TEXTCOLOR_LIGHTBLUE)

elseif getPlayerSkullType(target) == SKULL_RED then

addPlayerRep(cid, 40, TEXTCOLOR_LIGHTBLUE)

elseif getPlayerSkullType(target) == SKULL_BLACK then

addPlayerRep(cid, 45, TEXTCOLOR_LIGHTBLUE)

elseif getPlayerSkullType(target) == SKULL_NONE then

removePlayerRep(cid, 30, TEXTCOLOR_RED)

end

return true

end

else

doPlayerSendCancel(cid, "The IP of your enemy has to be different from yours.")

end

end

 

Te ajudei?? REP+ e ficamos quites... happyy.png

Atenciosamente,
                    Danihcv.
                           Abraços!

TomProgammer

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 10/12/15Posts: 16

post-388345-0-33285900-1451246001_thumb.png

function onKill(cid, target, lastHit) if(isPlayer(target) ~= true) then return true end if getPlayerIp(cid) ~= getPlayerIp(target) then if (isPlayer(cid) == true) and (isPlayer(target) == true) then if getPlayerSkullType(target) == SKULL_WHITE then addPlayerRep(cid, 30, TEXTCOLOR_LIGHTBLUE) elseif getPlayerSkullType(target) == SKULL_YELLOW then addPlayerRep(cid, 30, TEXTCOLOR_LIGHTBLUE) elseif getPlayerSkullType(target) == SKULL_RED then addPlayerRep(cid, 40, TEXTCOLOR_LIGHTBLUE) elseif getPlayerSkullType(target) == SKULL_BLACK then addPlayerRep(cid, 45, TEXTCOLOR_LIGHTBLUE) elseif getPlayerSkullType(target) == SKULL_NONE then removePlayerRep(cid, 30, TEXTCOLOR_RED) end return true end else doPlayerSendCancel(cid, "The IP of your enemy has to be different from yours.") end end

 

 

 

Dan, o sistema não deixa o player morrer, acc pega life 0, mas eu ainda consigo locomover as acc mesmo estando com vida 0.post-388345-0-32685500-1451246400_thumb.png

Danihcv

I'm Coordenador, Bitch!
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 08/04/15Posts: 926Gênero: Masculino

Vê assim:

function onKill(cid, target, lastHit)
	if(isPlayer(target) ~= true) then
	return true
	end
	
	if getPlayerIp(cid) ~= getPlayerIp(target) then
        if (isPlayer(cid) == true) and (isPlayer(target) == true) then
                if getPlayerSkullType(target) == SKULL_WHITE then
                        addPlayerRep(cid, 30, TEXTCOLOR_LIGHTBLUE)
				elseif getPlayerSkullType(target) == SKULL_YELLOW then
                        addPlayerRep(cid, 30, TEXTCOLOR_LIGHTBLUE)
                elseif getPlayerSkullType(target) == SKULL_RED then
                        addPlayerRep(cid, 40, TEXTCOLOR_LIGHTBLUE)
                elseif getPlayerSkullType(target) == SKULL_BLACK then
                        addPlayerRep(cid, 45, TEXTCOLOR_LIGHTBLUE)
                elseif getPlayerSkullType(target) == SKULL_NONE then
                        removePlayerRep(cid, 30, TEXTCOLOR_RED)
                end
        return true
        end
	else
		doPlayerSendCancel(cid, "The IP of your enemy has to be different from yours.")
	
return true
end
end

Te ajudei?? REP+ e ficamos quites... happyy.png

Atenciosamente,
                    Danihcv.
                           Abraços!

TomProgammer

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 10/12/15Posts: 16

Agora foi, vlw.

Danihcv

I'm Coordenador, Bitch!
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 08/04/15Posts: 926Gênero: Masculino

<p>Tópico movido para dúvidas / pedidos resolvidos.</p>

Te ajudei?? REP+ e ficamos quites... happyy.png

Atenciosamente,
                    Danihcv.
                           Abraços!