Postado Julho 11, 2014 10 anos 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
Postado Julho 11, 2014 10 anos 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 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. lu.lukinha [email protected]
Postado Julho 11, 2014 10 anos 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 Julho 12, 2014 10 anos 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 Ajudei = REP+ Não dou suporte por PM qualquer dúvida procure no fórum,caso não encontre oque procura crie um tópico. [email protected]" /> | TFS 0.4 DEV | %5Bcreaturescript%5D Icones no minimap com descrição%5Btalkaction%5D Adicionar ou remover VIP do player.%5Bcreaturescripts%5D Senha para porta%5Btalkaction%5D Mandar mensagem para pasta do servidorMapa Evento War Castle%5Baction%5D Canoa em MovimentoTeleport Scroll System%5Bcreaturescripts%5D Recompensa por level para X vocations%5Btalkaction%5D Adicionar X item para o player%5Btalkactions%5D Adicionar item para todos players online%5Baction%5D Item que teleporta o player para house[action+movement] Passaporte para entrar no barco
Postado Julho 12, 2014 10 anos 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.