Tudo que texzin postou
-
[Resolvido] Amuleto Vip
@@@@@@@UPPPPP
-
[Resolvido] Sobre dedicado
pra começar está é uma boa empresa !
- [AJUDA RAPIDO URGENTE] Debug Sempre
-
[Resolvido] Amuleto Vip
o Amulto n ta dropando mano.. os items estão dropando se eu nao estiver pk ! Vou testar aqi .. EDIT : Agora o amuleto esta sumindo..Como faço pra ele não sumir?
-
[Resolvido] Amuleto Vip
Funcionou em partes ! Ele nao perde item se tiver red e black.. mais se tiver nomal perde... :S Edit : Mesmo assim obrigador por ajudar ! Ainda estou tentando se alguém puder ajudar !
-
[Resolvido] Amuleto Vip
Tem como criar um ITEM (AMULETO) infinito. Cuja sua função seja não dropar items de maneira alguma.. Incluido RED E BLACK SKULL Eu ja tenho o AMULETO só não consigo fazer o script.. id= 8266 Seria um Item donate ! Versão 8.60 Uso tfs 0.3.6
-
Pedido de SCRIPT
Olá galera... creio eu que seja em MOVEMENTS.. Eu gostaria de um script assim : No meu otserv tem um 'Teleporte' que leva o player a um 'EVENTO DICE' -Tipo assim ao entrar neste teleporte os players tipo ficam em FILA.. Eu gostaria de um script assim. Como esse evento é destinado a players novos. eu gostaria de fazer assim ... PLAYERS DE LVL 1 A 300 PODEM PASSAR NO PISO TAL Players maiores que 300 não pode Isso é possivel de se fazer ? eu vi um script aqi onde lvl 500 + pode passar.. mais eu queria ao contrario lvl 300 + n pode passar
-
ExpPotion
Agora nao esta dando erro ! Porem fica um numero muito grande de minutos.. quando o player q tomou a potion reloga .. ou morre sla e tem qe entra de novo o server trava ! por uns 4 a 9 segundos
-
ExpPotion
Deu erro mano =s e não da tempo de ver pois o distro fecha sozin! mesmo assim obrigado
-
ExpPotion
Eu gostaria sim... se vc puder ajudsr !
-
ExpPotion
Eu fiz essa conta... mais estragou minha database . Da lostconection.. Fode tudo... Eu queria uma por ACTION e n por mods
-
ExpPotion
MODS <?xml version="1.0" encoding="UTF-8"?> <mod name="AdvancedExpPotionSystem" enabled="yes" author="MatheusMkalo" forum="LINKREMOVIDO"> <!-- Configs and Functions --> <config name="PotionExpConfigs"><![CDATA[ ------ CONFIGURE SEU SCRIPT ------ TRUE ou FALSE configs = { time = 1, ---- TIME IN MINUTES needpa = TRUE, needlvl = {TRUE, level = 50}, costmana = {TRUE, mana = 300}, addrate = 20, -- Exp que vai adicionar em % removeonuse = TRUE } function getTime(s) local n = math.floor(s / 60) s = s - (60 * n) return n, s end CreatureEventChecker = function(event, ...) -- Colex if isCreature(arg[1]) then event(unpack(arg)) end end creatureEvent = function(event, delay, ...) -- Colex addEvent(CreatureEventChecker, delay, event, unpack(arg)) end function getPlayerExtraExpRate(cid) -- By MatheusMkalo return (getPlayerRates(cid)[8]-1)*100 end ]]></config> <!-- exppotion.lua --> <action itemid="7440" event="script"><![CDATA[ domodlib('PotionExpConfigs') if getPlayerStorageValue(cid, 62164) >= 1 then return doPlayerSendCancel(cid, "You are already taking effect from this item.") end if configs.needpa and not isPremium(cid) then return doPlayerSendCancel(cid, "You need to be a premmium account to use this item.") end if configs.needlvl[1] and getPlayerLevel(cid) < configs.needlvl.level then return doPlayerSendCancel(cid, "You need to be level " .. configs.needlvl.level .. " to use this item.") end if configs.costmana[1] then if getCreatureMana(cid) < configs.costmana.mana then return doPlayerSendCancel(cid, "You need " .. configs.costmana.mana .. " mana to use this item.") else doCreatureAddMana(cid, -configs.costmana.mana) end end if configs.removeonuse then doRemoveItem(item.uid, 1) end for i = configs.time*60, 1, -1 do local a = math.floor(i/60) .. ":" .. i - (60 * math.floor(i/60)) if #a < 4 then a = string.sub(a,1,2) .. "0" .. string.sub(a, 3) end if i == configs.time*60 then creatureEvent(doPlayerSendCancel, configs.time*60*1000, cid, "The effect of the exp potion end.") end creatureEvent(doPlayerSendCancel, (configs.time*60-i)*1000, cid, "The effect of the exp potion will end in "..a..".") end doPlayerSetExperienceRate(cid, (1+(configs.addrate/100))+(getPlayerExtraExpRate(cid)/100)) creatureEvent(doPlayerSetExperienceRate, configs.time *60*1000, cid, 1+(getPlayerExtraExpRate(cid)/100-(configs.addrate/100))) doPlayerSendTextMessage(cid, 22, "Agora voce ira receber mais exp por matar os mosntros.") setPlayerStorageValue(cid, 62164, os.time()) creatureEvent(setPlayerStorageValue, configs.time *60*1000, cid, 62164, 0) return TRUE ]]></action> <creaturescript type="login" name="ExpPotion" event="script"><![CDATA[ domodlib('PotionExpConfigs') local time = configs.time if os.time()-getPlayerStorageValue(cid, 62164) < time *60 then doPlayerSetExperienceRate(cid, (1+(configs.addrate/100))+(getPlayerExtraExpRate(cid)/100)) creatureEvent(doPlayerSetExperienceRate, (time*60-(os.time()-getPlayerStorageValue(cid, 62164))) * 1000, cid, 1+(getPlayerExtraExpRate(cid)/100-(configs.addrate/100))) creatureEvent(setPlayerStorageValue, (time*60-(os.time()-getPlayerStorageValue(cid, 62164))) * 1000 , cid, 62164, 0) for i = (time*60-(os.time()-getPlayerStorageValue(cid, 62164))), 1, -1 do local a = math.floor(i/60) .. ":" .. i - (60 * math.floor(i/60)) if #a < 4 then a = string.sub(a,1,2) .. "0" .. string.sub(a, 3) end if i == (time*60-(os.time()-getPlayerStorageValue(cid, 62164))) then creatureEvent(doPlayerSendCancel, (time*60-(os.time()-getPlayerStorageValue(cid, 62164)))*1000, cid, "The effect of the exp potion end.") end creatureEvent(doPlayerSendCancel, ((time*60-(os.time()-getPlayerStorageValue(cid, 62164)))-i)*1000, cid, "The effect of the exp potion will end in "..a..".") end end return TRUE ]]></creaturescript> </mod> Como ficaria para item dar 3 dias ? se eu deixar : TIME = 4320 BUGA =S
-
Dúvida UNIQUEid
Bom não sei se é movements ou actions.. So seu que tenho q adcionar uma uniqe ID COM O MAPA EDITOR.. Eu fiz um mapa de war ( Evento ) onde dois times e entram e batalham. Adicionei um trono ao mapa e queria adicionar o seguinte sistema .. Quando um dos players subissem no trono aparecesse uma msg em vermelho para todos os players Player tal acaba de dominar o castelo ! Alguem ajuda ai?
-
Evento otserv 8.6
Sim mais andei olhando e vi que a maioria precisa adicionar QUERY e como eu faco isso em sqlite?
-
Evento otserv 8.6
Ola galera. tenho uma duvida. Peguei um server 8.6 baiak bem simples. Que rodava com distro 0.3.6 e modifiquei para o 0.4 dev com minhas modificacoes... Estou rodando em SQLITE. Tem como adicionar ( war of emperium.. dota..zumbie.. ) ????? PS: eu n posso pegar outra database.. pois estou com o serve online a 2 meses
-
[Resolvido] AFK ON / AFK OFF
Aew vlw mano ! Deu certin aqi.. Eu tinha olhado no mods mais n abri essa pasta ;s
-
[Resolvido] AFK ON / AFK OFF
não esta em globalevents . lol Eu uso baiak rox.. Mais editei.. ele vinha com um em talkactions mais eu removi.. e ainda sim existe o comando.. ja olhei em mods tb
-
NPC BUGANDO
o ot é a mesma versão ! eu so mudei o distro.. para o 0.4 REV. era o 0.3.6 eu mudei a pasta lib e tbm a pasta lib do npc
-
DevCcp c++ 64 bit compilador
Obg por todos qe respondem aqi .. Mais ainda n consigo compilar... Eu n consigo atualizar a openssl necessaria pra poder compilar Uso windows
-
[Resolvido] AFK ON / AFK OFF
Matheus Acho que voce não leu meu topico ! não esta em mods tb ! lol
-
[Resolvido] AFK ON / AFK OFF
Olá galera ! Estou com um problema em meu servidor ! !afk On Quando o player esta com o comando ativado ele nao recebe ataque dos demais players.. Mais ele consegue atacar. E este comando nao está em minhas talkactions para que eu posso removelo !
-
DevCcp c++ 64 bit compilador
Eu sei disso. Em WebUpadate. Mais mesmo assim nao tem como :s
-
NPC BUGANDO
o Meu está assim : está correto ? function selfSayChannel(cid, message) return selfSay(message, cid, false) end function selfMoveToThing(id) errors(false) local thing = getThing(id) errors(true) if(thing.uid == 0) then return end local t = getThingPosition(id) selfMoveTo(t.x, t.y, t.z) return end function selfMoveTo(x, y, z) local position = {x = 0, y = 0, z = 0} if(type(x) ~= "table") then position = Position(x, y, z) else position = x end if(isValidPosition(position)) then doSteerCreature(getNpcId(), position) end end function selfMove(direction, flags) local flags = flags or 0 doMoveCreature(getNpcId(), direction, flags) end function selfTurn(direction) doCreatureSetLookDirection(getNpcId(), direction) end function getNpcDistanceTo(id) errors(false) local thing = getThing(id) errors(true) if(thing.uid == 0) then return nil end local c = getCreaturePosition(id) if(not isValidPosition(c)) then return nil end local s = getCreaturePosition(getNpcId()) if(not isValidPosition(s) or s.z ~= c.z) then return nil end return math.max(math.abs(s.x - c.x), math.abs(s.y - c.y)) end function doMessageCheck(message, keyword) if(type(keyword) == "table") then return table.isStrIn(keyword, message) end local a, b = message:lower():find(keyword:lower()) if(a ~= nil and b ~= nil) then return true end return false end function doNpcSellItem(cid, itemid, amount, subType, ignoreCap, inBackpacks, backpack) local amount, subType, ignoreCap, item = amount or 1, subType or 1, ignoreCap and true or false, 0 if(isItemStackable(itemid)) then if(isItemRune(itemid)) then amount = amount * subType end local count = amount repeat item = doCreateItemEx(itemid, math.min(100, count)) if(doPlayerAddItemEx(cid, item, ignoreCap) ~= RETURNVALUE_NOERROR) then return 0, 0 end count = count - math.min(100, count) until count == 0 return amount, 0 end local a = 0 if(inBackpacks) then local container, b = doCreateItemEx(backpack, 1), 1 for i = 1, amount do item = doAddContainerItem(container, itemid, subType) if(itemid == ITEM_PARCEL) then doAddContainerItem(item, ITEM_LABEL) end if(isInArray({(getContainerCapById(backpack) * b), amount}, i)) then if(doPlayerAddItemEx(cid, container, ignoreCap) ~= RETURNVALUE_NOERROR) then b = b - 1 break end a = i if(amount > i) then container = doCreateItemEx(backpack, 1) b = b + 1 end end end return a, b end for i = 1, amount do item = doCreateItemEx(itemid, subType) if(itemid == ITEM_PARCEL) then doAddContainerItem(item, ITEM_LABEL) end if(doPlayerAddItemEx(cid, item, ignoreCap) ~= RETURNVALUE_NOERROR) then break end a = i end return a, 0 end function doRemoveItemIdFromPosition(id, n, position) local thing = getThingFromPos({x = position.x, y = position.y, z = position.z, stackpos = 1}) if(thing.itemid ~= id) then return false end doRemoveItem(thing.uid, n) return true end function getNpcName() return getCreatureName(getNpcId()) end function getNpcPos() return getThingPosition(getNpcId()) end function selfGetPosition() local t = getThingPosition(getNpcId()) return t.x, t.y, t.z end msgcontains = doMessageCheck moveToPosition = selfMoveTo moveToCreature = selfMoveToThing selfMoveToCreature = selfMoveToThing selfMoveToPosition = selfMoveTo isPlayerPremiumCallback = isPremium doPosRemoveItem = doRemoveItemIdFromPosition doRemoveItemIdFromPos = doRemoveItemIdFromPosition doNpcBuyItem = doPlayerRemoveItem doNpcSetCreatureFocus = selfFocus getNpcCid = getNpcId getDistanceTo = getNpcDistanceTo getDistanceToCreature = getNpcDistanceTo getNpcDistanceToCreature = getNpcDistanceTo
-
NPC BUGANDO
-
DevCcp c++ 64 bit compilador
Não consegui do mesmo jeito.. Sem conseguir fazer a atualização eu nao vou conseguir compilar