Ir para conteúdo

rogeriomatx

Campones
  • Total de itens

    48
  • Registro em

  • Última visita

Tudo que rogeriomatx postou

  1. Não sou tão bom em script mais da uma checada no spells.xlm que você configurou essa spell, lá tem uma config que serve para issso...se não me engano algo assim blockwalls="1" .
  2. Testado no servido 8.6 The Forgotten Server 0.4_SVN, Versão 4.0 está 100% funcional. Reputando...
  3. ;D Como eu estava precisando, talvez alguém tenha a mesma dúvida ou problema.. Ai fica mais fácil a todos!!!
  4. Valeu msm @Dalvorsn, eu só não sabia como procurar, mas vc disse o nome da função ficou fácil... function onTime() function doBroadSave(delay) if delay ~= 0 then doBroadcastMessage("[Global server save] O server será desligado em "..delay.." Minuto"..(delay > 1 and "s" or "")) addEvent(doBroadSave, 60000, delay -1) else doSaveServer() doShutdown() end end doBroadSave(5) return true end <globalevent name="globalSave" time="17:00" event="script" value="globalSave.lua"/> Créditos do @vodkart RESOLVIDO!!
  5. 'Falaa aew mulekadam' preciso de um script para reiniciar meu ot em determinada hora do dia!!! bom quero que ele execute o comando /shutdown 5 ai o resto o linux se encarrega de abrir ele de volta.
  6. Olá galera do Xtibia, o meu servidor está apresentando o seguinte erro, [14:27:41.953] Vadia has logged out. [14:27:41.953] Error while saving player: Vadia. [14:28:32.265] Playsson has logged out. [14:28:32.265] Error while saving player: Playsson. [14:28:38.156] Error while saving player: Poti. [14:28:39.703] Druidzin has logged out. [14:28:39.703] Error while saving player: Druidzin. [14:29:58.734] Ladrao De Raios has logged out. ][14:29:58.734] Error while saving player: Ladrao De Raios. [14:30:07.015] Thommas Turbando has logged out. [14:30:07.015] Error while saving player: Thommas Turbando. tipo quando este erro acontece, não dá pra logar nenhum character e os players que estão online upam, mas não são salvos!!! Então se eles ficarem um noite upando, quando ot reinicia eles voltam os lvl... mas o erro some por um tempo estimado... mas ainda está ocorrendo.. Obs... Começou por agr esse erro.. Att Rogério Santos
  7. Esse sistema da pra fazer com trilhos de Trem tbm!!! Seria bem legal entrando em um tunel...
  8. Esse script funcionou com alguem? a versão V3.0
  9. Não, funcionou....mas já consegui.... Vlw... Pode fechar o tópico.
  10. Ola pessoal do Xtibia, estou aqui solicitando uma ajuda!! na mudança desse script... Tipo no meu OT as potions não são infinitas...mas quero que caso player seja premium as potions não irá remover cargas...tornando assim elas infinitas para premiuns... bom é isso!!! local config = { removeOnUse = "yes", usableOnTarget = "yes", -- can be used on target? (fe. healing friend) splashable = "yes", realAnimation = "no", -- make text effect visible only for players in range 1x1 healthMultiplier = 1.0, manaMultiplier = 1.0 } config.removeOnUse = getBooleanFromString(config.removeOnUse) config.usableOnTarget = getBooleanFromString(config.usableOnTarget) config.splashable = getBooleanFromString(config.splashable) config.realAnimation = getBooleanFromString(config.realAnimation) local POTIONS = { [8704] = {empty = 7636, splash = 2, health = {50, 100}}, -- small health potion [7618] = {empty = 7636, splash = 2, health = {100, 200}}, -- health potion [7588] = {empty = 7634, splash = 2, health = {200, 400}, level = 50, vocations = {3, 4, 7, 8, 14}, vocStr = "knights and paladins"}, -- strong health potion [7591] = {empty = 7635, splash = 2, health = {500, 700}, level = 80, vocations = {4, 8}, vocStr = "knights"}, -- great health potion [8473] = {empty = 7635, splash = 2, health = {900, 1000}, level = 130, vocations = {4, 8 , 12, 14}, vocStr = "knights"}, -- ultimate health potion [7620] = {empty = 7636, splash = 7, mana = {100, 190}}, -- mana potion [7589] = {empty = 7634, splash = 7, mana = {150, 290}, level = 50, vocations = {1, 2, 3, 5, 6, 7 ,11, 13, 14}, vocStr = "sorcerers, druids and paladins"}, -- strong mana potion [7590] = {empty = 7635, splash = 7, mana = {400, 450}, level = 80, vocations = {1, 2, 5, 6 ,9 ,10, 13, 14}, vocStr = "sorcerers and druids"}, -- great mana potion [8472] = {empty = 7635, splash = 3, health = {300, 400}, mana = {210, 250}, level = 80, vocations = {3, 7 ,11 ,13}, vocStr = "paladins"} -- great spirit potion } local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition) local potion = POTIONS[item.itemid] if(not potion) then return false end if(not isPlayer(itemEx.uid) or (not config.usableOnTarget and cid ~= itemEx.uid)) then if(not config.splashable) then return false end if(toPosition.x == CONTAINER_POSITION) then toPosition = getThingPos(item.uid) end doDecayItem(doCreateItem(2016, potion.splash, toPosition)) return TRUE end if(hasCondition(cid, CONDITION_EXHAUST_HEAL)) then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return TRUE end if(((potion.level and getPlayerLevel(cid) < potion.level) or (potion.vocations and not isInArray(potion.vocations, getPlayerVocation(cid)))) and not getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) then doCreatureSay(itemEx.uid, "Only " .. potion.vocStr .. (potion.level and (" of level " .. potion.level) or "") .. " or above may drink this fluid.", TALKTYPE_ORANGE_1) return TRUE end local health = potion.health if(health and not doCreatureAddHealth(itemEx.uid, math.ceil(math.random(health[1], health[2]) * config.healthMultiplier))) then return false end local mana = potion.mana if(mana and not doPlayerAddMana(itemEx.uid, math.ceil(math.random(mana[1], mana[2]) * config.manaMultiplier))) then return false end doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE) if(not realAnimation) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) else for i, tid in ipairs(getSpectators(getCreaturePosition(cid), 1, 1)) do if(isPlayer(tid)) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1, false, tid) end end end if(not potion.empty or config.removeOnUse) then doRemoveItem(item.uid, 1) return true end doRemoveItem(item.uid, 1) return true end if(not potion.empty or config.removeOnUse) then doRemoveItem(item.uid, 1) return true end doRemoveItem(item.uid, 1) return true end Em VERMELHO é a condição de Remover!!! Queria que adiciona-se uma condição que se o player premium usa potion não remove-se
  11. Testei, o script não apresenta erro algum, mas não da exp; Não está upando!! Servidor 8.6 The Forgotten Server 0.4_SVN
  12. Tenta usar esse comando na sua database... UPDATE `players` SET `promotion`=0; E use mude sua vocations.xlm <?xml version="1.0" encoding="UTF-8"?> <vocations> <vocation id="0" name="None" description="none" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/> <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="1" name="Sorcerer" description="a sorcerer" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="5" gainmanaticks="2" gainmanaamount="15" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="1" lessloss="20"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/> <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="2" name="Druid" description="a druid" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="5" gainmanaticks="2" gainmanaamount="15" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="2" lessloss="20"> <formula meleeDamage="1.0" distDamage="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.5"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="3" name="Paladin" description="a paladin" gaincap="20" gainhp="10" gainmana="15" gainhpticks="2" gainhpamount="10" gainmanaticks="2" gainmanaamount="15" manamultiplier="1.6" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="3" lessloss="20"> <formula meleeDamage="1.0" distDamage="1.5" 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="4" name="Knight" description="a knight" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="20" gainmanaticks="2" gainmanaamount="5" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="4" lessloss="20"> <formula meleeDamage="1.5" distDamage="1.0" defense="1.0" armor="1.0"/> <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="5" name="Master Sorcerer" description="a master sorcerer" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="10" gainmanaticks="2" gainmanaamount="30" manamultiplier="1.1" attackspeed="1500" soulmax="200" gainsoulticks="15" fromvoc="5" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/> <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="6" name="Elder Druid" description="an elder druid" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="10" gainmanaticks="2" gainmanaamount="30" manamultiplier="1.1" attackspeed="1500" soulmax="200" gainsoulticks="15" fromvoc="6" lessloss="30"> <formula meleeDamage="1.0" distDamage="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.5"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="7" name="Royal Paladin" description="a royal paladin" gaincap="20" gainhp="10" gainmana="15" gainhpticks="2" gainhpamount="15" gainmanaticks="2" gainmanaamount="30" manamultiplier="1.6" attackspeed="1500" soulmax="200" gainsoulticks="15" fromvoc="7" lessloss="30"> <formula meleeDamage="1.0" distDamage="2.0" 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="8" name="Elite Knight" description="an elite knight" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="30" gainmanaticks="2" gainmanaamount="10" manamultiplier="4.0" attackspeed="1500" soulmax="200" gainsoulticks="15" fromvoc="8" lessloss="30"> <formula meleeDamage="2.0" distDamage="1.0" defense="1.0" armor="1.0"/> <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="9" name="Hell Wizard" description="a Hell Wizard" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="20" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="1300" soulmax="200" gainsoulticks="5" fromvoc="9" lessloss="50"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/> <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="High Saintess" description="a High Saintess" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="20" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="1300" soulmax="200" gainsoulticks="5" fromvoc="10" lessloss="50"> <formula meleeDamage="1.0" distDamage="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.5"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="11" name="Forcer Archer" description="a Forcer Archer" gaincap="20" gainhp="10" gainmana="15" gainhpticks="2" gainhpamount="25" gainmanaticks="2" gainmanaamount="50" manamultiplier="1.6" attackspeed="1300" soulmax="200" gainsoulticks="15" fromvoc="11" lessloss="50"> <formula meleeDamage="1.0" distDamage="3.0" 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="12" name="Titan Blader" description="a Titan Blader" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="60" gainmanaticks="2" gainmanaamount="25" manamultiplier="4.0" attackspeed="1300" soulmax="200" gainsoulticks="15" fromvoc="12" lessloss="50"> <formula meleeDamage="3.0" distDamage="1.0" defense="1.0" armor="1.0"/> <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> Agr poe esse NPC para pagar a promotion...e Testa aew local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid if(msgcontains(msg, 'promote') or msgcontains(msg, 'promotion')) then selfSay('Deseja virar {promotion} ?', cid) talkState[talkUser] = 1 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if(getPlayerItemCount(cid, 2160) >= 2) and (getPlayerVocation(cid) >= 1 and getPlayerVocation(cid) <=4) then doPlayerRemoveItem(cid, 2160, 2) doPlayerSetVocation(cid, getPlayerVocation(cid)+4) selfSay('Parabéns você acaba de ser promovido.', cid) else selfSay('Voce não dinheiro suficiente!', cid) end talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Te ajudei? REP +++
  13. Esta ai... local vocations = {1,2,3,4,6,7,8} --- allowed vocations. function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) local tpos,v = {x=1005, y=1136, z=7},getThingPos(cid) -- {x=1,y=1,z=1} is the position you teleport to, don't change getThingPos(cid). if isInArray(vocations,getPlayerVocation(cid)) then doTeleportThing(cid,tpos) doSendMagicEffect(v,10) else doTeleportThing(cid,fromPosition) doPlayerSendTextMessage(cid,27,'You aren\'t the right vocation.') doSendMagicEffect(v,2) end return true end Tag <movevent type="StepIn" actionid="XXXX" event="script" value="XXXX.lua"/> Caso o player possua a vocação ele será teleportado para a coordenada tpos,v = {x=1005, y=1136, z=7}... Ajudei...REP
  14. Mano queria ver se geior faria isso, mas vou arruamar uma maneira aqui..se o gesior não da suporte...
  15. Mano eu ja fiz isso, mas aconteçe que não da para criar outras vocações a não ser o no vocation!!!
  16. mano teu erro deve ser no vocations.xml
  17. Acontece que eu não quero, excluir as opções de criar characters com vocações...eu só quero que crie chars sem vocação...e esse chars devem nascer em rookguaard...e os demais characters com vocações definidas em outra cidade sem ser RookGauarD.. att Rogério Santos.
  18. mas nesse caso terei dois mundos!!! mas eu quero que eles loguem no mesmo servidor!!!
  19. Olá pessoal do Xtibia, bom estive tetando configurar o Config.php do Gesior da seguinte forma, quero criar os characters sem vocação em Rook Guard.... e os demais com vocação nas citys do meu mapa mesmo... mas não consegui fazer isso no Gesior... // CHARACTER config, format: ID_of_vocation => 'Name of Character to copy', load vocation name from $vocation_name[0] (below) $config['site']['newchar_vocations'][0] = array(1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample'); $config['site']['newchar_vocations'][1] = array(1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample'); // sample, if rook only: $config['site']['newchar_vocations'][0] = array(0 => 'Rook Sample'); $config['site']['newchar_towns'][0] = array(5); // sample, if all players should spawn in one city (city with ID 4): uncoment!! //$config['site']['newchar_towns'] = array(4); // list of vocations on ots (world 0) $vocation_name[0][0] = array(0 => 'None', 1 => 'Sorcerer', 2 => 'Druid', 3 => 'Paladin', 4 => 'Knight'); // id => 'name' , $vocation_name[0] - promotion level 0, $vocation_name[0] - for world ID 0 $vocation_name[0][1] = array(1 => 'Master Sorcerer', 2 => 'Elder Druid', 3 => 'Royal Paladin', 4 => 'Elite Knight'); // id => 'name' , $vocation_name[1] - promotion level 1, $vocation_name[0] - for world ID 0 $vocation_name[0][2] = array(1 => 'Dark Sorcerer', 2 => 'Forest Druid', 3 => 'Sacred Paladin', 4 => 'Powered Knight'); // id => 'name' , $vocation_name[1] - promotion level 1, $vocation_name[1] - for world ID 1 // list of towns on ots $towns_list[0] = array(0 => '-------------', 1 => 'Yalahar', 2 => 'Carlin', 3 => 'Ab Dendriel', 4 => 'Kazordoon', 5 => 'Thais', 6 => 'Venore', 7 => 'Darashia', 8 => 'Ankramun', 9 => 'Edron', 10 => 'Port Hope', 11 => 'Ethno', 12 => 'Liberty Bay', 13 => 'Svargrond', 14 => 'Cormaya', 15 => 'Gengia', 16 => 'Galaxy', 17 => 'Farmine'); // list of towns, id => 'name', $towns_list[0] - for world id 0 Att Rogério Santos
  20. você mensionou proteção ddos, deve ser isso, pois ele está em um vps...vou está vendo as regras....pois sou mei leigo ainda....mas aprendo rápido
  21. Procure essa linha no config.lua e edite a seu gosto a exp.. rateExperienceFromPlayers = 0
  • Quem Está Navegando   0 membros estão online

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