Ir para conteúdo

Vodkart

Herói
  • Total de itens

    3406
  • Registro em

  • Última visita

  • Dias Ganhos

    113

Tudo que Vodkart postou

  1. Vodkart

    System Points

    nem vou te responder essa do báu porque sinceramente, nem pra ler o tópico? ainda quer ser ajudado? estou com cara de palhaço? poxa, graças a deus que parei de atender esse povinho que nunca muda vou reportar aqui pq o pedido já foi atendido
  2. Vodkart

    System Points

    local lever = { [6001] = {30,7429}, [6002] = {20,7366}, [6003] = {10,8926}, [6004] = {5,5978} } local storage,exausted = 98762,30 function onUse(cid,item,fromPosition,itemEx,toPosition) if getPoints(cid) < lever[item.actionid][1] then return doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "você precisa de "..lever[item.actionid][1].." points.") elseif getPlayerStorageValue(cid, storage) >= os.time() then return doPlayerSendCancel(cid, "wait " .. getPlayerStorageValue(cid, storage) - os.time() .. " seconds to use this item again.") end doPlayerAddItem(cid,lever[item.actionid][2], isItemStackable(lever[item.actionid][2]) and 100 or 1) removePoints(cid,lever[item.actionid][1]) setPlayerStorageValue(cid, storage, os.time()+exausted) doPlayerSendTextMessage(cid,22,"você comprou um " .. getItemNameById(lever[item.actionid][2])) doSendMagicEffect(getCreaturePosition(cid), math.random(28,30)) return true end
  3. ótimo lugar para pedir script em amigo, acho que dar uma procurar em outras áreas não mata
  4. uhaauhauhuahuhaua q bosta eu fiz por alavanca mesmo --' local coin = 9020 -- sua moeda vip local lever = { [9991] = {30,6541}, [9992] = {30,6542}, [9993] = {30,6543}, [9994] = {30,6544}, [9995] = {30,6545} } local arrows = {6541,6542,6543,6544,6545} -- coloque o ID aqui function onUse(cid,item,fromPosition,itemEx,toPosition) if doPlayerRemoveItem(cid,coin,lever[item.actionid][1]) == FALSE then return doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "você precisa de "..lever[item.actionid][1].." " ..getItemNameById(coin)) end doPlayerAddItem(cid,lever[item.actionid][2], isItemStackable(lever[item.actionid][2]) and isInArray(arrows, lever[item.actionid][2]) and 1 or 100) doPlayerSendTextMessage(cid,22,"você comprou um " .. getItemNameById(lever[item.actionid][2])) doSendMagicEffect(getCreaturePosition(cid), math.random(28,30)) return true end
  5. é só colocar naquela array cara --' local coin = 9020 -- sua moeda vip local lever = { [9991] = {30,6541}, [9992] = {30,6542}, [9993] = {30,6543}, [9994] = {30,6544}, [9995] = {30,6545} } local arrows = {6541,6542,6543,6544,6545} -- coloque o ID aqui function onUse(cid,item,fromPosition,itemEx,toPosition) if doPlayerRemoveItem(cid,coin,lever[item.actionid][1]) == FALSE then return doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "você precisa de "..lever[item.actionid][1].." " ..getItemNameById(coin)) end doPlayerAddItem(cid,lever[item.actionid][2], isItemStackable(lever[item.actionid][2]) and isInArray(arrows, lever[item.actionid][2]) and 1 or 100) doPlayerSendTextMessage(cid,22,"você comprou um " .. getItemNameById(lever[item.actionid][2])) doSendMagicEffect(getCreaturePosition(cid), math.random(28,30)) doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945) return true end
  6. do senninha eu não sei, mas já usei a boots of haste e cmg funcionou
  7. Vodka, como eu faço pra comprar so um item ? Exemplo : quero comprar 1 arrow.. so que em vez de vim 1 arrow, ta vindo 100 arrows. É possivel por pra comprar so 1 arrow ?
  8. já tentou usar doPlayerSetSpecialDescription(thing.uid,'.\n' .. rep.getRank(rep.getPoints(thing.uid))) ?
  9. function onStepIn(cid, item, position, fromPosition) function doHealthSecond(cid, quanty, delay) -- function by vodka if not isCreature(cid) then return LUA_ERROR end doCreatureAddHealth(cid, quanty) if delay ~= 1 then addEvent(doHealthSecond, 1000, cid, quanty, delay -1) elseif delay == 1 then doCreatureSetNoMove(cid, false) end end doCreatureSetNoMove(cid, true) doHealthSecond(cid, -100, 10) return true end
  10. eu particularmente não acredito... Sou de virgem.
  11. eu já respondi lá no meu tópico
  12. para quem está com esse erro: É porque em servidores mais recentes não existe mais a função onTimer() então usem dessa forma: function onThink(interval, lastExecution) local days = 15*24*60*60 if tostring(os.date("%X")):sub(1, 5) == "00:00" then doSaveServer() local query = db.getResult("SELECT `owner`,`id` FROM `houses`;") if (query:getID() ~= -1) then while true do local own,houseid = query:getDataInt("owner"),query:getDataInt("id") local qry = db.getResult("SELECT `lastlogin` FROM `players` WHERE `id` = "..own) if(qry:getID() ~= -1) then last = tonumber(qry:getDataInt("lastlogin")) if last < os.time() - days then setHouseOwner(houseid, NO_OWNER_PHRASE,true) end end if not(query:next()) then break end end query:free() end end return true end globalevents.xml <globalevent name="HouseClean" interval="60" event="script" value="houseclean.lua"/> obs: está para executar as "00:00" qualquer coisa só mudar o horário, por exemplo: "22:00"
  13. são quantos arrow? ID deles...
  14. deve ser isso
  15. Vodkart

    Duvida Sobre Party

    em LUA só kikando o player mesmo rsrs ai no caso contrário teria que editar nas source.
  16. ou você também pode usar uma criatura como NPC ou até mesmo player fazer executar uma talk, como /reload npc usando a função doCreatureExecuteTalkAction
  17. como eu imaginei, usou o mesmo método que eu, salvou a voc em uma storage e deu qndo logou é isso ai cara parabens n tenho rep agr pra te da
  18. eu qria ver vc fazer sim se puder posta aqui mesmo
  19. ta loco sky para de postar merda e vai estudar um pouco a linguagem lua, nem é tão difícil. como quer ajudar alguém se nem a si mesmo ajuda?
  20. Vodkart

    Beeki, No Style Emo;

    uiuiui
  21. Vodkart

    Npc Special Item

    local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid local msg = string.lower(msg) local moeda,str = 6527,"" local t = { ["boots of haste"] = {15, 2195}, ["demon helmet"] = {25, 2493}, ["frozen starlight"] = {30, 2361}, ["royal crossbow"] = {20, 8851}, ["solar axe"] = {30, 8925}, ["soft boots"] = {50, 2640}, ["demon armor"] = {100, 2494}, ["firewalker boots"] = {50, 9932}, ["magic plate armor"] = {70, 2472}, ["flame blade"] = {100, 8931} } if isInArray({"trade","special items","special item","items","special"}, msg) then str = str .. "Eu vendo estes items: " for name, pos in pairs(t) do str = str.." {"..name.."} = "..pos[1].." Moedas /" end str = str .. "." npcHandler:say(str, cid) elseif t[msg] then if doPlayerRemoveItem(cid,moeda,t[msg][1]) then doPlayerAddItem(cid,t[msg][2],1) npcHandler:say("Aqui está seu ".. getItemNameById(t[msg][2]) .."!", cid) else npcHandler:say("você não tem "..t[msg][1].." ".. getItemNameById(moeda), cid) end end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) ["boots of haste"] = {15, 2195}, ["item name"] = {QUANTAS MOEDAS, ID DO ITEM QUE SERÁ VENDIDO}
  22. ainda não, ninguém testou manda seu msn ai pra vc testar
  23. eu tinha feito essa função mas não postei ontem porque ficou dando apagão aqui ._. function TransformTiles() for x = 100, 150 do for y = 100, 150 do local m,n = getTileItemById({x=x, y=y, z=7}, 405),getTileItemById({x=x, y=y, z=7}, 406) if m.uid > 0 then doTransformItem(m.uid, 406) elseif n.uid > 0 then doTransformItem(n.uid, 405) end end end return true end
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...