Ir para conteúdo

Featured Replies

Postado

Tenho Um Script De Point De Guando Matar O Bicho E Depositado Na Acc Do Player 1 Point
 
 
Mas Guando O Player Mata O Bicho 2  O Serve Cai o Serve Como Faz Para Arrumar

 

 

 

 

 

 

 

 

 

 

 

 

 

local config = {
storagekill = 119499, --- storage q conta a quantidade de kills
times = 1, --- quantidade de vezes que tenho que matar
}
function onKill(cid, target, lastHit)
local killed = getPlayerStorageValue(cid,config.storagekill)
local points = 1
 
if isMonster(target) and getCreatureName(target):lower() == 'aegis' then
if killed > config.times then
doPlayerSendTextMessage(cid,22,"Congratulations, voce matou "..getCreatureName(target).." and earned "..points.." point(s)!")
addPoints(cid,points)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você tem "..getPoints(cid).." Points.")
else
doPlayerSendTextMessage(cid,22,"Congratulations, voce matou "..getCreatureName(target).." and earned "..points.." point(s)!")
addPoints(cid,points)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você tem "..getPoints(cid).." Points.")
end
 
end 
return true

 

end

 

 

 

 
 
 
 
 
 

  • Respostas 5
  • Visualizações 663
  • Created
  • Última resposta

Top Posters In This Topic

Postado

Tente:

local config = {
storagekill = 119498, --- storage q conta a quantidade de kills
}
function onKill(cid, target, lastHit)
local killed = getPlayerStorageValue(cid,config.storagekill)
 
if isMonster(target) and getCreatureName(target):lower() == 'aegis' then
if killed > config.times then
doPlayerSendTextMessage(cid,22,"Congratulations, voce matou "..getCreatureName(target).." and earned "..points.." point(s)!")
addPoints(cid,points,1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você tem "..getPoints(cid).." Points.")
else
doPlayerSendTextMessage(cid,22,"Congratulations, voce matou "..getCreatureName(target).." and earned "..points.." point(s)!")
addPoints(cid,points,1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você tem "..getPoints(cid).." Points.")
end
 
end 
return true
 
end

YDmXTU2.png

 

Entenda tudo sobre VPS, DEDICADOS & HOSPEDAGENS. => Clique aqui

Global Full Download 10.9x - TFS 1.2/FERUMBRAS/KRAILOS. => Clique aqui

 

Muitos querem aquilo que você tem, 
mas vão desistir quando souberem o preço que você pagou.

 

skype-favicon.png lu.lukinha

message-16.png [email protected]

Postado
  • Autor

 

Tente:

local config = {
storagekill = 119498, --- storage q conta a quantidade de kills
}
function onKill(cid, target, lastHit)
local killed = getPlayerStorageValue(cid,config.storagekill)
 
if isMonster(target) and getCreatureName(target):lower() == 'aegis' then
if killed > config.times then
doPlayerSendTextMessage(cid,22,"Congratulations, voce matou "..getCreatureName(target).." and earned "..points.." point(s)!")
addPoints(cid,points,1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você tem "..getPoints(cid).." Points.")
else
doPlayerSendTextMessage(cid,22,"Congratulations, voce matou "..getCreatureName(target).." and earned "..points.." point(s)!")
addPoints(cid,points,1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você tem "..getPoints(cid).." Points.")
end
 
end 
return true
 
end
[11/07/2014 19:02:14] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/aegis.lua:1: unexpected symbol near 'ï'
[11/07/2014 19:02:14] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/aegis.lua)
[11/07/2014 19:02:14] data/creaturescripts/scripts/aegis.lua:1: unexpected symbol near 'ï'
 
 
Deu Isso
Postado

Você deve ter copiado algo de errado,tente excluir o script e adicionar novamente :

local config = {
storagekill = 119498, --- storage q conta a quantidade de kills
}
function onKill(cid, target, lastHit)
local killed = getPlayerStorageValue(cid,config.storagekill)

if isMonster(target) and getCreatureName(target):lower() == 'aegis' then
if killed > config.times then
doPlayerSendTextMessage(cid,22,"Congratulations, voce matou "..getCreatureName(target).." and earned "..points.." point(s)!")
addPoints(cid,points,1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você tem "..getPoints(cid).." Points.")
else
doPlayerSendTextMessage(cid,22,"Congratulations, voce matou "..getCreatureName(target).." and earned "..points.." point(s)!")
addPoints(cid,points,1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você tem "..getPoints(cid).." Points.")
end

end
return true
end

Postado
  • Autor

 

Você deve ter copiado algo de errado,tente excluir o script e adicionar novamente :

local config = {
storagekill = 119498, --- storage q conta a quantidade de kills
}
function onKill(cid, target, lastHit)
local killed = getPlayerStorageValue(cid,config.storagekill)

if isMonster(target) and getCreatureName(target):lower() == 'aegis' then
if killed > config.times then
doPlayerSendTextMessage(cid,22,"Congratulations, voce matou "..getCreatureName(target).." and earned "..points.." point(s)!")
addPoints(cid,points,1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você tem "..getPoints(cid).." Points.")
else
doPlayerSendTextMessage(cid,22,"Congratulations, voce matou "..getCreatureName(target).." and earned "..points.." point(s)!")
addPoints(cid,points,1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você tem "..getPoints(cid).." Points.")
end

end
return true
end

Ja Fis Isso Mas Agora Nao Cai Mais O Serv Nao Cai Eo Point

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo