Tudo que Jamison Collins postou
-
AJUDA RAPIDO POR FAVOR
Você tem algum script pronto, porém, que não esteja funcionando ?
-
AntiDivugacao Rev 3884
Bem, Anti-Divulgação não é script lua, e sim codes C++ (eu acho). Há esse tópico que contem o conteúdo desejado : Clique aqui ! Criado pela Sammy !
-
Ajuda urgente
Sim, logo após, salve e reinicie seu servidor.
-
Ajuda urgente
Tente adicionar isso lá no final do config.lua : logsDirectory = "data/logs/"
-
Ajuda urgente
Tem como você me passar seu config.lua ?
-
ajuda item.xml
Se não funcionar o que o Stigal colocou tente fazer isso : <item id="ID" article="a" name="nome do item"> <attribute key="description" value="Descrição 1" /> <attribute key="description" value="Descrição 2" /> </item>
-
[Resolvido] ALGUEM ME AJUDA POR FAVOR
Bem, vou dividir um pouco do script que eu uso, talvez seja melhor, pois eu já testei e não há erros. Crie um arquivo.lua dentro da pasta de script do creaturescript e nomeie para warzones.lua e adicione isso : local bossCreatures = { ["deathstrike"] = {bauStorage = 14540}, ["gnomevil"] = {bauStorage = 15540}, ["abyssador"] = {bauStorage = 16540} } function onKill(cid, target, lastHit) local creature = bossCreatures[string.lower(getCreatureName(target))] if creature then if isPlayer(target) or isSummon(target) then return true end if getPlayerStorageValue(cid, creature.bauStorage) <= 0 then setPlayerStorageValue(cid, creature.bauStorage, 1) end end return true end E adicione essa tag aqui ao creaturescript.xml : <event type="kill" name="warzones" event="script" value="warzones.lua"/> Em seguida, adicione isso no login.lua : registerCreatureEvent(cid, "warzones") Para configurar é só você botar a storage desejada aqui : "["deathstrike"] = {bauStorage = 14540},". Não precisa de tag nos monstros que você botou, ou seja , você pode tirar a tag de script do monstro do Deathstrike. Espero ter ajudado
-
pequena duvida!
Olha amigo, eu quero te ajudar, mas eu vou fazer uma pergunta antes... você tem um pouco de noção de como abre um servidor ? Já abriu algum ? Acha fácil ?
- [Resolvido] ALGUEM ME AJUDA POR FAVOR
-
Esse Jamilson
Ok, o tópico tem o meu nome (eu acho)... e vocês estão um chamando o outro de gay ? AHSIUDHAUIDSHUIDASUIDSA - brs zueiros
-
Ajuda Log Talkactions
Na pasta data do seu servidor, há outra pasta chamada logs e dentro talkactions ? Me mande seu config.lua por favor, para que eu possa ajuda-lo facilmente.
-
[Resolvido] [AJUDA] COORDENADAS QUE O CHAR VAI
Bem, é simples... Abra seu mapa no Remere'sMapEditor, em seguida vá em Maps>Edit Town, abra e você verá o nome das cidades e os números que representam o Town ID de cada cidade. Com isso aberto, vá na pasta do seu site, abra o config.php e procure pelo nome das cidade... assim você vai perceber que há um numero em seguida o nome de uma cidade. Então, você vai comparar com o MapEditor e config.php, se no MapEditor a cidade de Thais estiver com o número 4 (Town ID), você mudará no config.php de acordo que está mostrando no MapEditor. Exemplo : Se no config.php estiver assim : 2 => "Thais" (não sei como é a estrutura real do config.php) e no MapEditor estiver 4, você mudará para 4, assim : 4 => "Thais" E assim vai com todas as demais cidades.
-
Esse Jamilson
???
-
[Resolvido] Erro: otbm loader - could not open the file
Simples, no seu config.lua você deve ter botado o nome do mapa assim : Nomedomapa.otbm, certo ? ou Nomedomapa.otbm.otbm Pois está errado, tente de duas formas, assim : mapName = "xxxx.otbm" e tente assim : mapName = "xxxxx" (sem otbm, e é claro que você vai substituir o nome do seu mapa pelo xxxxx)
-
Cast System TFS 0.4 [8.6]
Bem, acho que é muito difícil de importar esse sistema, eu mesmo já tentei, porém, não consegui. Não mexo muito com C++ :/ Obrigado pelo comentário
-
spellbook
Bem, abra o action.xml e adicione isso : <action itemid="2175;6120;8900-8904;8918;12647;16112;18401" event="script" value="other/spellbook.lua"/> Se você quiser adicionar um item seu, especial, é só você acrescentar o ;IDdoItem que você quer. Exemplo : "2175;6120;8900-8904;8918;12647;16112;18401;7584" Certifique-se se não há uma TAG dessas no seu action.xml, aperte CTRL + F e procure por "spellbook", se tiver é só você adicionar o ;IDdoItem que você quer. Caso você não encontre uma TAG dessas, você vai abrir a pasta Actions>Script>other e criar um arquivo chamado spellbook.lua e adicionar isso : function onUse(cid, item, fromPosition, itemEx, toPosition) local t = {} for i = 0, getPlayerInstantSpellCount(cid) - 1 do local spell = getPlayerInstantSpellInfo(cid, i) if(spell.level ~= 0) then if(spell.manapercent > 0) then spell.mana = spell.manapercent .. "%" end table.insert(t, spell) end end table.sort(t, function(a, b) return a.level < b.level end) local text, prevLevel = "", -1 for i, spell in ipairs(t) do local line = "" if(prevLevel ~= spell.level) then if(i ~= 1) then line = "\n" end line = line .. "Spells for Level " .. spell.level .. "\n" prevLevel = spell.level end text = text .. line .. " " .. spell.words .. " - " .. spell.name .. " : " .. spell.mana .. "\n" end doShowTextDialog(cid, item.itemid, text) return true end E pronto, feche e abra o server para atualizar, ou use o comando /reload action e teste. Esse script veio do grupo TFS.
-
[Medio] CreatureScript ajuda na criação.
Aqui está, tente de novo : function getPlayerFrags(cid) local time = os.time() local times = {today = (time - 86400), week = (time - (7 * 86400))} local contents, result = {day = {}, week = {}, month = {}}, db.getResult("SELECT `pd`.`date`, `pd`.`level`, `p`.`name` FROM `player_killers` pk LEFT JOIN `killers` k ON `pk`.`kill_id` = `k`.`id` LEFT JOIN `player_deaths` pd ON `k`.`death_id` = `pd`.`id` LEFT JOIN `players` p ON `pd`.`player_id` = `p`.`id` WHERE `pk`.`player_id` = " .. getPlayerGUID(cid) .. " AND `k`.`unjustified` = 1 AND `pd`.`date` >= " .. (time - (30 * 86400)) .. " ORDER BY `pd`.`date` DESC") if(result:getID() ~= -1) then repeat local content = {date = result:getDataInt("date")} if(content.date > times.today) then table.insert(contents.day, content) elseif(content.date > times.week) then table.insert(contents.week, content) else table.insert(contents.month, content) end until not result:next() result:free() end local size = { day = table.maxn(contents.day), week = table.maxn(contents.week), month = table.maxn(contents.month) } return size.day + size.week + size.month end function onLogin(cid) registerCreatureEvent(cid, "fraglook") return true end function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) and thing.uid ~= cid then doPlayerSetSpecialDescription(thing.uid,'[Frags: '..getPlayerFrags(thing.uid)..'] ['..(isPremium(thing.uid) == true and "VIP" or "FREE")..']') return true elseif thing.uid == cid then doPlayerSetSpecialDescription(cid,'[Frags: '..getPlayerFrags(cid)..'] ['..(isPremium(cid) == true and "VIP" or "FREE")..']') local string = 'You see yourself.' if getPlayerFlagValue(cid, PLAYERFLAG_SHOWGROUPINSTEADOFVOCATION) then string = string..' You are '.. getPlayerGroupName(cid) ..'.' elseif getPlayerVocation(cid) ~= 0 then string = string..' You are '.. getPlayerVocationName(cid) ..'.' else string = string..' You have no vocation.' end string = string..getPlayerSpecialDescription(cid)..'' if getPlayerGuildId(cid) > 0 then string = string..' You are ' .. (getPlayerGuildRank(cid) == '' and 'a member' or getPlayerGuildRank(cid)) ..' of the '.. getPlayerGuildName(cid) string = getPlayerGuildNick(cid) ~= '' and string..' ('.. getPlayerGuildNick(cid) ..').' or string..'.' end if getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEECREATUREDETAILS) then string = string..'nHealth: ['.. getCreatureHealth(cid) ..' / '.. getCreatureMaxHealth(cid) ..'], Mana: ['.. getCreatureMana(cid) ..' / '.. getCreatureMaxMana(cid) ..'].' string = string..'nIP: '.. doConvertIntegerToIp(getPlayerIp(cid)) ..'.' end if getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEEPOSITION) then string = string..'nPosition: [X:'.. position.x..'] [Y:'.. position.y..'] [Z:'.. position.z..'].' end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, string) return false end return true end
-
[Resolvido] [Ajuda] Storage Por tempo
Você também pode usar esse tipo de mensagem que falará quando você poderá usar de novo esse báu : doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You must wait 7 days to use xxxxx. Next available will be at: " .. os.date("%c", getPlayerStorageValue(cid, 13340)) .. " (Mes;Dia;Ano e horario).")
-
[Resolvido] [Ajuda] Storage Por tempo
Bem, tem esse modo aqui : local daysvalue = 7 * 24 * 60 * 60 time = os.time() + daysvalue setPlayerStorageValue(cid, 13340, time) "daysvalue" está representando no caso, 7 dias. Daqui a 7 dias, o player irá perder o storage 13340.
-
Tile editado [duvida]
Talvez em também não tenha entendido muito bem o que você pediu. Tente reformular sua frase.
-
Tile editado [duvida]
Abra o item.xml, procure pelo ID do item desejado e faça a seguinte modificação : Um item de exemplo : <item id="463" article="a" name="pedestal"/> Você vai procurar pelo ID do item que está representado em vermelho. (id="463") Nome do item que você pode modificar entre aspas para o nome desejado. (name="pedestal")
-
Ajuda Log Talkactions
Certifique-se se suas talkaction estão assim, por exemplo : <talkaction log="yes" words="!aol" script="buyaol.lua" />.
- [Resolvido] BAU QUE DA MANA/LIFE/CRYSTAL..AJUDA?
-
Look com bug
Me mostre seu creaturescript.xml. Se eu achar algo estranho ainda pedirei para que você mostre outros arquivos.
-
(Resolvido)[PEDIDO] Ring Com AutoHeal!
Você quer um anel que te dê 30k de mana e de life por segundo ?