Tudo que Jeanzim postou
-
Som no OTC
Olá , alguem poderia me ajudar um mini tutorial para colocar musica no otc , por ex: eu tenho na pasta data/sounds o som inicial mas não faço ideia de onde esteja o script que faz o som rodar.. queria mecher nisso..
-
spell da outfit
vou tentar pra vc , nao sou experiente.. @acan se ajudei rep + function onCastSpell(cid, var) outfitchanger = {looktype = 150} -- outfit para qual deseja mudar vocid = 4 -- id da voc que usará a spell timer = 10 -- tempo em segundos em que a outfit e a nova vocação durará if getPlayerVocation(cid) == vocid then doSetCreatureOutfit (cid, outfitchanger, timer*1000) doPlayerSetVocation(cid,2) addEvent(doPlayerSetVocation, timer*1000, cid, vocid) else doPlayerSendCancel(cid, "essa transform não é para sua vocação") end end
-
(Resolvido)Hotkeys em portugues..
@Rusherzin vou testar aqui :D reputado :D
-
(Resolvido)Hotkeys em portugues..
olá gostaria de mudar a mensagem de texto ao usar um item que está na hotkey por ex ''using last sudden death rune'' para ''você usou sua ultima sudden death rune'' não faço ideia de onde mecher pra mudar isso? sources? alguem pelo menos me da uma direção de onde procurar ou se informar..
-
Spell por voc
alguem pode fazer uma spell em que o player que usalá só recebera dano de magias usadar por outro player de x vocação, caso contrário as magias não vão causar nenhum dano durante 5 seg? help
-
Dosetcreatureoutfit valendo rep+++
@marcot desculpa reviver , mas tentei usar a script para criar outras magias com áreas diferentes mas a função transformAroundPos carrega a mesma para todos os scripts mesmo que eu mude .. tem como ajudar ai?
-
item que faz o palyer falar
uma action que dou use no item o player fala por ex: olá , tchau.. help?
-
(Resolvido)setplayerlookdirection?
tfs 0.3.6 funcionou nao aqui ;s funcionou sim tava usando de forma errada heueh vlw rep +
-
(Resolvido)setplayerlookdirection?
existe alguma função para mudar a direção que o target está olhando? se possivel um addevent REP+ :D
-
Magia que empurra
olá gostaria de ajuda com essa spell ela empurra o alvo 1 sqm e quem usou ela é teleportado no lugar do alvo.. porem se não tem alvo o player que usou a magia fica no mesmo lugar.. queria que o player que usou andasse 1 sqm dependendo da direção que esta olhando.. por ex se está olhando para o norte andar 1 sqm pro norte e assim por diante.. sem precisar do ''doTeleportThing(uid, fromPosition, true)'' obs: essa spell e do nightwolf só diminui a área e coloquei pro player andar tmb. eis o script : local function doPushCreature(target, uid) if target > 0 then if not isNpc(target) then local direction =getPlayerLookDir(cid) local postarg = getCreaturePosition(target) local position = getThingPosition(uid) local positionone = {x = position.x+1, y = position.y, z = position.z} local fromPosition = getThingPosition(target) local x = ((fromPosition.x - position.x) < 0 and -1 or ((fromPosition.x - position.x) == 0 and 0 or 1)) local y = ((fromPosition.y - position.y) < 0 and -1 or ((fromPosition.y - position.y) == 0 and 0 or 1)) local toPosition = {x = fromPosition.x + x, y = fromPosition.y + y, z = fromPosition.z} if doTileQueryAdd(target, toPosition) == 1 and getTileInfo(toPosition).house == false then doTeleportThing(target, toPosition, true) doTeleportThing(uid, fromPosition, true) end end end end local spell = {} spell.config = { [1] = { damageType = 1, areaEffect = 2, area = { {0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 3, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0} } } } spell.combats = {} for _, config in ipairs(spell.config) do local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, config.damageType) setCombatParam(combat, COMBAT_PARAM_EFFECT, config.areaEffect) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -4, 0, -4.7, 0) function onTargetCreature(cid, target) doPushCreature(target, cid) end setCombatCallback(combat, 4, "onTargetCreature") setCombatArea(combat, createCombatArea(config.area)) table.insert(spell.combats, combat) end function onCastSpell(cid, var) for n = 1, #spell.combats do addEvent(doCombat, (n * 120), cid, spell.combats[n], var) end return true end
-
Config.lua OT não fica on help
quero deixar ele online só pra mim vei , não consigo apareçe esse erro algue da um help ae?
-
Chaos Acolyte Outfit
por que não acho o Chaos Acolyte Outfits no object builder?
-
Spell com effect
salve salve , queria uma spell que durasse 10 seg -aumenta-se 40 magic level -durante os 10 seg quando o player fica parado fica aparecendo um magic effect , porem seria por direções se ele estivesse olhando para o norte então magic effect 1 , pro sul 2 ,direita 3 e esquerda 4. queria que não soltasse magic effect nenhum enquanto o player estiver andando somente quando estiver parado por 10 seg tem como? o magic effect é na posição do player
-
Sprite
olá estou começando com sprites queria dicas tive muita dificuldade pra fazer as pernas da outfit .....
-
Script
@marcot coloquei na tag spells.xml pra usar apenas com target ai troquei getplayerposition por getcreatureposition não aparece erro no executavel porem nao retorna dosetcreatureoutfit se o target ta na posição determinada ;c
-
Script
@Sttorm [08/03/2018 10:36:13] [Error - Spell Interface] [08/03/2018 10:36:13] data/spells/scripts/attack/fierce berserk.lua:onCastSpell [08/03/2018 10:36:13] Description: [08/03/2018 10:36:13] (luaGetThingPosition) Thing not found to até achando que é impossivel carregar docombat dependendo da posição do target .-.
-
Script
estou tentando fazer um script que quando o meu target está minha sul direita então trocar a looktype e retornar docombat quando o target não estiver então apenas retornar docombat , tem como? +rep local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -8, -1, -18, 5, 5, 2.99, 3.99) function onCastSpell(cid, var) mninja = {lookType = 127, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 3} fninja = {lookType = 128, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 3} enemy_mninja = {lookType = 129, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 3} enemy_fninja = {lookType = 130, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 3} poscid = getPlayerPosition(cid) targ = getCreatureTarget(cid) targetpos = getPlayerPosition(targ) postarget = {x = poscid.x , y = poscid.y + 1, z = poscid.z} if targetpos == postarget then doSetCreatureOutfit (cid, mninja, 500) doCombat(cid, combat, var) else return doCombat(cid, combat, var) end end
-
Dosetcreatureoutfit valendo rep+++
funcionou mt massa , só trava uns 2 seg dai dps da a magia tirei a parte do target da script e nao travou mais , ai agora ta em área troca a outfit do monster ou player na área .. vc é o cara , obrigado mesmo de fé
-
(Resolvido)Spell com posição heelp
tentei tentei e nao consegui local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE) setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 1, 2) local area = createCombatArea(AREA_WAVE4, AREADIAGONAL_WAVE4) setCombatArea(combat, area) local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE) setAttackFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 1, 2) function onCastSpell(cid, var) local pos = getCreaturePosition(cid) local target = getCreatureTarget(cid) local targetpos = getCreaturePosition(target) local posdireita = {x= pos.x, y= pos.y + 1, z = pos.z} print (posdireita = {x=, " ..pos.x.. " y=, " ..pos.y1.. ", ..z =," ..pos.z.. "}) if target == false then return doCombat(cid, combat1, var) elseif targetpos == posdireita then return doCombat(cid, combat, var) end print (") return true end tem como arrumar a spell pra mim ? @Sttorm @marcot
-
(Resolvido)Spell com posição heelp
Vlw aos 2 , agora irei estudar isso .. rep :D print?
-
(Resolvido)Spell com posição heelp
estou começando com scripts , porem queria aprender sobre posições eu fiz essa script como um exercício que eu sabia que não ia dar certo(mentira tinha uma esperança asuhasuhsa) oque eu tentei fazer = se eu tiver um target e ele estiver na posição determinada retornar no combat1 se não tiver target retornar no combat se alguém puder me mostrar o caminho certo agradeço abrçs function onCastSpell(pos, target, targetpos, posdireita, cid) local pos = getCreaturePosition(cid) local target = getCreatureTarget(cid) local targetpos = getCreaturePosition(target) local posdireita = {x=pos.x+1, y=pos.y+1, z=7} if target == false then doCombat(cid, combat1, var else if targetpos == posdireita then doCombat(cid, combat, var) end return true end
-
Dosetcreatureoutfit valendo rep+++
sim sim , funciona sem target , solta 1 exori e troca outfit.. e velho se não for pedir de mais tu poderia me dar um exemplo de uma função com pos x y z do target referente ao player que usa a magia? tipo eu vou fazer uma magia que paralyza mas só vou retornar o docombat se o target tiver '' y x z'' referente ao cid eu estou aprendendo mas com os negócio de posição eu tenho mt dificuldade ;x
-
Dosetcreatureoutfit valendo rep+++
nao deu vei , se ta sem target ele so muda a looktype e n sai a magia se ta com target ele faz a mesma função do setcreatureoutfit erro no executavel [Error - Spell Interface] [05/03/2018 18:26:13] data/spells/scripts/attack/frozenwave.lua:onCastSpell [05/03/2018 18:26:13] Description: [05/03/2018 18:26:13] data/spells/scripts/attack/frozenwave.lua:34: attempt to index global 'thingPos' (a boolean value) [05/03/2018 18:26:13] stack traceback: vo tenta resolver aqui , sou bem ruim mas vou tentar aheuaeh
-
Dosetcreatureoutfit valendo rep+++
@marcot sim é essa dai , se tu fazer isso tu zerou a vida UEHUEHEUH
-
Magia que cria item em área REP++
pode me mandar um exemplo de item do teu xml? pra mim tentar?