Ir para conteúdo

Mulizeu

Barão
  • Total de itens

    218
  • Registro em

  • Última visita

  • Dias Ganhos

    4

Tudo que Mulizeu postou

  1. nao testei dofile("./_woe.lua") local config = woe_config function onSay(cid, words, param) if words == "/woe" and param == "/!/SETUP" then Woe.setup() return true end Woe.getInfo() local myTable = {} for _, i in ipairs({"%d", "%B", "%Y", "%X"}) do table.insert(myTable, os.date(i, infoLua[4])) end if Woe.isStarted() then text = "time left = " .. Woe.timeToEnd().mins .. ":" .. Woe.timeToEnd().secs .. "\nActually the castle " .. Castle.name .. " is owned by " .. Woe.guildName() .. ".\n" .. Woe.breakerName() .. " broke the empe at "..myTable[1].." / "..myTable[2].." / "..myTable[3].." at time "..myTable[4].."." else text = "the last woe was won by " .. Woe.guildName() .. ".\n" .. Woe.breakerName() .. " broke the empe at "..myTable[1].." / "..myTable[2].." / "..myTable[3].." at time "..myTable[4].."." end if words == "/woe" then if getPlayerAccess(cid) >= config.accessToStar then if param == "on" then if Woe.isTime() ~= true then doBroadcastMessage("War of Emperium will start in next 5 minutes...", config.bcType) doBroadcastMessage("will have a duration of " .. config.timeToEnd .. " Minutes.", config.bcType) setGlobalStorageValue(stor.WoeTime, 1) else doPlayerSendCancel(cid, "WoE is already running.") end elseif param == "off" then if Woe.isTime() == true then doBroadcastMessage("WoE was canceled...", config.bcType) setGlobalStorageValue(stor.WoeTime, 0) setGlobalStorageValue(stor.Started, 0) if isCreature(getThingFromPos(Castle.empePos).uid) == TRUE then doRemoveCreature(getThingFromPos(Castle.empePos).uid) end if getThingFromPos(Castle.desde).itemid > 0 then doRemoveItem(getThingFromPos(Castle.desde).uid) end Woe.removePre() Woe.removePortals() else doPlayerSendCancel(cid, "WoE is not running.") end elseif param == "empe" then doSummonCreature("empe", Castle.empePos) elseif param == "go" then local newPos = Castle.empePos newPos.y = newPos.y + 1 doTeleportThing(cid, newPos, FALSE) elseif param == "info" then doPlayerPopupFYI(cid, text) else doPlayerSendCancel(cid, "not valid param.") end elseif getPlayerAccess(cid) < config.accessToStar then if param == "info" then doPlayerPopupFYI(cid, text) end else doPlayerSendCancel(cid, "not possible.") end if getPlayerStorageValue(cid,13590) ~= 1 then return doPlayerSendCancel(cid,'Somente vips') end elseif words == "!recall" then if Woe.isStarted() == false then if getPlayerGuildLevel(cid) == GUILDLEVEL_LEADER then if Woe.isInCastle(cid) == false then local members = Woe.getGuildMembers(getPlayerGuildId(cid)) if #members > 1 then if(exhaust(cid, stor.recall, config.recallTime) == 1) then for _, i in ipairs(members) do if getPlayerGuildLevel(i) ~= GUILDLEVEL_LEADER then local pos = getClosestFreeTile(cid, getCreaturePosition(cid), FALSE, TRUE) doTeleportThing(i, pos, FALSE) end end doCreatureSay(cid, "Emergency Recall", TALKTYPE_SAY) else doPlayerSendCancel(cid, "you can only use this every " .. config.recallTime / 60 .. " minutes.") end else doPlayerSendCancel(cid, "no members online.") end else doPlayerSendCancel(cid, "only can be used in the castle.") end else doPlayerSendCancel(cid, "you are not the leader.") end else doPlayerSendCancel(cid, "woe is not running.") end end return true end
  2. Ai function onUse(cid, item, frompos, item2, topos) local pos = {x=139,y=58,z=7} local storage = {2455,2456} if isInArray(storage,getPlayerStorageValue(cid)) == -1 then doPlayerSendTextMessage(cid, 21, "Voce entrou na quest") doTeleportThing(cid, pos) else doPlayerSendTextMessage(cid, 21, "Vc nao pode entrar") end return TRUE end
  3. Sim e verdade, eu li mais n percebi que era vip, tava meio desatento!
  4. Vai em creaturescript crie um arquivo lua chamado Premio coloque isso: ----BY MULIZEU---- function onAdvanced(cid, level) if getPlayerLevel(cid) >= 100 then doPlayerAddItem(cid,2160,50) ---edite o quanto de grana o player ira receber doPlayerSendTextMessage(cid,27,'Recebeu premio de lvl 100+') doSendMagicEffect(getPlayerPosition(cid),math.random(1,100)) registerCreatureEvent(cid, "Premio") end return TRUE end creaturescript.xml coloque isso: <event type="advance" name="Premio" event="script" value="premio.lua"/>
  5. Vcs estao com god ou player??? Se tiverem usado god, façam um player e testem!
  6. Tpw eu editei td na boa, com moder acc mais nao consigo criar Character!, saberia me dizer oq e?
  7. Para player level 250 passar coloca uma actions na porta pelo rme assim! 1250 ---no 250 e lvl
  8. Faz assim entao! function onSay(cid, words, param) local config = { exhaust = 120, -- em segundos check = 11548, -- n mexa cobrar = yes, ------ Use yes ou no para cobrar price = 150000 } local nada = {" "} if table.isStrIn(param, nada) or param == "" then doPlayerSendCancel(cid, 22,"Voce precisa falar alguma coisa.") return TRUE elseif (getGlobalStorageValue(cid, config.check) >= os.time()) then doPlayerSendCancel(cid, "Você tem que esperar " .. getGlobalStorageValue(cid, config.check) - os.time() .. " segundos para usar novamente.") return TRUE elseif config.cobrar == yes and doPlayerRemoveMoney(cid,config.price) == FALSE then doPlayerSendCancel(cid,"Você precisa de "..config.price.." gps para poder shoutar.") return TRUE end doBroadcastMessage("["..getCreatureName(cid).."] : " .. param .. "", MESSAGE_EVENT_ADVANCE) setGlobalStorageValue(cid,config.check,os.time()+config.exhaust) return TRUE end Creditos ao vodkart, eu apenas editei storage!
  9. Para nao teleportar o player..! ta ai function onUse(cid, item) local pos1 = {x=90, y=111, z=8} local pos2 = {x=91, y=111, z=8} local pos3 = {x=95, y=111, z=8} local pos4 = {x=96, y=111, z=8} local id1 = 8300 local id2 = 8298 local id3 = 8306 local id4 = 8304 if getItemStack(pos1, id1) and getItemStack(pos2, id2) and getItemStack(pos3, id3) and getItemStack(pos4, id4) then doRemoveItem(getItemStack(pos1, id1).uid, 1) doRemoveItem(getItemStack(pos2, id2).uid, 1) doRemoveItem(getItemStack(pos3, id3).uid, 1) doRemoveItem(getItemStack(pos4, id4).uid, 1) else doPlayerSendCancel(cid, "Algum item está faltando.") end return TRUE end function getItemStack(pos, iid) for i = 1, 255 do posa = getThingFromPos({x=pos.x, y=pos.y, z=pos.z, stackpos=i}) if posa.itemid == iid then return posa end end return nil end
  10. Sem problemas e bom porque me ajuda a prestar mais atenção nos procimos script!
  11. Faz assim entao! function onStepIn(cid, item, fromposition) local pos = {x=232,y=39,z=7, stackpos = 1} local p = x doCreateItem(p,pos) return TRUE end function onStepOut(cid, itemk, fromposition) local pos = {x=232,y=39,z=7,stackpos = 1} doRemoveItem(getThingfromPos(pos).uid,1) return TRUE end coloca msm id exemplo"14400" em actionid e uniqueid um com stepIn outro com stepOut
  12. function onStepIn(cid, item, fromposition) local pos = {x=232,y=39,z=7} local p = x doCreateItem(p,pos) return TRUE end onde ta local p = x coloque o id da pedra!
  13. Sim coloque essa talkactions! <talkaction log="yes" words="Nome do comando" access="5" event="function" value="Nome do arquivo.lua"/> Explicando nome do comando! Exemplo: /skill junior Nome do arquivo.lua: seria o nome que vc colocou no arquivo!
  14. Ve esse! local config = { guildTalksEnabled = getBooleanFromString(getConfigValue('ingameGuildManagement')) } function onSay(cid, words, param, channel) local playerAccess, t = getPlayerAccess(cid), {} for i, talk in ipairs(getTalkActionList()) do if(not talk.hide and playerAccess >= talk.access) then local tmp = talk.words:sub(1, 1):trim() if((guildTalksEnabled or (talk.words ~= "!joinguild" and talk.words ~= "!createguild")) and (tmp == "!" or tmp == "/")) then table.insert(t, talk) end end end table.sort(t, function(a, b) return a.access > b.access end) local lastAccess, str = -1, "" for i, talk in ipairs(t) do local line = "" if(lastAccess ~= talk.access) then if(i ~= 1) then line = "\n" end lastAccess = talk.access end str = str .. line .. talk.words .. "\n" end doShowTextDialog(cid, 2160, str) return true end
  15. Tente assim! function onCombat(cid, target) if (isPlayer(cid) and isPlayer(target)) then if (getPlayerVocation(cid) == getPlayerVocation(target)) then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUMAYNOTATTACKTHISPLAYER) return false end return true end end
  16. Ser distraído é buscar o cavalo em que se está montando

    1. osvaldombg

      osvaldombg

      Ae cara, vc falou que poderia ajuda em umas duvidas, é o seguinte

      Eu troquei o mapa do dash advenced para o kpdo, e qndo abri o ot, tudo tava que nem tibia, chão, o lugar de falar heal.. etc

      Como arrumo isso? se puder passar um otro mapa tbm, pq esse ta sem resp de pokemons e npcs ! se puder ajudar ae Vlw

  17. Pensamentos para pensar!..xD

  18. isso nao e um erro! ele apenas nao ira verificar a quantia maxima de mana do player! mais msm assim vo mudar, para que as pessoas possam ver a quantia maxima de mana!
  19. Eu sempre fasso alguns equivocos em meus scripts...oakasao mais e bom sempre ter alguem para observar e nos ajudar a concertar nossas falhas, obg pela DICA..na proxima vou prestar mais atenção!
  20. Obg Por citar meu creditos! e quanto ao erro do seu amigo eu editei o script aki e n esta ocorrendo mais esse erro que ele havia dito! function getItemsInContainer(cont, sep) local text = "" local tsep = "" local count = "" for i=1, sep do tsep = tsep.."-" end tsep = tsep..">" for i=0, getContainerSize(cont.uid)-1 do local item = getContainerItem(cont.uid, i) if isContainer(item.uid) == FALSE then if item.type > 0 then count = "("..item.type.."x)" end text = text.."\n"..tsep..getItemNameById(item.itemid).." "..count else if getContainerSize(item.uid) > 0 then text = text.."\n"..tsep..getItemNameById(item.itemid) text = text..getItemsInContainer(item, sep+2) else text = text.."\n"..tsep..getItemNameById(item.itemid) end end end return text end function onSay(cid, words, param, channel) if words == "!skill" then if not param or param == "" or not getPlayerByName(param) then doPlayerSendCancel(cid,'Vc nao pode checar isso') end if isPlayer(cid) ~= 0 then local n = getPlayerByName(param) doPlayerPopupFYI(cid,"Nome "..getCreatureName(n).."".."\n\nEle esta no level "..getPlayerLevel(n).." !".."\nEle Tem de Distance "..getPlayerSkill(n,4).." !".."\nEle Tem de sword "..getPlayerSkill(n, 2).." !".."\nEle Tem de axe "..getPlayerSkill(n, 3).." !".."\nEle Tem de club "..getPlayerSkill(n, 1).." !".."\nEle Tem de shield "..getPlayerSkill(n, 5).." !".."\nEle Tem de magiclevel "..getPlayerMagLevel(n).."!".."\nEle Tem de mana "..getPlayerMana(n).." !".."\nEle tem de life "..getCreatureMaxHealth(n).." !") return TRUE end end if(param == "") then doPlayerSendCancel(cid, "Command requires param.") return TRUE end local slotName = {"Head Slot", "Amulet Slot", "Backpack Slot", "Armor Slot", "Right Hand", "Left Hand", "Legs Slot", "Feet Slot", "Ring Slot", "Ammo Slot"} local player = getPlayerByNameWildcard(param) if isPlayer(player) == TRUE then local text = getPlayerName(player).."'s Equipment: " for i=1, 10 do text = text.."\n\n" local item = getPlayerSlotItem(player, i) if item.itemid > 0 then if isContainer(item.uid) == TRUE then text = text..slotName[i]..": "..getItemNameById(item.itemid)..getItemsInContainer(item, 1) else text = text..slotName[i]..": "..getItemNameById(item.itemid) end else text = text..slotName[i]..": Empty" end end doPlayerPopupFYI(cid, text) else doPlayerSendCancel(cid, "This player is not online.") end return TRUE end
  21. vai na pasta movements e coloque isso! function onStepIn(cid, item, position, fromPosition) level = 1000 if getPlayerLevel(cid) < level then doTeleportThing(cid, fromPosition, true) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_RED) doPlayerSendCancel(cid,"Somente level " .. level .. " ou mais podem passar aqui.") end return TRUE end movements.xml coloque essa tag! <movevent type="StepIn" actionid="123321" event="script" value="Nome do arquivo.lua"/> dps abra seu mapa editor coloque o actionid"123321" no piso que vc quer que so player lvl 1000 passe!
  22. Uma talkactions mto simples..porem mto boa ! ela mostra os status do player que vc quizer! Mostra quanto ele tem de axe...sword...shield etc..! bom vamos ao script Se Gosta Da Um REP+! CRIE UM ARQUIVO LUA NA PASTA TALKACTIONS! E COLOQUE ISSO! TALKACTIONS.XML COLOQUE ESSA TAG! PRONTO! Se ja tiver algum iguai aki me desculpem! By:Mulizeu
  23. que legal veii! aki o meu! function onUse(cid,item,position,itemEx,fromPosition) local remove = true if getPlayerSex(cid) == 0 then doPlayerSetSex(cid,1) else doPlayerSetSex(cid,0) return TRUE end if remove == true then doPlayerRemoveItem(cid.item.uid,1) end end
  24. do seu globaleventes ai! function onThink(interval, lastExecution) pos = {x = 152, y = 46, z = 7} pos1 = {x = 152, y = 51, z = 7} pos2 = {x = 152, y = 49, z = 7} pos3 = {x = 113, y = 50, z = 7} pos4 = {x = 160, y = 54, z = 7} pos5 = {x = 405, y = 465, z = 7} doSendAnimatedText(pos, 'Vip', 140) -- Ira mandar Texto animado na pos doSendAnimatedText(pos1, 'Teleports', 140) doSendAnimatedText(pos2, 'Arena', 130) doSendAnimatedText(pos3, 'Treiners', 130) doSendAnimatedText(pos4, 'Bem Vindo', 180) doSendAnimatedText(pos5, 'Quests', 160) doSendMagicEffect(pos, 30) doSendMagicEffect(pos1, 56) doSendMagicEffect(pos2, 56) doSendMagicEffect(pos3, 42) doSendMagicEffect(pos4, 28) doSendMagicEffect(pos5, 56) return true end o outro n sei sem ver script...!
  25. Abra a pasta creaturescripts/scripts do seu ot e crie um arquivo com nome de autoloot.lua e cole o seguinte código: local configs = { ids = {2148, 2152, 2160}, -- adicionado somente os dos dinheiros, mais pode adicionar qual id quiser. premium = true -- só premium usar o Auto loot ? [true ou false] } function getItemsInContainerById(container, itemid) local items = {} if getContainerSize(container) > 0 then for slot=0, (getContainerSize(container)-1) do local item = getContainerItem(container, slot) if isContainer(item.uid) then local itemsbag = getItemsInContainerById(item.uid, itemid) for i=0, #itemsbag do table.insert(items, itemsbag[i]) end else if itemid == item.itemid then table.insert(items, item.uid) end end end end return items end function autoGold(cid, pos, stack) if stack > 255 then return true end local position = {x = pos.x, y = pos.y, z = pos.z, stackpos = stack} local tile = getThingFromPos(position) if isCorpse(tile.uid) then corpse = tile else autoGold(cid, pos, stack + 1) end if corpse ~= nil then for _, idmoney in pairs(configs.ids) do tab = getItemsInContainerById(corpse.uid, idmoney) if #tab ~= 0 then for _, uid in pairs(tab) do item = getThing(uid) doPlayerAddItem(cid, idmoney, item.type) doRemoveItem(item.uid, item.type) end end end end end function onKill(cid, target) if not isPremium(cid) and configs.premium then return true end return addEvent(autoGold, 10, cid, getCreaturePosition(target), 0) end Na mesma pasta procure pelo login.lua abra-o, e antes de return true adicione esta linha: registerCreatureEvent(cid, "AutoLoot") Agora volte na pasta creaturescripts e procure o arquivo creaturescripts.xml e adicione a tag: <event type="kill" name="AutoLoot" event="script" value="AutoLoot.lua"/> Bom para configurar os items que vão ter o loot automático é só abrir o arquivo autoloot.lua e esta logo no começo as configurações: local configs = { ids = {2148, 2152, 2160}, -- adicionado somente os dos dinheiros, mais pode adicionar qual id quiser. premium = true -- só premium usar o Auto loot ? [true ou false] } Tambem quero avisar que o script fica mais funcional em server 9.1 por causa do sistema de juntar o dinheiro sozim, fica muito legal, se usar em uma versão mais antiga, funcionara normal, mais ira fazer um pouco de bagunça na sua bag, hehehehe Creditos 100% Xotservx
  • Quem Está Navegando   0 membros estão online

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