Tudo que Magalhaes92 postou
- 
	
		
		Contruçao de Script
		
		Acho q o meu é 0.4 ) (O DA FOTO) . Deve ser isso ne ? FUNCIONOU PERFEITAMENTE, AGORA SO ME DIZ UMA COISA. COMO FAÇO PRA TIRAR O SLOT ''SHIELD'' E OUTRA COISA MUITO IMPORTANTE, MEU ITEMS TEM ATRIBUTOS distance fighting +2, protection all +2% E PARA FUNCIONAR TEM Q ESTA REGISTRADO NO MOVEMENTS e Devido ao value="onDeEquipItem"/> value="onEquipItem"> que nao tem no script MOVEMENTS nao é possivel funcionar os ATRIBUTOS. Como faço para ter os atributos e ter o script de TEXTO ?
- 
	
		
		Contruçao de Script
		
		@Brunds Exatamente, não deu nenhum erro, mas não funciona. o Text não sai !
- 
	
		
		Mudar Script
		
		local config = { tempo = 3, --tempo em segundos, voce pode colocar de quanto em quanto tempo o efeito vai aparecer eu deixei 3 segundos mas pode deixar o quanto quizer efeito = 15, --aqui voce coloca o eveito que tu quer eu deixei 15 mas voce pode alterar como quizer para ver os efeitos disponiveis abra o object builder e vá em effects e seja feliz } function AURA(cid) if getPlayerStorageValue(cid, 554466) == 1 then doSendMagicEffect(getCreaturePosition(cid), config.efeito) addEvent(AURA, config.tempo*1000, cid) end end function onEquip (cid, item, slot) setPlayerStorageValue(cid, 554466, 1) AURA(cid) return true end function onDeEquip(cid, item, slot) setPlayerStorageValue(cid, 554466, -1) return true end Tirar o efeito e botar pra sair uma frase. FRASE: SetFULL
- 
	
		
		Ajuda a resolver esse error
		
		Toda vez que eu adiciono e tenso SALVAR um script no .lua da esse seguinte erro. Ja tentei usar ''NORMALMENTE'' e quando tento usar com o ''Notepad'' o script nao parece funcionar. Alguem teria uma luz ?
- 
	
		
		Contruçao de Script
		
		Vir algumas como movements, mas sem sucesso tbm ! Como eu falei sairia do player ( Quem nem [VIP] ) Entendeu ? Apenas desejaria o script pronto, infelizmente sou leigo nesse assunto ! =[
- 
	
		
		PEDIDO BLOOD CASTLE
		
		Esse aqui amigo. Porem Esse para de funcionar. Gostaria de algum q funcionasse tranquilamente.
- 
	
		
		PEDIDO BLOOD CASTLE
		
		GOSTARIA DE PEDIR O EVENTO BLOOD CASTLE QUE FUNCIONE PERFEITAMENTE.
- 
	
		
		Contruçao de Script
		
		Então galera, faz tempo que estou atras desse script, ja pedir ajuda em modificar o script e tals, e tudo sem sucesso. Estou querendo um script que ao EQUIPAR os 5 items items (ID: 12606,12603,12604,2641,12605) ficaria saindo do personagem em 3 em 3 segundos o nome "SETFULL" Sera que alguém poderia ajudar pf ?
- 
	
		
		Modificar Script
		
		Tenho esse script em meu ot, porem queria que saisse um nome (Exemplo: ''SETFULL'' ) pois ele ta saindo efeito, e que se pudesse colocasse tbm o slot do Shield que nao tem. local set = { [CONST_SLOT_HEAD] = 1111, -- id do helmet [CONST_SLOT_ARMOR] = 2222, -- || armor [CONST_SLOT_LEGS] = 3333, --|| legs [CONST_SLOT_FEET] = 4444 --|| boots local interval = 1 -- intervalo em segundos entre dois efeitos local set_effect = CONST_ME_FIREWORK_RED -- edite o id do efeito local set = { [CONST_SLOT_HEAD] = 1111, -- id do helmet [CONST_SLOT_ARMOR] = 2222, -- || armor [CONST_SLOT_LEGS] = 3333, --|| legs [CONST_SLOT_FEET] = 4444 --|| boots } function onEquip(cid, item, slot) SendEffect(cid, set_effect, interval) return true end function SendEffect(cid, effect, time) if isPlayer(cid) then local check = true for slot, id in pairs(set) do if getPlayerSlotItem(cid, slot).itemid ~= id then check = false break end end if check == true then doSendMagicEffect(getPlayerPosition(cid), effect) addEvent(SendEffect, time*1000, cid, effect, time) end end return true end
- 
	
		
		protection system
		
		Galera, estava querendo um script que tipo assim.... Um char tem uma armor que da protection all +4% Ai ao usar esse armor que da essa protaçao de 4%, eu gostaria que ficasse saindo do personagem em 5 em 5 segundos quantos % de proteção ele tem. Alguém poderia disponibilizar isso pf ?
- 
	
		
		RESOLVER BUG PF
		
		Como posso desativar o sistema de party ? Alguém pra ajudar PLMD
- 
	
		
		RESOLVER BUG PF
		
		Nao mano, o server e o antigo baiak rox. Poderia me ajudar de alguma forma ?
- 
	
		
		RESOLVER BUG PF
		
		Então galera... Eu tenho um otzinho rox dos antigos. So que tem um retardado chamado MALOKA ''BUGANDO'' meu ot entre outros no ot server list. Ele vai em Teleport em Teleport e digita ''inv party'' dps disso o server Cai. Alguém pode me ajudar por favor.
- 
	
		
		Modificar Script
		
		Então galera... tenho esse script UPGRADE no meu ot. Estou querendo que cada pedra que upasse no item só desse 1% (Pois ela esta dando de 1% a 100%). Gostaria que o valor de 1% ficasse FIXO. Teria como alguém ajudar pf. REP + ---Script by mock the bear! local conditionMP,conditionHP,conditionML,conditionCLUB,conditionSHI,conditionDIST,conditionAMP = {},{},{},{},{},{},{} for i=1,100 do ---Carrega as conditions --- HP conditionHP = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(conditionHP, CONDITION_PARAM_TICKS, -1) setConditionParam(conditionHP, CONDITION_PARAM_STAT_MAXHEALTHPERCENT, 100+i) setConditionParam(conditionHP, CONDITION_PARAM_BUFF, true) setConditionParam(conditionHP, CONDITION_PARAM_SUBID, 50) --MANA conditionMP = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(conditionMP, CONDITION_PARAM_TICKS, -1) setConditionParam(conditionMP, CONDITION_PARAM_STAT_MAXMANAPERCENT, 100+i) setConditionParam(conditionMP, CONDITION_PARAM_BUFF, true) setConditionParam(conditionMP, CONDITION_PARAM_SUBID, 51) --Magic level conditionML = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(conditionML, CONDITION_PARAM_TICKS, -1) setConditionParam(conditionML, CONDITION_PARAM_STAT_MAGICLEVELPERCENT, 100+i) setConditionParam(conditionML, CONDITION_PARAM_BUFF, true) setConditionParam(conditionML, CONDITION_PARAM_SUBID, 52) --club axe sword conditionCLUB = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(conditionCLUB, CONDITION_PARAM_TICKS, -1) setConditionParam(conditionCLUB, CONDITION_PARAM_SKILL_CLUBPERCENT, 100+i) setConditionParam(conditionCLUB, CONDITION_PARAM_SKILL_SWORDPERCENT, 100+i) setConditionParam(conditionCLUB, CONDITION_PARAM_SKILL_AXEPERCENT, 100+i) setConditionParam(conditionCLUB, CONDITION_PARAM_BUFF, true) setConditionParam(conditionCLUB, CONDITION_PARAM_SUBID, 53) --- shield conditionSHI = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(conditionSHI, CONDITION_PARAM_TICKS, -1) setConditionParam(conditionSHI, CONDITION_PARAM_SKILL_SHIELDPERCENT, 100+i) setConditionParam(conditionSHI, CONDITION_PARAM_BUFF, true) setConditionParam(conditionSHI, CONDITION_PARAM_SUBID, 54) --- dist conditionDIST = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(conditionDIST, CONDITION_PARAM_TICKS, -1) setConditionParam(conditionDIST, CONDITION_PARAM_SKILL_DISTANCEPERCENT, 100+i) setConditionParam(conditionDIST, CONDITION_PARAM_BUFF, true) setConditionParam(conditionDIST, CONDITION_PARAM_SUBID, 55) end function getSlotType(n) --By mock the bear if not n then return false end if n:match('%[(.+)%]') then n = n:match('%[(.+)%]') if n == '?' then return 0,n else return n:match('(.-)%.([+-])(%d+)%%') end else return false end end local function loadSet(cid) local t = {} for slot=1,9 do t[slot] = '' --print() local s = getPlayerSlotItem(cid,slot).uid if s ~= 0 then t[slot] = getItemName(s) end end return t end function isInArray2(arr,var) -- Because in some servers it return 1 and 0 and others true and false for i,b in pairs(arr) do if var == b then return true end end return false end function check2(cid,i) if i == 5 or i == 6 then if isInArray({'head','necklace','backpack','body','legs','feet','ring'},getItemValue(getPlayerSlotItem(cid,i).itemid,'slotType') or '') then return false end end return true end function chk(cid,f) if not isPlayer(cid) then return end local t = loadSet(cid) for i=1,#f do if f ~= t then equip(cid,nil,slot) break end end addEvent(chk,2000,cid,t) end items = { ---- Only to get attr: slotType because getItemName dont return it -.-' _VERSION='1.0 By mock', XML_DIR='data/items/items.xml', } do local ia = os.clock() io.write('Loading items') local i = io.open(items.XML_DIR,'r') local u = i:read(-1) i:close() local u = u:match('<items>(.+)</items>') for mi,id,mid,name,data,me in u:gmatch('<(%a-)%s*id%s*=%s*"(%d+)"%s*(.-)%s*name%s*=%s*"(.-)"%s*>(.-)</(%a*)>') do if mi == 'item' and me == 'item' then local td = {name=name,id=id,type=1} for key,value in data:gmatch('<attribute key="(.-)" value="(.-)"/>') do td[key] = value end for key,value in mid:gmatch('(.-)="(.-)"') do td[key] = value end items[tonumber(id)] = td if not name then print(id,'l',mi,id,mid,data,me) end items[name] = td end end for mi,id,mid,name,data in u:gmatch('<(%a-)%s*id%s*=%s*"(%d*)"%s*(.-)%s*name%s*=%s*"(%a+)"%s*/>') do if mi == 'item' then local td = {name=name,id=id,type=2} for key,value in mid:gmatch('(.-)="(.-)"') do td[key] = value end items[tonumber(id)] = td items[name] = td end end io.write('[done '..os.clock()-ia..']\n') end function getItemValue(item,value) return items[item] and items[item][value] end function equip(cid,item,slot) --By mock the bear local HP = getCreatureHealth(cid) local MP = getCreatureMana(cid) local t = {} if item then local mm,sinal,qto = getSlotType(getItemName(item.uid)) t[mm] = tonumber(qto) end for i=1,9 do -- Not on slot 10 > arrow if i ~= slot then if getPlayerSlotItem(cid,i).itemid ~= 0 then local aab = getPlayerSlotItem(cid,i).uid if aab and check2(cid,i) then for _ in getItemName(aab):gmatch('(%[.-%])') do local mm,sinal,qto2 = getSlotType(_) if mm then if not t[mm] then t[mm] = 0 end t[mm] = t[mm]+tonumber(qto2) print(mm,qto2) t[mm] = t[mm] > 100 and 100 or t[mm] end end end end end end local fu = 0 local ca = {} local s = '' for sl,n in pairs(t) do fu = fu+1 s = s..''..n..'% more of '..sl..'\n' if sl == 'hp' then doAddCondition(cid,conditionHP[tonumber(n)]) doCreatureAddHealth(cid,HP-getCreatureHealth(cid)) ca[50] = 1 doPlayerSendTutorial(cid,19) elseif sl == 'mp' then doAddCondition(cid,conditionMP[tonumber(n)]) doCreatureAddMana(cid,HP-getCreatureMana(cid)) ca[51] = 1 doPlayerSendTutorial(cid,19) elseif sl == 'ml' then doAddCondition(cid,conditionML[tonumber(n)]) ca[52] = 1 elseif sl == 'cas' then doAddCondition(cid,conditionCLUB[tonumber(n)]) ca[53] = 1 elseif sl == 'shield' then doAddCondition(cid,conditionSHI[tonumber(n)]) ca[54] = 1 elseif sl == 'dist' then doAddCondition(cid,conditionDIST[tonumber(n)]) ca[55] = 1 end end if fu > 0 then addEvent(doPlayerSendTextMessage,100,cid,24,'You have:\n'..s) for i=50,55 do if not ca then doRemoveCondition(cid,CONDITION_ATTRIBUTES,i) end end else for i=50,55 do doRemoveCondition(cid,CONDITION_ATTRIBUTES,i) end end return true end function onLogin(cid) ---Script by mock the bear! equip(cid,nil,slot) addEvent(chk,2000,cid,loadSet(cid)) return TRUE end
- 
	
		
		TRANSFORMAR EM ACTIONS
		
		NÃO FUNCIONOU ! AO CLICAR NO ITEM NÃO FUNCIONADA NADA E NÃO DA NENHUM ERRO NO CONSOLE.
- 
	
		
		TRANSFORMAR EM ACTIONS
		
		Ola galera tenho esse script como talk, gostaria que funcionasse como ACTION. (Clicando no ITEM) Teria como alguém ajudar pf ? local colors = {94, 81, 79, 88, 18, 11, 92, 128} local storage = 65535 local time = 5 --in miliseconds function onSay(cid, words, param, channel) if(param == "on") then if getPlayerStorageValue(cid, storage) < 1 then if doPlayerRemoveMoney(cid, 0) == TRUE then local event = addEvent(changeOutfit, time, cid) setPlayerStorageValue(cid, storage, 1) return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You do not have enough money.") return TRUE end else return TRUE end elseif(param == "off") then if getPlayerStorageValue(cid, storage) > 0 then setPlayerStorageValue(cid, storage, 0) return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You do not have rainbow outfit on.") return TRUE end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Rainbow Sempre Estara Ativado!") return TRUE end return TRUE end function changeOutfit(cid) local randomHead = colors[math.random(#colors)] local randomLegs = colors[math.random(#colors)] local randomBody = colors[math.random(#colors)] local randomFeet = colors[math.random(#colors)] local tmp = {} if getPlayerStorageValue(cid, storage) > 0 then local outfit = getCreatureOutfit(cid) tmp = outfit tmp.lookType = outfit.lookType tmp.lookHead = randomHead tmp.lookLegs = randomLegs tmp.lookBody = randomBody tmp.lookFeet = randomFeet tmp.lookAddons = outfit.lookAddons doCreatureChangeOutfit(cid, tmp) local event = addEvent(repeatChangeOutfit, time, cid) return TRUE else stopEvent(event) return TRUE end end function repeatChangeOutfit(cid) local randomHead = colors[math.random(#colors)] local randomLegs = colors[math.random(#colors)] local randomBody = colors[math.random(#colors)] local randomFeet = colors[math.random(#colors)] local tmp = {} if getPlayerStorageValue(cid, storage) > 0 then local outfit = getCreatureOutfit(cid) tmp = outfit tmp.lookType = outfit.lookType tmp.lookHead = randomHead tmp.lookLegs = randomLegs tmp.lookBody = randomBody tmp.lookFeet = randomFeet tmp.lookAddons = outfit.lookAddons doCreatureChangeOutfit(cid, tmp) local event = addEvent(changeOutfit, time, cid) return TRUE else stopEvent(event) return TRUE end end <talkaction words="!rainbow" event="script" value="rainbow.lua"/>
- 
	
		
		[8.60] Desert War 0.6
		
		POR FAVOR, ALGUÉM ARRUMA O DOWNLOAD.
- 
	
		
		UPAR OTSERVER
		
		Ola, Alguém poderia fazer uma gentileza de upar o Deseter War em algum link e passar por favor. Eu estava com ele no pc... Porem o pc deu pal. Agradeço desde de ja =* Up
- 
	
		
		AJUDA COM VPS
		
		ENTÃO GALERA, EU TENHO UM VPS NO CANADA, UM PLAYER ME FALOU QUE SE USAR UM PROGRAMA OU SEI LA OQUE DA PRA MELHOR O ''PING''. ALGUÉM SABE DE ALGO A RESPEITO, ALGUÉM PODERIA AJUDAR ? AGRADEÇO DESDE DE JA.
- 
	
		
		Ao adicionar os script da erro
		
		Usei notepad ++ com ele tbm, da erro ao salvar.
- 
	
		
		Ao adicionar os script da erro
		
		Então galera ja faz um tempo que estou tentando e nada. Ao tentar adicionar algum script da essa seguinte msg, eu ja tentei no meu pc, ja tentei no host mas sempre da essa msg, como resolvo ?
- 
	
		
		PROGRAMAÇAO
		
		Então galera, tenho um ot 8.60. TFS 0.4 queria que alguem me desse uma luz, quero que ele tenha aquele Fastatk fixo e o tal do DASH e Cast System (NÃO FAÇO QUESTÃO DO WAR SYSTEM), sem precisar usar bot pra ter fast atk. Meu ot nao tem site e é SQLITE. Eu nao sei mecher como essas coisas, por isso estou aqui pedindo essa ajuda. E algo como complicar, otx... sla. Eu ja entrei e ja vir vários ots que n tem site e funfando em sql como tudo isso, devido a isso fiquei entrigado e estou querendo adpitar isso em meu ot. E Estou disposto a pagar uma quantia significativa de 40 R$ Via Paypal Ou Pagseguro para quem me ajudar. Alguns vão dizer que tem tutorial e mais sla oq, mas EU NAO SEI MECHER. Contato: 73 98810-7868
- 
	
		
		Aura system (MODIFICAR)
		
		
- 
	
		
		Aura system (MODIFICAR)
		
		Então galera queria pedir ajudar de vocês, eu tenho esse system de aura em meu ot. so que eu queria que cada vocação usasse um efeito diferente. Teria como alguem ajudar pf ? Efeito Pala = 34 Efeito Kina = 24 Efeito Druid = 37 Efeito Sorc = 10 -- CONFIGURAÇÕES porcentagem = 100 -- chance de curar em cada volta da aura, em porcentagem quantheal = 10 -- porcentagem do hp máximo que cada cura irá curar. (No caso, irá curar 10% do hp máximo cada cura) tempo = 1180 -- tempo para dar uma volta no player (este tempo foi o que achei mais agradável visualmente, é recomendável não mudar) tipoaura = 36 -- número do efeito da aura (efeito de distância, pode ser identificado com /x no jogo) efeitocura = 49 -- número do efeito quando a cura chega ao player (efeito de posição fixa, pode ser identificado com /z no jogo) -- Função que chama a aura function efeitosAura(i,tm,cid) if(isCreature(cid)) then local atual = getCreaturePosition(cid) local posaura = { {x=(atual.x)-1, y=(atual.y)-1, z=atual.z}, {x=atual.x, y=(atual.y)-1, z=atual.z}, {x=(atual.x)+1, y=(atual.y)-1, z=atual.z}, {x=(atual.x)+1, y=atual.y, z=atual.z}, {x=(atual.x)+1, y=(atual.y)+1, z=atual.z}, {x=atual.x, y=(atual.y)+1, z=atual.z}, {x=(atual.x)-1, y=(atual.y)+1, z=atual.z}, {x=(atual.x)-1, y=atual.y, z=atual.z}, } local chances = math.random(100) if(chances<=porcentagem/8 and getCreatureHealth(cid)<getCreatureMaxHealth(cid)) then doCreatureAddHealth(cid, getCreatureMaxHealth(cid)/quantheal) if(i<=8 and i>1) then doSendDistanceShoot({x=posaura.x, y=posaura.y, z=posaura.z}, atual, tipoaura) else doSendDistanceShoot({x=posaura[1].x, y=posaura[1].y, z=posaura[1].z}, atual, tipoaura) end doSendMagicEffect(atual, efeitocura) end if(i==8) then doSendDistanceShoot({x=posaura.x, y=posaura.y, z=posaura.z}, {x=posaura[1].x, y=posaura[1].y, z=posaura[1].z}, tipoaura) elseif(i<8) then doSendDistanceShoot({x=posaura.x, y=posaura.y, z=posaura.z}, {x=posaura[i+1].x, y=posaura[i+1].y, z=posaura[i+1].z}, tipoaura) end if(i<=8) then i = i+1 tm = tempo/8 return addEvent(efeitosAura,tm,i,tm,cid) else return efeitosAura(1,0,cid) end else return TRUE end end --Função principal function onLogin(cid) if(getPlayerLevel(cid)>500) then return efeitosAura(1,tempo/8,cid) end return TRUE end
- 
	
		
		Colocar level no script
		
		Gostaria de colocar um level minimo nesse script que seria de level 500. se ele matar lvl 500+ ele ganha o item, se ele matar 500- ele não ganha o item. Sera que alguém pode ajudar ? function onKill(cid, target, lastHit) local item,count = 5925,1 if isPlayer(cid) and isPlayer(target) and getPlayerIp(target) ~= getPlayerIp(cid) then doPlayerAddItem(cid, item, count) end return TRUE end
 
     
     
     
     
			
				 
				 
                     
                     
                     
                    