Postado Dezembro 4, 2012 12 anos Preciso de uma hotkey para tirar red skull, é o seguinte, quando meu char pegar o redskull, eu gostaria que ele falasse a palavra !removeskull. Obrigado.
Postado Dezembro 4, 2012 12 anos open/data/talkactions/scripts/removeskull.lua local exstorage = 1499 -- how many premium points are needed to take off the red skull local COST = 20 -- "yes" or "no" // should it also remove all frags? local REMOVE_FRAGS = "yes" -- effect to use // you can find the list in data/lib/constant.lua local EFFECT = CONST_ME_YELLOW_RINGS function onSay(cid, words, param, channel) if (exhaustion.check(cid, exstorage) == true) then doPlayerSendCancel(cid, "You are exhausted") return false end if getCreatureSkullType(cid) == SKULL_RED then local query = db.getResult("SELECT `premium_points` FROM `accounts` WHERE `id` = " .. getPlayerAccountId(cid) .. ";") local points = query:getDataInt("premium_points") if points >= COST then local update = db.executeQuery("UPDATE `accounts` SET `premium_points`= "..(points - COST).." WHERE `id`= " .. getPlayerAccountId(cid) .. "; ") if (update == true) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Your red skull has been taken off!\nRemaining premium points: " .. (points - COST)) doCreatureSetSkullType(cid, SKULL_NONE) doWriteLogFile("./data/logs/removeskull.log", "Success: " .. getCreatureName(cid)) if (REMOVE_FRAGS == "yes") then doPlayerSetRedSkullTicks(cid, 0) end doSendMagicEffect(getPlayerPosition(cid), effect) else doPlayerSendCancel(cid, "Database error") end else doPlayerSendCancel(cid, "You need " ..COST.. " premium points to remove red skull") end else doPlayerSendCancel(cid, "You do not have red skull") end exhaustion.set(cid, exstorage, 30) if (query ~= nil) then query:free() end return TRUE end open data/talkactions/talkactions.xml (add this) <talkaction words="!removeskull" event="script" value="removeskull.lua"/> TIREI DA NET Ajudei? REP+ http://www.youtube.com/watch?v=xHa6-y2hqrk&feature=youtu.be
Postado Dezembro 4, 2012 12 anos @UP Aqui é seção de bots ele quer uma hotkey que quando o char virar redskull ele fale tal comando no caso "!removeskull". Retirado. Skype: joaoxtibia85.
Postado Dezembro 5, 2012 12 anos Autor open/data/talkactions/scripts/removeskull.lua open data/talkactions/talkactions.xml (add this) TIREI DA NET Então amigo, acho que entendeu errado, eu quero é uma hotkey para tirar o red e não criar o comando para tirar red do meu "OT" que nem existe. Obrigado.
Postado Dezembro 5, 2012 12 anos auto 100 listas ‘RemoveSkull’ | if [$self.skull = 4] say ‘!removeskull’ Basicamente é assim, não testei!
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.