HA
pedido

Preciso De Um Script

Por hadamais, 03 de out. de 2012 em Scripts

para pvp enforced
script
31
2.6k
LordfireL
03 de outubro de 2012 às 21:35

Chega Foxmth, chega. Voltemos ao assunto original do tópico.

FoxmthF
03 de outubro de 2012 às 21:36

Cara ve la em cima eu so postei errado 1 vez antes de falar merda pensa odeio isso cara eu ainda sou novo vou ler as regras

e vc fica ai de palhaçada,eu so postei 1 vez pra q alguem pudesse me ajudar q ngm respondeu ajudando no comentario so 1 cara

q reporto e moveu diferente de vc q tira meu rep q coisa mais idiota

 

PAREI

hadamaisH
03 de outubro de 2012 às 21:37

Agora axo que deu certo...não ta caindo nada do meu corpo. Outra duvida é a seguinte:

Os Players começam no lvl 150 no meu serv, mas se for matando vai caindo o lvl.

Eu quero que o minimo que possa chegar amigo, seja 150 mesmo.

Como faço pra ficar estacionado ai?

LuckOakeL
03 de outubro de 2012 às 21:45

@Foxmth

 

Você não é novo, tem mais de 1 mês de conta. E você postou na área errada aqui e no outro tópico, e ainda veio me xingar, deu sorte de não ter levado ban. Certo, não vou mais ficar discutindo pra não desviar o assunto do tópico, ou vai acabar dando problemas pra mim também.

 

@Hadamo

 

Vou tentar te fazer um script aqui, não costumo mexer com creaturescripts.

hadamaisH
03 de outubro de 2012 às 21:47

Aguardo, fico agradecido.

FoxmthF
03 de outubro de 2012 às 21:52

A cala boca eu tenho mais de 1 mês de conta mais mechi 2 ou 3 semanas nao vo discuti contigo q na minha opiniao q nao deveria usar

esse cargo q vc ta usando..meuh.gif

LuckOakeL
03 de outubro de 2012 às 21:53

@Hadamo

 

Adiciona no login.lua antes dos registerCreatureEvent:

 

if getPlayerLevel(cid) < 150 then
doPlayerAddLevel(cid, (150 - getPlayerLevel(cid)))
end

FoxmthF
03 de outubro de 2012 às 21:55

kk vc é tao noob q agora vai fica me dando rep- vsf namoral mt lixo pirralha

hadamaisH
03 de outubro de 2012 às 21:58

antes ou depois? Porque depois tem umas paradinhas parecidas com essas ai.

LuckOakeL
03 de outubro de 2012 às 21:58

@Hadamo

 

Posta seu login.lua aqui que eu coloco pra você. PS: Use spoiler ou code, por favor.

hadamaisH
03 de outubro de 2012 às 21:59
local config = {
loginMessage = getConfigValue('loginMessage')
}
function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
 doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
end
local accountManager = getPlayerAccountManager(cid)
if(accountManager == MANAGER_NONE) then
 local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
 if(lastLogin > 0) then
  doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
  str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
 else
  str = str .. " Please choose your outfit."
  doPlayerSendOutfitWindow(cid)
 end
 doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
elseif(accountManager == MANAGER_NAMELOCK) then
 doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")
elseif(accountManager == MANAGER_ACCOUNT) then
 doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")
else
 doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")
end
if(not isPlayerGhost(cid)) then
 doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
end
registerCreatureEvent(cid, "Mail")
registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "killer")
registerCreatureEvent(cid, "Idle")
registerCreatureEvent(cid, "attackguild")
registerCreatureEvent(cid, "advance")
registerCreatureEvent(cid, "FimVip")
registerCreatureEvent(cid, "SkullCheck")
registerCreatureEvent(cid, "ReportBug")
registerCreatureEvent(cid, VipReceive)
registerCreatureEvent(cid, "deathBroadcast")
registerCreatureEvent(cid, "kill")
registerCreatureEvent(cid, "onPrepareDeath")
registerCreatureEvent(cid, "addon")
registerCreatureEvent(cid, "Reward")
registerCreatureEvent(cid, "firstitems")
registerCreatureEvent(cid, "PlayerKill")
   if (InitArenaScript ~= 0) then
   InitArenaScript = 1
   -- make arena rooms free
    for i = 42300, 42309 do
	    setGlobalStorageValue(i, 0)
	    setGlobalStorageValue(i+100, 0)
    end
   end
   -- if he did not make full arena 1 he must start from zero
   if getPlayerStorageValue(cid, 42309) < 1 then
    for i = 42300, 42309 do
	    setPlayerStorageValue(cid, i, 0)
    end
   end
   -- if he did not make full arena 2 he must start from zero
   if getPlayerStorageValue(cid, 42319) < 1 then
    for i = 42310, 42319 do
	    setPlayerStorageValue(cid, i, 0)
    end
   end
   -- if he did not make full arena 3 he must start from zero
   if getPlayerStorageValue(cid, 42329) < 1 then
    for i = 42320, 42329 do
	    setPlayerStorageValue(cid, i, 0)
    end
   end
   if getPlayerStorageValue(cid, 42355) == -1 then
    setPlayerStorageValue(cid, 42355, 0) -- did not arena level
   end
   setPlayerStorageValue(cid, 42350, 0) -- time to kick 0
   setPlayerStorageValue(cid, 42352, 0) -- is not in arena 
return true
end

LuckOakeL
03 de outubro de 2012 às 22:01

Tó:

 

 

local config = {

loginMessage = getConfigValue('loginMessage')

}

function onLogin(cid)

local loss = getConfigValue('deathLostPercent')

if(loss ~= nil) then

doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)

end

local accountManager = getPlayerAccountManager(cid)

if(accountManager == MANAGER_NONE) then

local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage

if(lastLogin > 0) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)

str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."

else

str = str .. " Please choose your outfit."

doPlayerSendOutfitWindow(cid)

end

doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)

elseif(accountManager == MANAGER_NAMELOCK) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")

elseif(accountManager == MANAGER_ACCOUNT) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")

else

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")

end

if(not isPlayerGhost(cid)) then

doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)

end

if getPlayerLevel(cid) < 150 then

doPlayerAddLevel(cid, (150 - getPlayerLevel(cid)))

end

registerCreatureEvent(cid, "Mail")

registerCreatureEvent(cid, "GuildMotd")

registerCreatureEvent(cid, "killer")

registerCreatureEvent(cid, "Idle")

registerCreatureEvent(cid, "attackguild")

registerCreatureEvent(cid, "advance")

registerCreatureEvent(cid, "FimVip")

registerCreatureEvent(cid, "SkullCheck")

registerCreatureEvent(cid, "ReportBug")

registerCreatureEvent(cid, VipReceive)

registerCreatureEvent(cid, "deathBroadcast")

registerCreatureEvent(cid, "kill")

registerCreatureEvent(cid, "onPrepareDeath")

registerCreatureEvent(cid, "addon")

registerCreatureEvent(cid, "Reward")

registerCreatureEvent(cid, "firstitems")

registerCreatureEvent(cid, "PlayerKill")

if (InitArenaScript ~= 0) then

InitArenaScript = 1

-- make arena rooms free

for i = 42300, 42309 do

setGlobalStorageValue(i, 0)

setGlobalStorageValue(i+100, 0)

end

end

-- if he did not make full arena 1 he must start from zero

if getPlayerStorageValue(cid, 42309) < 1 then

for i = 42300, 42309 do

setPlayerStorageValue(cid, i, 0)

end

end

-- if he did not make full arena 2 he must start from zero

if getPlayerStorageValue(cid, 42319) < 1 then

for i = 42310, 42319 do

setPlayerStorageValue(cid, i, 0)

end

end

-- if he did not make full arena 3 he must start from zero

if getPlayerStorageValue(cid, 42329) < 1 then

for i = 42320, 42329 do

setPlayerStorageValue(cid, i, 0)

end

end

if getPlayerStorageValue(cid, 42355) == -1 then

setPlayerStorageValue(cid, 42355, 0) -- did not arena level

end

setPlayerStorageValue(cid, 42350, 0) -- time to kick 0

setPlayerStorageValue(cid, 42352, 0) -- is not in arena

return true

end

 

hadamaisH
03 de outubro de 2012 às 22:09

bom, tem que ver se vai dar certo agora, mas ja deixo meu rep. sua atenção foi essêncial.

VodkartV
03 de outubro de 2012 às 22:16

kk vc é tao noob q agora vai fica me dando rep- vsf namoral mt lixo pirralha

 

único pirralho aqui é você seu ignorante, o luck está tentando ajudar e promover a colaboração, e você? além de xingar só acaba prejudicando a si mesmo, reportei e você será suspendo por algum tempo, que bonito pra sua cara.

hadamaisH
04 de outubro de 2012 às 01:29

bom, estou com outro problema.

Quando os players matam não recebe dinheiro de recompensa.

Recebe outras coisas, menos dinheiro.

eu quero que receba dinheiro, me ajuda?