PE
pedido

Sistema De Caveiras Igual Do Warots

Por pedrizito15, 17 de jun. de 2012 em Scripts

help plix
tibia
script
otserv
4
1k
pedrizito15P
17 de junho de 2012 às 20:22

Tipo do script: Skull System

Protocolo (versão do Tibia): 8.6

Servidor utilizado: Speedy War

Nível de experiência: ...

Adicionais/Informações:

 

Queria Um Skull System Igual Do Warots Ou Seja Assim :

 

Se Matar 20 Players Fica Com Yellow Skull

60 Players Green Skull

120 Players Withe Skull

300 Players Red Skull

600 Players Black Skull

Plix Valendo 2 REP+

1 mês depois...
TchubakaT
27 de julho de 2012 às 16:35

isso aki e no player.cpp

if(skull > SKULL_WHITE || (item->getContainer() && rand < loss) || (!item->getContainer() && rand < itemLoss))

 

creaturescript.

function onKill(cid, target, lastHit)
if cid ~= target and isPlayer(target) then
local a = math.max(0, getCreatureStorage(cid, storage)) + 1
doCreatureSetStorage(cid, storage, a)
if a == 50 then
doCreatureSetSkullType(cid, SKULL_GREEN)
elseif a == 100 then
doCreatureSetSkullType(cid, SKULL_WHITE)
elseif a == 200 then
doCreatureSetSkullType(cid, SKULL_YELLOW)
elseif a == 400 then
doCreatureSetSkullType(cid, SKULL_RED)
elseif a == 500 then
doCreatureSetSkullType(cid, SKULL_BLACK)
end
end
return true
end

SubwatS
27 de julho de 2012 às 17:26

pode por em qualquer lugar do player.cpp?

TchubakaT
27 de julho de 2012 às 17:33

eu joguei no meio dps do final de outro. que da certin