Tudo que leozynho123 postou
-
AJUDA ! ARENA
UUUUUP
- AJUDA ! ARENA
-
como compilar TFS 0.4 em GUI?
usa otx amigo, acho que você vai ter uma grande dificuldade para compilar em gui
- AJUDA ! ARENA
-
AJUDA ! hit %
isso mesmo amigo ! obrigado edit vejo que falha alguns hits ainda, inclusive no slingshot, as vezes falha 3 a 4 hits seguidos :s
-
AJUDA ! hit %
boa noite galera, eu adicionei um slingshot em meu servidor e queria colocar ele pra nunca falhar um hit, é possivel ? obrigado
-
proteção time
está apresentando alguns erros aindas, mais está funcionando normalmente; [1:37:18.017] [Error - CreatureScript Interface] [1:37:18.017] data/creaturescripts/scripts/protect.lua:onStatsChange [1:37:18.017] Description: [1:37:18.017] data/lib/034-exhaustion.lua:4: attempt to compare number with string [1:37:18.017] stack traceback: [1:37:18.017] data/lib/034-exhaustion.lua:4: in function 'check' [1:37:18.017] data/creaturescripts/scripts/protect.lua:14: in function <data/creaturescripts/scripts/protect.lua:13>
-
AJUDA ! ARENA
function onStepIn(cid, item, position, fromPosition) if InitArenaScript == 0 then InitArenaScript = 1 -- make arena rooms free for i = 0,9 do setGlobalStorageValue(42300+i, 0) setGlobalStorageValue(42400+i, 0) end checkArenaRooms({}) end local arena_room = item.actionid local player_arena = getPlayerStorageValue(cid, 42355) if getPlayerStorageValue(cid, arena_room+getPlayerStorageValue(cid, 42355)*10-1) == 1 or arena_room+getPlayerStorageValue(cid, 42355)*10-1 == 42299 then if getGlobalStorageValue(cid, arena_room) == 0 then local monster_uid = getGlobalStorageValue(arena_room+100) if monster_uid > 0 then if isCreature(monster_uid) == TRUE then doRemoveCreature(monster_uid) end end local spawn_pos = getThingPos(arena_room) local monster = doCreateMonster(arena_monsters[arena_room+getPlayerStorageValue(cid, 42355)*10], {x=spawn_pos.x-1,y=spawn_pos.y-1,z=spawn_pos.z}) setGlobalStorageValue(arena_room+100, monster) doTeleportThing(cid, spawn_pos, TRUE) setGlobalStorageValue(arena_room, cid) setGlobalStorageValue(arena_room-1, 0) setPlayerStorageValue(cid, 42350, os.time()+arena_room_max_time) else doTeleportThing(cid, fromPosition, TRUE) doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE,getCreatureName(getGlobalStorageValue(cid, arena_room))..' is now in next room. Wait a moment and try again.') end else doTeleportThing(cid, fromPosition, TRUE) doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE,'First kill monster!') end if arena_room == 42300 then setPlayerStorageValue(cid, 42351, 0) setPlayerStorageValue(cid, 42352, 1) end return TRUE end function checkArenaRooms(param) addEvent(checkArenaRooms, 1000, {}) for i = 42300, 42309 do local player = getGlobalStorageValue(i) if isPlayer(player) == TRUE then local player_storage = getPlayerStorageValue(player, 42350) if player_storage <= os.time() then doTeleportThing(player, arenaKickPosition, TRUE) setPlayerStorageValue(player, 42350, 0) setGlobalStorageValue(i, 0) doPlayerSendTextMessage(player,MESSAGE_STATUS_CONSOLE_ORANGE,'You have been kicked from arena! You have only ' .. arena_room_max_time .. ' seconds for one room.') elseif player_storage - 10 <= os.time() then doPlayerSendTextMessage(player,MESSAGE_EVENT_DEFAULT,'Masz ' .. player_storage - os.time() .. ' sekund, zeby przejsc do kolejnego pokoju!') end else setGlobalStorageValue(i, 0) end end end
- AJUDA ! ARENA
-
AJUDA ! ARENA
boa tarde, estou migrando meu servidor tfs 0.4 para o OTX, estou tendo alguns problemas, poderiam me ajudar ? [Error - MoveEvents Interface] [28/9/2014 15:8:16] data/movements/scripts/arenaroom.lua:onStepIn [28/9/2014 15:8:16] Description: [28/9/2014 15:8:16] data/movements/scripts/arenaroom.lua:22: attempt to index global 'arena_monsters' (a nil value) [28/9/2014 15:8:16] stack traceback: [28/9/2014 15:8:16] data/movements/scripts/arenaroom.lua:22: in function <data/movements/scripts/arenaroom.lua:1>
-
FRAGS
boa tarde galera, estou com um problema.. creio eu que sejá no gesior, tenho um servidor e ele não mostra os guild frags reais, por um exemplo; o player tem 100 frags, e ele tem uma guild, e a guild dele com os 100 frags dele, e mais uns 40 de outros players, totalizando 140 frags, e no top guilds só mostra 90 frags, e no top frags mostra o frag real do player que tem 100 frags. alguém poderia me ajudar ? obrigado
-
Tirar Battle ao entrar em PZ
desculpe reviver mais estou com esse problema ; ( [Error - CreatureScript Interface] [11:57:15.626] data/creaturescripts/scripts/tirabattle.lua:onThink [11:57:15.626] Description: [11:57:15.626] data/lib/050-function.lua:262: attempt to index a boolean value [11:57:15.626] stack traceback: [11:57:15.626] data/lib/050-function.lua:262: in function 'getTilePzInfo' [11:57:15.626] data/creaturescripts/scripts/tirabattle.lua:2: in function <data/creaturescripts/scripts/tirabattle.lua:1>) não é toda hora que acontece
-
proteção time
function onLogin(cid) local tempo = 5 -- tempo de proteção em segundos if isPlayer(cid) then exhaustion.set(cid, 23585, tempo) doPlayerSendTextMessage(cid, 22, "Você está protegido por 5 segundos!") registerCreatureEvent(cid, "Protection") registerCreatureEvent(cid, "Protect") end return true end function onStatsChange(cid, attacker, type, combat, value) if(isPlayer(cid) and not isPlayer(attacker) and exhaustion.check(cid, 23585) and (type == STATSCHANGE_MANALOSS or type == STATSCHANGE_HEALTHLOSS)) then doPlayerSendTextMessage(cid, 22,"Você tem mais "..exhaustion.get(cid, 23585).." segundos de proteção!") doSendMagicEffect(getThingPos(cid), 2) return false end return true end E no creaturescripts.xml ter: perfeito *-* muito obrigado REP REP REP
-
proteção time
é, nada :/ vlw pela boa vontade rep +
-
proteção time
não, ele só mostou o 5seg, e o 1segundos, e parou por ali.
-
proteção time
20:58 Você está protegido por 5 segundos! 20:58 Você tem mais 1 segundos de proteção! mesma coisa de antes, acabou o tempo e o player não foi atacado, mais não gerou erros dessa vez
-
proteção time
está bem
-
proteção time
é, a cada hit tomado gera um erro no console (attempt to call global 'getplayerstorage (a nil value))
-
proteção time
aaaah, entendi.... eu pensei que ele não iria tomar ataque, tipo iria ficar "pz" ; é, funcionou... porém ele não está tomando hit, mesmo dps dos 5seg
-
proteção time
tudo normal, não mostra nenhum erro
-
proteção time
mesma coisa :/
-
proteção time
sim, aparece
-
proteção time
funcionou não :/
-
proteção time
desculpe, mais se o meu servidor funcionasse essa opção eu não iria atrás de uma "gambiarra" function onStatsChange(cid, attacker, type, combat, value) if(isPlayer(cid) and not isPlayer(attacker) and getPlayerStorage(cid, 23585) > 0 and (type == STATSCHANGE_MANALOSS or type == STATSCHANGE_HEALTHLOSS)) then value = 0 end end No login.lua procura algum registercreatureevent e põe embaixo registerCreatureEvent(cid, "LoginProtection") Em creaturescripts.xml fica <event type="statschange" name="LoginProtection" event="script" value="nomedobloco.lua"/> como funciona o tempo desse script ?
-
proteção time
não amigo, porém não funcionou como esperava, quero um sistema de proteção, se caso o player deslogar ou o servidor cair quando o player logar não morrer no respawn, porque é assim, eu quero esse script pro global save, meu servidor tem um global save de madru, e ao voltar varios players morrem na hunt.