Ir para conteúdo

mullino

Membro
  • Registro em

  • Última visita

Tudo que mullino postou

  1. boa noite galerinha do tk estou com problemas para usar o gdb eu instalei usando o comando apt-get install gdb instalou certo mas quando eu uso o comando gdb ot core da esse erro de nao encontrado root@root:/home/otserv# gdb ot core GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ot...done. /home/otserv/core: No such file or directory. se eu tentar usar o comando bt da esse erro aki No stack. tento executar o comando gdb ot core.pid mas tbm nao da da esse erro root@root:/home/otserv# gdb ot core.pid GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ot...done. "/home/otserv/core.pid" is not a core dump: File format not recognized (gdb) meu ot ta dando o erro segmentation faul e gostaria da ajuda de vcs para arrumar Ajuda ae galeraa meu ot tá caindo direto pliss @Sttorm ajuda ae amigo.... @FlavioHulk alguem ajuda plisss
  2. como colocar esse restarter no meu serve ajuda ae
  3. bom dia galerinha do tk minha distrito de eesse erro e o ot caiu sabem me dizer que erro e esse que nunca vi?? ot: ../nptl/pthread_mutex_lock.c:80: __pthread_mutex_lock: Assertion `mutex->__data.__owner == 0' failed. Aborted
  4. mullino postou uma resposta no tópico em Códigos C++
    o meu da esse erro na ora de compilar player.cpp: In member function ‘uint32_t Player::getAttackSpeed() const’: player.cpp:4715:160: error: ‘modifiers’ was not declared in this scope return (((_weapon && _weapon->getAttackSpeed() != 0) ? _weapon->getAttackSpeed() : (vocation->getAttackSpeed() / std::max((size_t)1, getWeapons().size()))) + modifiers); ^ Makefile:40: recipe for target 'obj/player.o' failed make: *** [obj/player.o] Error 1 uint32_t Player::getAttackSpeed() const { int32_t SpeedAttack; SpeedAttack = vocation->getAttackSpeed() - (getSkill(SKILL_FIST, SKILL_LEVEL) * 10); if (SpeedAttack < 500) { return 500; } else { return (uint32_t) SpeedAttack; } Item* _weapon = weapon; if(!weapon || weapon->getWeaponType() == WEAPON_AMMO) _weapon = const_cast<Player*>(this)->getWeapon(true); return (((_weapon && _weapon->getAttackSpeed() != 0) ? _weapon->getAttackSpeed() : (vocation->getAttackSpeed() / std::max((size_t)1, getWeapons().size()))) + modifiers); }
  5. obrigado mais uma vez @Sttorm
  6. topp vc é O Cará @Sttorm so uma duvida em duration como sei que o tempo é de 48horas para colocar ae?
  7. se nao for pedir de mais masca ae como melhor resposta e clica no coraçaozinho !! OBg
  8. sim otx 8.6 tfs 0.4 qual erro ta dando ?
  9. GuildCast.xmlmod_cast.xml
  10. tenta usar o meu MOD Cast <?xml version="1.0" encoding="UTF-8"?> <mod name="Mod Cast" version="1.0" author="Martyx" contact="martyx@otland.net" enabled="yes"> <event type="logout" name="cast-log-out" event="script"><![CDATA[ function onLogout(cid, forceLogout) db.executeQuery("UPDATE `players` SET `broadcasting` = 0, `viewers` = 0 WHERE `id` = " .. getPlayerGUID(cid) .. " LIMIT 1") return true end ]]></event> <globalevent name="viewers" interval="10000" event="script"><![CDATA[ function onThink(interval) local players = getPlayersOnline() for _, pid in ipairs(players) do local data = getPlayerSpectators(pid) if(data.broadcast) then db.executeQuery("UPDATE `players` set `viewers` = " .. table.maxn(data.names) .. " where `id` = " .. getPlayerGUID(pid) .. ";") end end return true end ]]></globalevent> <talkaction words="/live;!live;/cast;!cast;!stream;/stream" event="script"><![CDATA[ function onSay(cid, words, param, channelId) local t, data = string.explode(param, " ", 1), getPlayerSpectators(cid) if(isInArray({'off', 'no', 'disable'}, t[1])) then data.mutes = {} data.broadcast = false doPlayerSetSpectators(cid, data) db.executeQuery("UPDATE `players` SET `broadcasting` = 0, `viewers` = 0 WHERE `id` = " .. getPlayerGUID(cid)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are not streaming.") elseif(isInArray({'on', 'yes', 'enable'}, t[1])) then data.broadcast = true doPlayerSetSpectators(cid, data) doPlayerOpenPrivateChannel(cid) db.executeQuery("UPDATE `players` SET `broadcasting` = 1 WHERE `id` = " .. getPlayerGUID(cid)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are now streaming.") elseif(isInArray({'show', 'count', 'see'}, t[1])) then if(data.broadcast) then local count = table.maxn(data.names) if(count > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You are currently watched by " .. count .. " people.") local str = "" for _, name in ipairs(data.names) do str = str .. (str:len() > 0 and ", " or "") .. name end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, str .. ".") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "None is watching your stream right now.") end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You are not streaming right now.") end elseif(isInArray({'kick', 'remove'}, t[1])) then if(data.broadcast) then if(t[2]) then if(t[2] ~= "all") then local found = false for _, name in ipairs(data.names) do if(t[2]:lower() == name:lower()) then found = true break end end if(found) then table.insert(data.kick, t[2]) doPlayerSetSpectators(cid, data) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Spectator " .. t[2] .. " has been kicked.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Spectator " .. t[2] .. " not found.") end else data.kick = data.names doPlayerSetSpectators(cid, data) end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You need to type a name.") end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You are not streaming right now.") end elseif(isInArray({'ban', 'block'}, t[1])) then if(data.broadcast) then if(t[2]) then local found = false for _, name in ipairs(data.names) do if(t[2]:lower() == name:lower()) then found = true break end end if(found) then table.insert(data.bans, t[2]) doPlayerSetSpectators(cid, data) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Spectator " .. t[2] .. " has been banned.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Spectator " .. t[2] .. " not found.") end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You need to type a name.") end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You are not streaming right now.") end elseif(isInArray({'unban', 'unblock'}, t[1])) then if(data.broadcast) then if(t[2]) then local found, i = 0, 1 for _, name in ipairs(data.bans) do if(t[2]:lower() == name:lower()) then found = i break end i = i + 1 end if(found > 0) then table.remove(data.bans, found) doPlayerSetSpectators(cid, data) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Spectator " .. t[2] .. " has been unbanned.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Spectator " .. t[2] .. " not found.") end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You need to type a name.") end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You are not streaming right now.") end elseif(isInArray({'bans', 'banlist'}, t[1])) then if(table.maxn(data.bans)) then local str = "" for _, name in ipairs(data.bans) do str = str .. (str:len() > 0 and ", " or "") .. name end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Currently banned spectators: " .. str .. ".") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your ban list is empty.") end elseif(isInArray({'mute', 'squelch'}, t[1])) then if(data.broadcast) then if(t[2]) then local found = false for _, name in ipairs(data.names) do if(t[2]:lower() == name:lower()) then found = true break end end if(found) then table.insert(data.mutes, t[2]) doPlayerSetSpectators(cid, data) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Spectator " .. t[2] .. " has been muted.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Spectator " .. t[2] .. " not found.") end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You need to type a name.") end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You are not streaming right now.") end elseif(isInArray({'unmute', 'unsquelch'}, t[1])) then if(data.broadcast) then if(t[2]) then local found, i = 0, 1 for _, name in ipairs(data.mutes) do if(t[2]:lower() == name:lower()) then found = i break end i = i + 1 end if(found > 0) then table.remove(data.mutes, found) doPlayerSetSpectators(cid, data) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Spectator " .. t[2] .. " has been unmuted.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Spectator " .. t[2] .. " not found.") end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You need to type a name.") end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You are not streaming right now.") end elseif(isInArray({'mutes', 'mutelist'}, t[1])) then if(table.maxn(data.mutes)) then local str = "" for _, name in ipairs(data.mutes) do str = str .. (str:len() > 0 and ", " or "") .. name end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Currently muted spectators: " .. str .. ".") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your mute list is empty.") end elseif(isInArray({'auth', 'protect', 'protection', 'protected'}, t[1])) then if(isInArray({'off', 'no', 'disable'}, t[2])) then data.auth = false doPlayerSetSpectators(cid, data) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your chat is now unprotected, all spectators can chat without authentication.") elseif(isInArray({'on', 'yes', 'enable'}, t[2])) then data.auth = true doPlayerSetSpectators(cid, data) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your chat is now protected, all spectators have to authenticate before they can talk.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your chat is currently " .. (data.auth and "protected" or "unprotected") .. " from guests.") end elseif(isInArray({'password', 'guard'}, t[1])) then if(t[2]) then if(isInArray({'off', 'no', 'disable'}, t[2])) then if(data.password:len() ~= 0) then db.executeQuery("UPDATE `players` SET `broadcasting` = `broadcasting` - 2 WHERE `id` = " .. getPlayerGUID(cid)) end data.password = "" doPlayerSetSpectators(cid, data) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have removed password for your stream.") else if(data.password:len() ~= 0) then db.executeQuery("UPDATE `players` SET `broadcasting` = `broadcasting` + 2 WHERE `id` = " .. getPlayerGUID(cid)) end data.password = string.trim(t[2]) doPlayerSetSpectators(cid, data) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have set new password for your stream.") end elseif(data.password ~= "") then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your stream is currently protected with password: " .. data.password .. ".") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your stream is currently not protected.") end elseif(isInArray({'status', 'info'}, t[1])) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your stream is currently " .. (data.broadcast and "enabled" or "disabled") .. ".") else doPlayerPopupFYI(cid, "Available commands:\n\n/cast on - enables the stream\n/cast off - disables the stream\n/cast password {password} - sets a password on the stream\n/cast password off - disables the password protection\n/cast auth on - enables requirement of authentication on chat\n/cast auth off - disables requirement of authentication on chat\n/cast kick {name} - kick a spectator from your stream\n/cast ban {name} - locks spectator IP from joining your stream\n/cast unban {name} - removes banishment lock\n/cast bans - shows banished spectators list\n/cast mute {name} - mutes selected spectator from chat\n/cast unmute {name} - removes mute\n/cast mutes - shows muted spectators list\n/cast show - displays the amount and nicknames of current spectators\n/cast status - displays stream status") end return true end ]]></talkaction> </mod> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Guid Cast <?xml version="1.0" encoding="UTF-8"?> <mod name="GuildCast" version="1.0" author="Mattyx14" contact="martyx@otland.net" enabled="yes"> <!-- Guild Cast Command --> <config name="guild-cast-config"><![CDATA[ exhaust = 10 -- in seconds storage = 3001 -- storage value used to save exhaustion storageColor = 3002 -- storage value used to save previously used message color ]]></config> <talkaction words="!gc;/gc;/guild" event="script"><![CDATA[ domodlib('guild-cast-config') local config = { exhaustion = exhaust, storage = storage, storageColor = storageColor } function onSay(cid, words, param, channel) if(exhaustion.check(cid, config.storage)) then doPlayerSendCancel(cid, "You can broadcast message only one time per " .. config.exhaustion .. " seconds.") return true end if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You need to type a message to broadcast!") return true end local playerGuild = getPlayerGuildId(cid) if(playerGuild == false) then doPlayerSendCancel(cid, "Sorry, you're not in a guild."); return true end if(getPlayerGuildLevel(cid) < GUILDLEVEL_VICE) then doPlayerSendCancel(cid, "You have to be at least Vice-Leader to guildcast!") return true end local messageType = MESSAGE_STATUS_WARNING local t = string.explode(param, ";") if(not t[2]) then if(getPlayerStorageValue(cid, config.storageColor) ~= -1) then messageType = getPlayerStorageValue(cid, config.storageColor) end else if(MESSAGE_TYPES[t[1]] ~= nil) then messageType = MESSAGE_TYPES[t[1]] end param = t[2] end if(messageType < MESSAGE_FIRST or messageType > MESSAGE_LAST) then messageType = MESSAGE_STATUS_WARNING --setPlayerStorageValue(cid, MESSAGE_STATUS_WARNING, messageType) --doPlayerSendCancel(cid, "Unknown message type.") --return true end local players = getPlayersOnline() local message = "*Guild* " .. getCreatureName(cid) .. " [" .. getPlayerLevel(cid) .. "]:\n" .. param local members = 0 for i, tid in ipairs(players) do if(getPlayerGuildId(tid) == playerGuild) then doPlayerSendTextMessage(tid, messageType, message) members = members + 1 end end setPlayerStorageValue(cid, config.storageColor, messageType) exhaustion.set(cid, config.storage, config.exhaustion) doPlayerSendCancel(cid, "Message sent to your guild members. (Total: " .. members .. ")") return true end ]]></talkaction> </mod> ajude +Rep
  11. bom dia galerinha do tk venho por meio desse pedir a ajuda de vcs com um script que funciona a sim..... o players clica uma estatua se tiver o item 12731 esse item transforma nê um outro item de id 12745, e esse item 12745 dure somente 48 horas, depois de 48 horas ele retorna para o item 12731 novamente, e que para o player fazer isso ele tem que ter 500 vip coins ID 11192. o player pode fazer só se tiver os 500 vip coins!!! muito obrigado-o dês de já. alguém pode ajudar?? dou +Rep
  12. Vc compilou com a opção mananger??? Se sim está usando a distro compilada? Pq se vc compilou não tem pq não pegar Qual distrito vc usa??
  13. oque esta acontecendo explica pra ver se eu intendi certo
  14. a minha tem mais 4 vocaçoes mas toma ae <?xml version="1.0" encoding="UTF-8"?> <vocations> <vocation id="0" name="None" description="none" needpremium="0" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="100" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="1" name="Master Sorcerer" description="a master sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="225" gainmanaticks="2" gainmanaamount="325" manamultiplier="1.1" attackspeed="100" soulmax="100" gainsoulticks="120" fromvoc="1" manager="1"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="2" name="Elder Druid" description="a elder druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="225" gainmanaticks="2" gainmanaamount="325" manamultiplier="1.1" attackspeed="100" soulmax="100" gainsoulticks="120" fromvoc="2" manager="1"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="3" name="Royal Paladin" description="a royal paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="2" gainhpamount="275" gainmanaticks="3" gainmanaamount="275" manamultiplier="1.4" attackspeed="100" soulmax="100" gainsoulticks="120" fromvoc="3" manager="1"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="4" name="Elite Knight" description="a elite knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="375" gainmanaticks="3" gainmanaamount="225" manamultiplier="3.0" attackspeed="100" soulmax="100" gainsoulticks="120" fromvoc="4" manager="1"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="5" name="New Master Sorcerer" description="a new master sorcerer" needpremium="1" gaincap="13" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="350" gainmanaticks="2" gainmanaamount="500" manamultiplier="1.1" attackspeed="100" soulmax="200" gainsoulticks="15" fromvoc="1" manager="0"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="6" name="New Elder Druid" description="an new elder druid" needpremium="1" gaincap="13" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="350" gainmanaticks="2" gainmanaamount="500" manamultiplier="1.1" attackspeed="100" soulmax="200" gainsoulticks="15" fromvoc="2" manager="0"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="7" name="New Royal Paladin" description="a new royal paladin" needpremium="1" gaincap="23" gainhp="10" gainmana="15" gainhpticks="2" gainhpamount="425" gainmanaticks="2" gainmanaamount="425" manamultiplier="1.4" attackspeed="100" soulmax="200" gainsoulticks="15" fromvoc="3" manager="0"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="8" name="New Elite Knight" description="an new elite knight" needpremium="1" gaincap="28" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="500" gainmanaticks="3" gainmanaamount="300" manamultiplier="3.0" attackspeed="100" soulmax="200" gainsoulticks="15" fromvoc="4" manager="0"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="9" name="Zedeky Winzard" description="An Zedeky Winzard" gaincap="10" gainhp="7" gainmana="33" gainhpticks="4" gainhpamount="7500" gainmanaticks="2" gainmanaamount="7500" manamultiplier="1.1" attackspeed="100" soulmax="200" gainsoulticks="15" fromvoc="9" manager="0"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.3"/> <skill id="0" multiplier="1.5"/> <skill id="1" multiplier="2.0"/> <skill id="2" multiplier="2.0"/> <skill id="3" multiplier="2.0"/> <skill id="4" multiplier="2.0"/> <skill id="5" multiplier="1.5"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="10" name="Zedeky Dark" description="A Zedeky Dark" gaincap="10" gainhp="7" gainmana="33" gainhpticks="4" gainhpamount="7500" gainmanaticks="2" gainmanaamount="7500" manamultiplier="1.1" attackspeed="100" soulmax="200" gainsoulticks="15" fromvoc="10" manager="0"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.3"/> <skill id="0" multiplier="1.5"/> <skill id="1" multiplier="1.8"/> <skill id="2" multiplier="1.8"/> <skill id="3" multiplier="1.8"/> <skill id="4" multiplier="1.8"/> <skill id="5" multiplier="1.5"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="11" name="Zedeky Archer" description="A Zedeky Archer" gaincap="20" gainhp="13" gainmana="18" gainhpticks="3" gainhpamount="7500" gainmanaticks="3" gainmanaamount="7500" manamultiplier="1.4" attackspeed="100" soulmax="200" gainsoulticks="15" fromvoc="11" manager="0"> <formula meleeDamage="1.0" distDamage="1.2" defense="1.0" armor="1.2"/> <skill id="0" multiplier="1.2"/> <skill id="1" multiplier="1.2"/> <skill id="2" multiplier="1.2"/> <skill id="3" multiplier="1.2"/> <skill id="4" multiplier="1.1"/> <skill id="5" multiplier="1.1"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="12" name="Zedeky Kina" description="An Zedeky Kina" gaincap="25" gainhp="18" gainmana="7" gainhpticks="2" gainhpamount="7500" gainmanaticks="4" gainmanaamount="7500" manamultiplier="3.0" attackspeed="100" soulmax="200" gainsoulticks="15" fromvoc="12" manager="0"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.5"/> <skill id="0" multiplier="1.1"/> <skill id="1" multiplier="1.1"/> <skill id="2" multiplier="1.1"/> <skill id="3" multiplier="1.1"/> <skill id="4" multiplier="1.4"/> <skill id="5" multiplier="1.1"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="13" name="New Zedeky Sorc" description="An New Zedeky Sorc" gaincap="10" gainhp="9" gainmana="35" gainhpticks="4" gainhpamount="7500" gainmanaticks="2" gainmanaamount="7500" manamultiplier="1.1" attackspeed="100" soulmax="200" gainsoulticks="15" fromvoc="13" manager="0"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.3"/> <skill id="0" multiplier="1.5"/> <skill id="1" multiplier="2.0"/> <skill id="2" multiplier="2.0"/> <skill id="3" multiplier="2.0"/> <skill id="4" multiplier="2.0"/> <skill id="5" multiplier="1.5"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="14" name="New Zedeky Druid" description="A New Zedeky Druid" gaincap="10" gainhp="9" gainmana="35" gainhpticks="4" gainhpamount="7500" gainmanaticks="2" gainmanaamount="7500" manamultiplier="1.1" attackspeed="100" soulmax="200" gainsoulticks="15" fromvoc="14" manager="0"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.3"/> <skill id="0" multiplier="1.5"/> <skill id="1" multiplier="1.8"/> <skill id="2" multiplier="1.8"/> <skill id="3" multiplier="1.8"/> <skill id="4" multiplier="1.8"/> <skill id="5" multiplier="1.5"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="15" name="New Zedeky Pally" description="A New Zedeky Pally" gaincap="20" gainhp="15" gainmana="18" gainhpticks="3" gainhpamount="7500" gainmanaticks="3" gainmanaamount="7500" manamultiplier="1.4" attackspeed="100" soulmax="200" gainsoulticks="15" fromvoc="15" manager="0"> <formula meleeDamage="1.0" distDamage="1.2" defense="1.0" armor="1.0"/> <skill id="0" multiplier="1.2"/> <skill id="1" multiplier="1.2"/> <skill id="2" multiplier="1.2"/> <skill id="3" multiplier="1.2"/> <skill id="4" multiplier="1.1"/> <skill id="5" multiplier="1.1"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="16" name="New Zedeky Kina" description="An New Zedeky Kina" gaincap="25" gainhp="18" gainmana="9" gainhpticks="2" gainhpamount="7500" gainmanaticks="4" gainmanaamount="7500" manamultiplier="3.0" attackspeed="100" soulmax="200" gainsoulticks="15" fromvoc="16" manager="0"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.5"/> <skill id="0" multiplier="1.1"/> <skill id="1" multiplier="1.1"/> <skill id="2" multiplier="1.1"/> <skill id="3" multiplier="1.1"/> <skill id="4" multiplier="1.4"/> <skill id="5" multiplier="1.1"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="17" name="Elite Zedeky Sorc" description="An Elite Zedeky Sorc" gaincap="10" gainhp="10" gainmana="39" gainhpticks="4" gainhpamount="7500" gainmanaticks="2" gainmanaamount="7500" manamultiplier="1.1" attackspeed="50" soulmax="200" gainsoulticks="15" fromvoc="17" manager="0"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.3"/> <skill id="0" multiplier="1.5"/> <skill id="1" multiplier="2.0"/> <skill id="2" multiplier="2.0"/> <skill id="3" multiplier="2.0"/> <skill id="4" multiplier="2.0"/> <skill id="5" multiplier="1.5"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="18" name="Elite Zedeky Druid" description="A Elite Zedeky Druid" gaincap="10" gainhp="10" gainmana="39" gainhpticks="4" gainhpamount="7500" gainmanaticks="2" gainmanaamount="7500" manamultiplier="1.1" attackspeed="50" soulmax="200" gainsoulticks="15" fromvoc="18" manager="0"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.3"/> <skill id="0" multiplier="1.5"/> <skill id="1" multiplier="1.8"/> <skill id="2" multiplier="1.8"/> <skill id="3" multiplier="1.8"/> <skill id="4" multiplier="1.8"/> <skill id="5" multiplier="1.5"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="19" name="Elite Zedeky Pally " description="A Elite Zedeky Pally" gaincap="20" gainhp="18" gainmana="23" gainhpticks="3" gainhpamount="7500" gainmanaticks="3" gainmanaamount="7500" manamultiplier="1.4" attackspeed="50" soulmax="200" gainsoulticks="15" fromvoc="19" manager="0"> <formula meleeDamage="1.0" distDamage="1.2" defense="1.0" armor="1.0"/> <skill id="0" multiplier="1.2"/> <skill id="1" multiplier="1.2"/> <skill id="2" multiplier="1.2"/> <skill id="3" multiplier="1.2"/> <skill id="4" multiplier="1.1"/> <skill id="5" multiplier="1.1"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="20" name="Elite Zedeky Kina" description="An Elite Zedeky Kina" gaincap="25" gainhp="18" gainmana="9" gainhpticks="2" gainhpamount="7500" gainmanaticks="4" gainmanaamount="7500" manamultiplier="3.0" attackspeed="50" soulmax="200" gainsoulticks="15" fromvoc="20" manager="0"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.5"/> <skill id="0" multiplier="1.1"/> <skill id="1" multiplier="1.1"/> <skill id="2" multiplier="1.1"/> <skill id="3" multiplier="1.1"/> <skill id="4" multiplier="1.4"/> <skill id="5" multiplier="1.1"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="21" name="Ultimate Zedeky Sorc" description="An Ultimate Zedeky Sorc" gaincap="10" gainhp="12" gainmana="40" gainhpticks="4" gainhpamount="7500" gainmanaticks="2" gainmanaamount="7500" manamultiplier="1.1" attackspeed="50" soulmax="200" gainsoulticks="15" fromvoc="21" manager="0"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.3"/> <skill id="0" multiplier="1.5"/> <skill id="1" multiplier="2.0"/> <skill id="2" multiplier="2.0"/> <skill id="3" multiplier="2.0"/> <skill id="4" multiplier="2.0"/> <skill id="5" multiplier="1.5"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="22" name="Ultimate Zedeky Druid" description="A Ultimate Zedeky Druid" gaincap="10" gainhp="12" gainmana="40" gainhpticks="4" gainhpamount="7500" gainmanaticks="2" gainmanaamount="7500" manamultiplier="1.1" attackspeed="50" soulmax="200" gainsoulticks="15" fromvoc="22" manager="0"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.3"/> <skill id="0" multiplier="1.5"/> <skill id="1" multiplier="1.8"/> <skill id="2" multiplier="1.8"/> <skill id="3" multiplier="1.8"/> <skill id="4" multiplier="1.8"/> <skill id="5" multiplier="1.5"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="23" name="Ultimate Zedeky Pally " description="A Ultimate Zedeky Pally" gaincap="20" gainhp="20" gainmana="25" gainhpticks="3" gainhpamount="7500" gainmanaticks="3" gainmanaamount="7500" manamultiplier="1.4" attackspeed="50" soulmax="200" gainsoulticks="15" fromvoc="23" manager="0"> <formula meleeDamage="1.0" distDamage="1.2" defense="1.0" armor="1.0"/> <skill id="0" multiplier="1.2"/> <skill id="1" multiplier="1.2"/> <skill id="2" multiplier="1.2"/> <skill id="3" multiplier="1.2"/> <skill id="4" multiplier="1.1"/> <skill id="5" multiplier="1.1"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="24" name="Ultimate Zedeky Kina" description="An Ultimate Zedeky Kina" gaincap="25" gainhp="20" gainmana="10" gainhpticks="2" gainhpamount="7500" gainmanaticks="4" gainmanaamount="7500" manamultiplier="3.0" attackspeed="50" soulmax="200" gainsoulticks="15" fromvoc="24" manager="0"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.5"/> <skill id="0" multiplier="1.1"/> <skill id="1" multiplier="1.1"/> <skill id="2" multiplier="1.1"/> <skill id="3" multiplier="1.1"/> <skill id="4" multiplier="1.4"/> <skill id="5" multiplier="1.1"/> <skill id="6" multiplier="1.1"/> </vocation> </vocations>
  15. nao!!! tem que add e depois compilar
  16. entao compila sua distrito com a opçao manger que vai dar certo usa esse link que deixei aee
  17. mano ja tive esse mesmo problema eu tive e colocar a opçao mananger na distrito <vocation id="8" name="New Elite Knight" description="an new elite knight" needpremium="1" gaincap="28" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="500" gainmanaticks="3" gainmanaamount="300" manamultiplier="3.0" attackspeed="100" soulmax="200" gainsoulticks="15" fromvoc="4" manager="0"> tenta colocar essa opçao na vocation que vc nao quer que apareça manager="0"> na que vc quiser que apareça vc deixa manager="1"> issu resolveu meu problema tenta ae qualquercoisa me avisa aki ajudei +Rep
  18. quando eu uso esse script que vc fez eu tomo paralize mesmo com a bota pq ?
  19. Obrigado vou testar asim que chegar ..... Aki Teria como vc fazer um desses que add critical na arma.... Pq esse é de Dodge para set Eu queria um de critical para armas vc poderia me ajudar??
  20. Sim issu aparece Na vdd era só issu que eu queria que aparecesse no sistema de Dodge mas aparece tbm o +1+2+3+4+5+6 Eu queria tirar esses +1+2+3+4+5.... E deixar só a porcentagem de dodge ..
  21. ta certo mais ae ele ficou infinito toda vez uso a pedra ele fala 18:53 Voce refina com sucesso o objeto e ele avanca para o nivel 1. 8:52 You see Supreme legs (Arm:205, club fighting +3, sword fighting +3, axe fighting +3, distance fighting +3, protection all +2%). 18:54 You see Supreme legs (Arm:330, club fighting +3, sword fighting +3, axe fighting +3, distance fighting +3, protection all +2%). tem como colocar um limite
  22. nao entendo muito de scrit mas esse ta certo?? if not isCreature(cid) then return LUA_ERROR end
  23. --- Email: <a href="mailto:mock_otnet@hotmail.com">mock_otnet@hotmail.com</a> -- &a = weapon attack -- &d = weapon defense -- &s = shield defense -- &p = armor defense -- # = nivel do item -- @ = max level local gain = { gainArmor='&p+(5)',loseArmor='&p-(3)', gainShield='&s+#',loseShield='&s-(#+3)', gainAttack='&a+(5*(#))',loseAttack='&a-(3*(#+3))', gainDefense='&d+(5*(#))',loseDefense='&d-(3*(#+3))', chance='(100/math.sqrt((((@/4)+(#*2))/@)*#))', maxlvl = 10, blocked_ids = {8881} } local it = { --[itemid] = [percent] [8306] = 7, -- 0% additional [8305] = 100, -- 50% } if not setItemName then function setItemName(uid,name) return doItemSetAttribute(uid,'name',name) end function setItemArmor(uid,name) return doItemSetAttribute(uid,'armor',name) end function setItemDefense(uid,name) return doItemSetAttribute(uid,'defense',name) end function setItemAttack(uid,name) return doItemSetAttribute(uid,'attack',name) end function getItemAttack(uid) return getItemAttribute(uid,'attack') end function getItemDefense(uid) return getItemAttribute(uid,'defense') end function getItemArmor(uid) if type(uid) == 'number' then return getItemAttribute(uid,'armor') else return getItemInfo(uid.itemid).armor end end end local function isArmor(uid) -- Function by Mock the bear. local f = getItemInfo(uid.itemid) if f.armor ~= 0 and f.wieldPosition ~= CONST_SLOT_NECKLACE then return true end return false end local function isWeapon(uid) -- Function by Mock the bear. uid = uid or 0 local f = getItemInfo(uid.itemid) if table.find({WEAPON_SWORD, WEAPON_CLUB, WEAPON_AXE}, f.weaponType) then return true end return false end local function isShield(uid) -- Function by Mock the bear. uid = uid or 0 local f = getItemInfo(uid.itemid) if f.defense ~= 0 and f.weaponType == WEAPON_SHIELD then return true end return false end local function isBow(uid) -- Function by Mock the bear. local f = getItemInfo(uid.itemid) if f.weaponType == WEAPON_DIST and f.ammoType ~= 0 then return true end return false end local function isBow2(uid) -- Function by Mock the bear. local f = getItemInfo(uid.itemid) if f.weaponType == WEAPON_DIST and f.ammoType ~= 0 then return false end return true end local function getWeaponLevel(uid) -- Function by Mock the bear. uid = uid or 0 local name = getItemName(uid.uid) or getItemInfo(uid.itemid).name or '' local lvl = string.match(name,'%s%+(%d+)%s*') return tonumber(lvl) or 0 end local function doTransform(s,i) -- Function by Mock the bear. local c = string.gsub(s,'@',gain.maxlvl) local c = string.gsub(c,'&a',(getItemAttack(i.uid) ~= 0 and getItemAttack(i.uid) or getItemInfo(i.itemid).attack)) local c = string.gsub(c,'&d',(getItemDefense(i.uid) ~= 0 and getItemDefense(i.uid) or getItemInfo(i.itemid).defense)) local c = string.gsub(c,'&s',(getItemDefense(i.uid) ~= 0 and getItemDefense(i.uid) or getItemInfo(i.itemid).defense)) local c = string.gsub(c,'&p',(getItemArmor(i.uid) ~= 0 and getItemArmor(i.uid) or getItemInfo(i.itemid).armor)) local c = string.gsub(c,'#',getWeaponLevel(i)) local q = assert(loadstring('return '..c)) return math.floor(assert(q())) end function onUse(cid, item, fromPosition, itemEx, toPosition) if item.uid == 0 or item.itemid == 0 then return false end toPosition.stackpos = 255 if isInArray(gain.blocked_ids, itemEx.itemid) or (not getItemWeaponType(itemEx.uid) or getItemWeaponType(itemEx.uid) > 5) or (getItemWeaponType(itemEx.uid) == 0 and not isArmor(itemEx)) or itemEx.itemid == 0 or itemEx.type > 1 or isItemStackable(itemEx.uid) then doPlayerSendTextMessage(cid, 24,"Voce nao consegue trabalhar neste item.") return TRUE end if isCreature(itemEx.uid) == TRUE then return FALSE end local level = getWeaponLevel(itemEx) local chance = doTransform(gain.chance,itemEx) local nm = getItemName(itemEx.uid) if level == gain.maxlvl then doSendMagicEffect(toPosition, 2) return doPlayerSendTextMessage(cid, 24,"Voce nao pode mais refinar este objeto, ele ja atingiu o seu maximo!") end doPlayerSendTextMessage(cid, 24,"Voce tenta refinar um(a) "..nm.." com "..(chance+it[item.itemid] > 100 and 100 or chance+it[item.itemid]).."% de chance de sucesso. ") if chance+it[item.itemid] >= math.random(0,100) then local nm = getItemName(itemEx.uid) local slot = nm:match('(%[.+%])') or '' ---If you server use slot system dont change it slot = slot~='' and ' '..slot or slot if level==0 then setItemName(itemEx.uid, nm..' +'..(level+1)..slot) elseif level<=9 then setItemName(itemEx.uid, string.match(string.match(string.sub(nm, 1, -3), "%S.*"), ".*%S")..' +'..(level+1)..slot) else setItemName(itemEx.uid, string.match(string.match(string.sub(nm, 1, -4), "%S.*"), ".*%S")..' +'..(level+1)..slot) end addEvent(doPlayerSendTextMessage,500,cid, 24,"Voce refina com sucesso o objeto e ele avanca para o nivel "..(level+1)..slot..".") doSendMagicEffect(toPosition, 12) if isArmor(itemEx) then local get = doTransform(gain.gainArmor,itemEx) setItemArmor(itemEx.uid,get) elseif isBow(itemEx) then setItemAttack(itemEx.uid, doTransform(gain.gainAttack,itemEx)) elseif isWeapon(itemEx) then setItemAttack(itemEx.uid, doTransform(gain.gainAttack,itemEx)) setItemDefense(itemEx.uid, doTransform(gain.gainDefense,itemEx)) elseif isShield(itemEx) then setItemDefense(itemEx.uid, doTransform(gain.gainShield,itemEx)) end else -- Give it a second chance, if it success, the item stays the same level. if chance+it[item.itemid] >= math.random(0,100) then addEvent(doPlayerSendTextMessage,500,cid, 24,"O refinamento falha mas seu objeto mantem-se no mesmo nivel.") else --if not, we'll give it a 15% change to get destroyed. if math.random(0,100) <= 15 then -- And only if the level is above 7. if level > 7 then addEvent(doPlayerSendTextMessage,500,cid, 24,"O objeto nao aguentou a carga do refinamento e acabou sendo destruido no processo.") doRemoveItem(itemEx.uid,1) -- You can set a custom animation for the destruction of the item here if you want. Just change the number to other animation doSendMagicEffect(toPosition, 9) else addEvent(doPlayerSendTextMessage,500,cid, 24,"O refinamento falha mas seu objeto mantem-se no meso nivel.") end else if level == 0 then addEvent(doPlayerSendTextMessage,500,cid, 24,"Não surte efeito.") doSendMagicEffect(toPosition, 2) elseif level > 0 then local nm = getItemName(itemEx.uid) local slot = nm:match('(%[.+%])') or '' ---If you server use slot system dont change it slot = slot~='' and ' '..slot or slot if level == 1 then setItemName(itemEx.uid, getItemNameById(itemEx.itemid)..slot) addEvent(doPlayerSendTextMessage,500,cid, 24,"Seu objeto voltou ao normal.") else setItemName(itemEx.uid, getItemNameById(itemEx.itemid)..' +'..(level-1)..slot) addEvent(doPlayerSendTextMessage,500,cid, 24,"O refinamento falha e seu objeto volta para o nivel "..(level-1)..slot..".") end if isArmor(itemEx) then setItemArmor(itemEx.uid,doTransform(gain.loseArmor ,itemEx)) elseif isWeapon(itemEx) then setItemAttack(itemEx.uid, doTransform(gain.loseAttack,itemEx)) setItemDefense(itemEx.uid, doTransform(gain.loseDefense,itemEx)) elseif isBow(itemEx) then setItemAttack(itemEx.uid, doTransform(gain.loseAttack,itemEx)) elseif isBow2(itemEx) then setItemAttack(itemEx.uid, doTransform(gain.loseAttack,itemEx)) elseif isShield(itemEx) then setItemDefense(itemEx.uid, doTransform(gain.loseShield,itemEx)) end end doSendMagicEffect(toPosition, 9) end end end doRemoveItem(item.uid,1) return true end
  24. vou testar aki nao deu ele add You see a Supreme Shield +0.8 ae quando uso a pedra de encantar focica asim You see a Supreme Shield +0.5 +1 se usar de novo fica asim You see a Supreme Shield +0.5 +1 +1 ae se eu usar a de dodge de novo fica asim You see a Supreme Shield +0.8

Informação Importante

Confirmação de Termo