Postado Maio 10, 2013 12 anos Olá Galera alguem tem remover frag por comando pois quando eu coloko removedor de frags por item uso ele em black skull ow red o ot cai =\ ele tira as skulls frag normal mais o ot cai.. baiak tfs 8.6 oq eu quero mesmo é por comando vlw ae quem ajuda OBS: Nao sei se to no lugar certo vlw rep+ pra quem ajudar
Postado Maio 10, 2013 12 anos Olá Galera alguem tem remover frag por comando pois quando eu coloko removedor de frags por item uso ele em black skull ow red o ot cai =\ ele tira as skulls frag normal mais o ot cai.. baiak tfs 8.6 oq eu quero mesmo é por comando vlw ae quem ajuda OBS: Nao sei se to no lugar certo vlw rep+ pra quem ajudar Crie um arquivo chamado removefrag.lua na pasta data/talkactions/scripts e cole isso local moneyRed = 50000 -- Preço cobrado para remover o frag e red skull local moneyBlack = 60000 -- Preço cobrado para remover o frag e black skull local moneySkullNone = 40000 -- Preço cobrado para remover o frag function onSay(cid, words, param, channel) pid = getPlayerGUID(cid) if getCreatureSkullType(cid) == 4 then if doPlayerRemoveMoney(cid, moneyRed) then doCreatureSetSkullType(cid, 0) doPlayerSendTextMessage(cid, 19, 'His frags and red skull were removed for '.. doNumberFormat(moneyRed) ..' golds. You will be logged off in 5 seconds.') doSendMagicEffect(getPlayerPosition(cid), 14) doRemoveConditions(cid, CONDITION_INFIGHT) doRemoveCreature(cid) db.executeQuery("UPDATE players SET skulltime = 0 WHERE id = ".. pid ..";") db.executeQuery("UPDATE killers SET unjustified = 0 WHERE id IN (SELECT kill_id FROM player_killers WHERE player_id = " .. pid .. ");") else doPlayerSendTextMessage(cid, 19, 'You don\'t have enough money, it takes '.. doNumberFormat(moneyRed) ..' golds') doSendMagicEffect(getPlayerPosition(cid), 2) end return TRUE end if getCreatureSkullType(cid) == 5 then if doPlayerRemoveMoney(cid, moneyBlack) then doCreatureSetSkullType(cid, 0) doPlayerSendTextMessage(cid, 19, 'His frags and black skull were removed for '.. doNumberFormat(moneyBlack) ..' golds. You will be logged off in 5 seconds.') doSendMagicEffect(getPlayerPosition(cid), 14) doRemoveConditions(cid, CONDITION_INFIGHT) doRemoveCreature(cid) db.executeQuery("UPDATE players SET skulltime = 0 WHERE id = ".. pid ..";") db.executeQuery("UPDATE killers SET unjustified = 0 WHERE id IN (SELECT kill_id FROM player_killers WHERE player_id = " .. pid .. ");") else doPlayerSendTextMessage(cid, 19, 'You don\'t have enough money, it takes '.. doNumberFormat(moneyBlack) ..' golds') doSendMagicEffect(getPlayerPosition(cid), 2) end return TRUE end if getCreatureSkullType(cid) <= 3 then if doPlayerRemoveMoney(cid, moneySkullNone) then doCreatureSetSkullType(cid, 0) doPlayerSendTextMessage(cid, 19, 'His frags were removed for '.. doNumberFormat(moneySkullNone) ..' golds. You will be logged off in 5 seconds.') doSendMagicEffect(getPlayerPosition(cid), 14) doRemoveConditions(cid, CONDITION_INFIGHT) doRemoveCreature(cid) db.executeQuery("UPDATE players SET skulltime = 0 WHERE id = ".. pid ..";") db.executeQuery("UPDATE killers SET unjustified = 0 WHERE id IN (SELECT kill_id FROM player_killers WHERE player_id = " .. pid .. ");") else doPlayerSendTextMessage(cid, 19, 'You don\'t have enough money, it takes '.. doNumberFormat(moneySkullNone) ..' golds') doSendMagicEffect(getPlayerPosition(cid), 2) end return TRUE end end Adicione essa linha no arquivo talkactions.xml que se encontra na pasta data/talkactions <talkaction words="!remove;/remove" event="script" value="removefrag.lua"/> Testado na distro TFS 8.6 DEV 0.4 (REV3884) e está 100% funcional. Dúvidas? Me avise. Att. Giovani Rodrigo Editado Maio 12, 2013 12 anos por GiovaniRodrigo (veja o histórico de edições) Spoiler local config = { delrey = getPlayerCarValue(cid, DELREY), cigarro = getPlayerCancer(cid, DERBY), prostituta = getPlayerAIDS(cid, cracuda), tresOitao = getPlayerRevorvi(cid, 38) } if(delrey == "Ligado" and cigarro == "Aceso" and prostituta == "No Colo" and tresOitao == "Carregado") then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Começou o fim de semana. #PAS") end
Postado Maio 10, 2013 12 anos Skull remover Dentro da pasta data/talkactions/scripts copie algum arquivo, cole, renomei-o para skullclean.lua e abra-o. Apague tudo o que estiver dentro e cole o seguinte: Quote --- skull remover by kakilo - quinto script function onSay(cid, words, param, channel) if (getCreatureSkullType(cid) == SKULL_BLACK) then if doPlayerRemoveMoney(cid, 200000) then doCreatureSetSkullType(cid, SKULL_NONE) doPlayerSendTextMessage(cid, 22, "Your soul was been cleaned.") else doPlayerSendTextMessage(cid, 22, "You need 200.000 gold pieces to remove the black skull") end end if (getCreatureSkullType(cid) == SKULL_RED) then if doPlayerRemoveMoney(cid, 100000) then doCreatureSetSkullType(cid, SKULL_NONE) doPlayerSendTextMessage(cid, 22, "Your soul was been cleaned.") else doPlayerSendTextMessage(cid, 22, "You need 100.000 gold pieces to remove the red skull") end end if (getCreatureSkullType(cid) == SKULL_WHITE) then if doPlayerRemoveMoney(cid, 10000) then doCreatureSetSkullType(cid, SKULL_NONE) doPlayerSendTextMessage(cid, 22, "Your soul was been cleaned.") else doPlayerSendTextMessage(cid, 22, "You need 10.000 gold pieces to remove the white skull") end end if (getCreatureSkullType(cid) == SKULL_NONE) then doPlayerSendTextMessage(cid, 22, "Your soul clean like water!") end return TRUE end Explicação:Vermelho - Mensagem que o jogador receberá quando limpar alguma skull, configure cada uma correspondendo à skull que será removida.Verde - Valor para remover a skull, se souber pode configurar cada uma por cada skull, se não deixe do jeito que estiverAzul - Mensagem que o jogador receberá se não tiver dinheiro suficienteColocando o script original os preços ficam assim:200k = Black Skull100k = Red Skull10k = White SkullEntre na pasta data/talkactions e abra um arquivo chamado talkactions.xml, cole isto abaixo de alguma linha: Quote <talkaction words="!removerpk" script="skullclean.lua"/> Explicação:Laranja - O que será dito pelo jogador para que as skulls sejam removidas. Créditos: Henrique Moura Procuro Equipe para projeto sério com remuneração, maior necessidade Programador em C\C++.
Postado Maio 10, 2013 12 anos Fausto32 caso for dar CTRL+C - CTRL+V pelo menos arrume o post. Não vejo nenhum Vermelho, Azul, Verde e Laranja como você descreve na explicação. Att. Giovani Rodrigo Spoiler local config = { delrey = getPlayerCarValue(cid, DELREY), cigarro = getPlayerCancer(cid, DERBY), prostituta = getPlayerAIDS(cid, cracuda), tresOitao = getPlayerRevorvi(cid, 38) } if(delrey == "Ligado" and cigarro == "Aceso" and prostituta == "No Colo" and tresOitao == "Carregado") then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Começou o fim de semana. #PAS") end
Postado Maio 10, 2013 12 anos Fausto32 caso for dar CTRL+C - CTRL+V pelo menos arrume o post. Não vejo nenhum Vermelho, Azul, Verde e Laranja como você descreve na explicação. Att. Giovani Rodrigo e tbm tem quote no post kkkkkkkk
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.