-
Bug da bless!
Algueeeeeeeeeeem? o problema tenho quase certeza que seja no login.lua... so n sei aonde.. kkkkkk
-
Jail nao sai do player apos reiniciar/desligar OT
-- [( Edited by DoidinMapper )] -- default_jail = 43200 -- 12 Horas -- grouprequired = 3 jailedstoragevalue_time = 1338 jailedstoragevalue_bool = 1339 jailpos = { x = 32097, y = 31813, z =6 } unjailpos = { x = 32360, y = 31782, z =7 } jail_list = {} jail_list_work = 0 function checkJailList(param) addEvent(checkJailList, 1000, {}) for targetID,player in ipairs(jail_list) do if isPlayer(player) == TRUE then if getPlayerStorageValue(player, jailedstoragevalue_time) < os.time() then doTeleportThing(player, unjailpos, TRUE) setPlayerStorageValue(player, jailedstoragevalue_time, 0) setPlayerStorageValue(player, jailedstoragevalue_bool, 0) table.remove(jail_list,targetID) doPlayerSendTextMessage(player,MESSAGE_STATUS_CONSOLE_ORANGE,'You were kicked from jail! See you later ') end else table.remove(jail_list,targetID) end end end function onSay(cid, words, param) if jail_list_work == 0 then jail_list_work = addEvent(checkJailList, 1000, {}) end if param == '' and (words == '!unjail' or words == '/unjail') then if getPlayerStorageValue(cid, jailedstoragevalue_time) > os.time() then doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'You are jailed until ' .. os.date("%H:%M:%S", getPlayerStorageValue(cid, jailedstoragevalue_time)) .. ' (now is: ' .. os.date("%H:%M:%S", os.time()) .. ').') else if getPlayerStorageValue(cid, jailedstoragevalue_bool) == 1 then table.insert(jail_list,cid) doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'You will be kicked from jail in one second.') else doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'You are not jailed.') end end return TRUE end local jail_time = -1 for word in string.gmatch(tostring(param), "(%w+)") do if tostring(tonumber(word)) == word then jail_time = tonumber(word) end end local isplayer = getPlayerByName(param) if isPlayer(isplayer) ~= TRUE then isplayer = getPlayerByName(string.sub(param, string.len(jail_time)+1)) if isPlayer(isplayer) ~= TRUE then isplayer = getPlayerByName(string.sub(param, string.len(jail_time)+2)) if isPlayer(isplayer) ~= TRUE then isplayer = getPlayerByName(string.sub(param, string.len(jail_time)+3)) end end end if jail_time ~= -1 then jail_time = jail_time * 60 else jail_time = default_jail end if words == '!jail' or words == '/jail' then if getPlayerGroupId ( cid ) >= grouprequired then if isPlayer(isplayer) == TRUE then doTeleportThing(isplayer, jailpos, TRUE) setPlayerStorageValue(isplayer, jailedstoragevalue_time, os.time()+jail_time) setPlayerStorageValue(isplayer, jailedstoragevalue_bool, 1) table.insert(jail_list,isplayer) doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'You jailed '.. getCreatureName(isplayer) ..' until ' .. os.date("%H:%M:%S", getPlayerStorageValue(isplayer, jailedstoragevalue_time)) .. ' (now is: ' .. os.date("%H:%M:%S", os.time()) .. ').') doPlayerSendTextMessage ( isplayer, MESSAGE_INFO_DESCR, 'You have been jailed by '.. getCreatureName(cid) ..' until ' .. os.date("%H:%M:%S", getPlayerStorageValue(isplayer, jailedstoragevalue_time)) .. ' (now is: ' .. os.date("%H:%M:%S", os.time()) .. ').') return TRUE else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Player with this name doesn\'t exist or is offline.") return FALSE end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You don't have access to unjail other players.") return FALSE end elseif words == '!unjail' or words == '/unjail' then if getPlayerGroupId ( cid ) >= grouprequired then if isPlayer(isplayer) == TRUE then doTeleportThing(isplayer, unjailpos, TRUE) setPlayerStorageValue(isplayer, jailedstoragevalue_time, 0) setPlayerStorageValue(isplayer, jailedstoragevalue_bool, 0) table.remove(jail_list,targetID) doPlayerSendTextMessage(isplayer,MESSAGE_STATUS_CONSOLE_ORANGE,getCreatureName(cid) .. ' let you go out from jail! See you later') doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'You unjailed '.. getCreatureName(isplayer) ..'.') else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Player with this name doesn\'t exist or is offline.") return FALSE end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You don't have access to unjail other players.") return FALSE end end return FALSE end Eh esse... jail.lua
-
Jail nao sai do player apos reiniciar/desligar OT
Eh o seguinte... dou o comando /jail no player e ele vai pra cadeia... tudo certo... quando da hr dele sair, ele vai pro templo certinho... o problema eh se eu prender o player por exemplo 2 dias e em algum momento eu reiniciar o servidor... o player nao sai quando o tempo de cadeia dele acabar... Gostaria que isso fosse checado quando o player logasse (login.lua) e que fosse registrado na Database do meu servidor Mysql quando ele for preso e quando tiver q sair... uso xampp... Vlw....
-
Nao Dropa Loot pra GOD
Naao nao... Revirei la e nada... Ngm sabe retirar isso pelas sources?
- Bless... Bug antigo sem soluçao
-
Bug da bless!
Tbm to com esse problemaa... e o meu volta pra level 1 ainda por cima...
-
Nao Dropa Loot pra GOD
Realmente galera... Tem mtos posts abandonados ai sobre isso... Voces sao os cara... vcs conseguem se tentarem... ajudem a gente... =D
-
Nao Dropa Loot pra GOD
Pq eh o jeito mais facil de ver se ta tudo certo com os loot dos bichos... E porque Diabos eles tiraram isso dos GOD... que bobeira... --' Edit: Alguem me passa um jeito de alterar direto na source e compila entaooo... Ajudem aeee.... ¬¬
-
Nao Dropa Loot pra GOD
Galera, me respondam uma coisa... meu God nao esta recebendo loot de qlqr bicho que ele mata... isso pode ser alterado no Groups.xml... Entao gostaria de que vcs calculassem pra mim o Flag do God pra cair loot... Esse e meu Groups.xml <?xml version="1.0" encoding="UTF-8"?> <groups> <group id="1" name="Player"/> <group id="2" name="Tutor" flags="16809984" customFlags="2" access="1" violationReasons="4" nameViolationFlags="2"/> <group id="3" name="Senior Tutor" flags="68736352256" customFlags="14" access="2" violationReasons="10" nameViolationFlags="2" statementViolationFlags="63" maxVips="200"/> <group id="4" name="Gamemaster" flags="3805908148058" customFlags="257215" access="3" violationReasons="19" nameViolationFlags="10" statementViolationFlags="69" depotLimit="3000" maxVips="300" outfit="75"/> <group id="5" name="Community Manager" flags="3840271032314" customFlags="781823" access="4" violationReasons="20" nameViolationFlags="42" statementViolationFlags="213" depotLimit="4000" maxVips="400" outfit="266"/> <group id="6" name="God" flags="3844566130680" customFlags="50331647" access="5" violationReasons="20" nameViolationFlags="426" statementViolationFlags="469" depotLimit="5000" maxVips="500" outfit="302"/> </groups> Uso TFS 0.4 Versao 4.4.0 Vlw
- Regeneraçao do player se mantem VIP
-
Melhor OtServ Global do Momento
Alguma dica de onde posso baixar um bem estavel?
-
Melhor OtServ Global do Momento
Galera to com uma duvida cruel... Gostaria que voces me falassem qual o melhor TFS Global que existe para baixar e a versao dele... Tenho um servidor 8.60 e gostaria de passar ele pra 8.70 e manter tudo que tenho nele... ou seria melhor uma versao 9.0+ ??? Digam o que seria melhor se vcs tivessem no meu lugar... Vlww
-
Re'Mover item quando a VIP acabar.
Decidi colocar os itens "VIP" para ser usados por qualquer player sendo VIP ou nao, pois eles ja vao pagar pelo item e sera direito deles usar qualquer hora em qualquer char... Caso alguem descubra uma maneira de resolver isso poste ai... Vai que alguem precise disso uma hora... e ganhara meu Rep tbm... Vlws
- Regeneraçao do player se mantem VIP
-
Regeneraçao do player se mantem VIP
Entaooo... esta certo e nao esta voltando a regeneraçao do Master Sorcerer... olha a vocaçao do vocation.xml <vocation id="5" name="Master Sorcerer" description="a Master Sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="6" gainmanaticks="2" gainmanaamount="25" manamultiplier="1.1" attackspeed="1600" soulmax="200" gainsoulticks="40" gainsoulamount="1" fromvoc="1" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" armor="1.0"/> <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.4"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="9" name="VIP Master Sorcerer" description="VIP Master Sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="10" gainmanaticks="2" gainmanaamount="33" manamultiplier="1.1" attackspeed="1600" soulmax="299" gainsoulticks="30" gainsoulamount="1" fromvoc="5" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="2.0" magDamage="1.2" magHealingDamage="1.0" defense="1.0" armor="1.0"/> <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.4"/> <skill id="6" multiplier="1.1"/>