george100 5 Postado Março 28, 2010 Share Postado Março 28, 2010 entao eu queria ajuda com o script de remover skull e tbm ele removeria frag... aqui está o script de remover frags --- 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 ai o kydrai me falo para colocar doPlayerSetRedSkullTicks(pid, (getPlayerRedSkullTicks(pid) + getConfigInfo('timeToDecreaseFrags')) * (- getPlayerFrags(pid))) como ficaria? obrigado Link para o comentário https://xtibia.com/forum/topic/130037-remove-skull-frags/ Compartilhar em outros sites More sharing options...
dragonlorde 17 Postado Abril 2, 2010 Share Postado Abril 2, 2010 Cara isso que voce posto no começo vai remover so a skull e o que o Kydrai falou sim vai remover os frags so que tem 1 coisa que pode te ajudar tambem.. DATABASE! db.executeQuery("DELETE FROM `killers` WHERE `unjustified` = 1;") Essa query aqui remove todos! os frags de todo mundo! Link para o comentário https://xtibia.com/forum/topic/130037-remove-skull-frags/#findComment-858444 Compartilhar em outros sites More sharing options...
ditek 0 Postado Abril 3, 2010 Share Postado Abril 3, 2010 Cara isso que voce posto no começo vai remover so a skull e o que o Kydrai falou sim vai remover os frags so que tem 1 coisa que pode te ajudar tambem.. DATABASE! db.executeQuery("DELETE FROM `killers` WHERE `unjustified` = 1;") Essa query aqui remove todos! os frags de todo mundo! onde boto esse "db.executeQuery("DELETE FROM `killers` WHERE `unjustified` = 1;")" ??? Link para o comentário https://xtibia.com/forum/topic/130037-remove-skull-frags/#findComment-858795 Compartilhar em outros sites More sharing options...
Posts Recomendados