Tudo que Cazuza postou
-
Bike script
Perdão tenta assim: if getPlayerStorageValue(cid, 3624) <= 0 then
- Bike script
-
Bike script
Só adiciona isto no creaturescripts: <event type="logout" name="BIKE" event="script" value="Bike.lua"/> function onLogout(cid) if getPlayerStorageValue(cid, 3624) >= 0 then return false end return true end
-
(Resolvido)Rec de Staminia
function onUse(cid, item, fromPosition, itemEx, toPosition) local cfg = {} cfg.refuel = 42 * 60 * 1000 if(getPlayerStamina(cid) >= cfg.refuel) then doPlayerSendCancel(cid, "Your stamina is already full.") elseif(not isPremium(cid)) then doPlayerSendCancel(cid, "You must have a premium account.") else doPlayerSetStamina(cid, cfg.refuel) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your stamina has been refilled.") end return true end Tu so quer deixar infinito? testa agora.
- [Pedido] Spell que necessite de mais de um item para ser feita.
-
(Resolvido)[Pedido] Deixar o Caster imóvel enquanto executa a spell
doCreatureSetNoMove(cid, true or false)
-
Tem como mudar o ip do Tibia.exe?
Cara esta é a versão mais barbada, até 8.60 se não me engana, há diversos programas para mudar. É só procurar, mas enfim vou te mandar um site para ti criar:http://vapus.net/customclient
-
Esse script da XP?
Obrigado. Avisa sim, qualquer coisa eu ajeito.
-
Esse script da XP?
function onKill(cid, target) --config---------------------------- local lvl = getPlayerLevel(cid) --players level local target_lvl = getPlayerLevel(target) -- add 5 levels --end------------------------------- if isPlayer(target) == TRUE then if getPlayerIp(cid) ~= getPlayerIp(target) then doPlayerAddExperience(cid, -50000) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Voce foi punido por matar alguem do mesmo IP e não ganha lvl") return TRUE else if lvl < target_lvl then -- Quem mata é menor do que de quem morre if (lvl - target_lvl) <= 20 then -- Se a diferença for 20 ou menos adiciona 5 level doPlayerAddSkill(cid, SKILL__LEVEL, 5) end if (lvl - target_lvl) <= 50 then doPlayerAddSkill(cid, SKILL__LEVEL, 7) end if (lvl - target_lvl) <= 80 then doPlayerAddSkill(cid, SKILL__LEVEL, 9) end if (lvl - target_lvl) <= 100 then doPlayerAddSkill(cid, SKILL__LEVEL, 11) end if (lvl - target_lvl) > 100 then doPlayerAddSkill(cid, SKILL__LEVEL, 15) -- Se a diferença for maior que 100 levels adiciona 15 lvl end end if lvl > target_lvl then -- Quem mata é maior do que de quem morre if (target_lvl - lvl) <= 20 then -- Se a diferença for 20 ou menos adiciona 5 level doPlayerAddSkill(cid, SKILL__LEVEL, 5) end if (target_lvl - lvl) <= 50 then doPlayerAddSkill(cid, SKILL__LEVEL, 4) end if (target_lvl - lvl) <= 80 then doPlayerAddSkill(cid, SKILL__LEVEL, 3) end if (target_lvl - lvl) <= 100 then doPlayerAddSkill(cid, SKILL__LEVEL, 2) end if (target_lvl - lvl) > 100 then doPlayerAddSkill(cid, SKILL__LEVEL, 1) -- Se a diferença for maior que 100 levels adiciona 15 lvl end end end end doSendAnimatedText(getPlayerPosition(cid), "Orgasmic~", 198) return TRUE end Faltou um end, testa.
-
[Pedido] Ajuda Arrumar Essa Script? Plx
Bá velho até faria mas é uma mão. Sem falar que se algum deles morrer, vai dar erro. Pois vai usar um addevent para retornar e caso morra um ou outro, ou os dois. Vai dar erro no console por não achar a "cid", creature id.
-
Esse script da XP?
function onKill(cid, target) --config---------------------------- local lvl = getPlayerLevel(cid) --players level local target_lvl = getPlayerLevel(target) -- add 5 levels --end------------------------------- if isPlayer(target) == TRUE then if getPlayerIp(cid) ~= getPlayerIp(target) then doPlayerAddExperience(cid, -50000) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Voce foi punido por matar alguem do mesmo IP e não ganha lvl") return TRUE else if lvl < target_lvl then -- Quem mata é menor do que de quem morre if (lvl - target_lvl) <= 20 then -- Se a diferença for 20 ou menos adiciona 5 level doPlayerAddSkill(cid, SKILL__LEVEL, 5) end if (lvl - target_lvl) <= 50 then doPlayerAddSkill(cid, SKILL__LEVEL, 7) end if (lvl - target_lvl) <= 80 then doPlayerAddSkill(cid, SKILL__LEVEL, 9) end if (lvl - target_lvl) <= 100 then doPlayerAddSkill(cid, SKILL__LEVEL, 11) end if (lvl - target_lvl) > 100 then doPlayerAddSkill(cid, SKILL__LEVEL, 15) -- Se a diferença for maior que 100 levels adiciona 15 lvl end end if lvl > target_lvl then -- Quem mata é maior do que de quem morre if (target_lvl - lvl) <= 20 then -- Se a diferença for 20 ou menos adiciona 5 level doPlayerAddSkill(cid, SKILL__LEVEL, 5) end if (target_lvl - lvl) <= 50 then doPlayerAddSkill(cid, SKILL__LEVEL, 4) end if (target_lvl - lvl) <= 80 then doPlayerAddSkill(cid, SKILL__LEVEL, 3) end if (target_lvl - lvl) <= 100 then doPlayerAddSkill(cid, SKILL__LEVEL, 2) end if (target_lvl - lvl) > 100 then doPlayerAddSkill(cid, SKILL__LEVEL, 1) -- Se a diferença for maior que 100 levels adiciona 15 lvl end end end doSendAnimatedText(getPlayerPosition(cid), "Orgasmic~", 198) return TRUE end Não testei, mas creio que ira funcionar. Botei uns comentarios para ti entender, ta bem explicativo creio eu. Testa e me diz.
-
Esse script da XP?
Assim que eu fizer, te mando e tu vê.
-
Esse script da XP?
Ta até faço embora esteja com preguiça, vê se fica bom assim: Pra cima (exemplo: Quem mata é level 100 e quem morre é level 120) = Se a diferença for de 20 levels = +5 levels Se a diferença for de 50 levels = +6 levels Se a diferença for de +100 levels = +8 levels Se a diferença for de +150 levels = +10 levels - Pra baixo (exemplo: Quem mata é level 100 e quem morre é level 80) = Se a diferença for de 20 levels = +5 levels Se a diferença for de 50 levels = +4 levels Se a diferença for de +100 levels = +3 levels
-
[Ajuda] Spell direcional bugada
Brother isto sempre acontece com spells com mais de um turno. Pois ele manda por exemplo 10 efeitos. Cada um de 1 em 1 segundo digamos assim. Nos 3 primeiros segundos, você esta olhando pra cima. Agora se você se mexer nos proximos segundos a spell vai pegar a posição nova, e então ira mudar. Fazendo com que pareça estar errada. Não sei se consegui explicar direito, é algo complicadinho.
-
Esse script da XP?
function onKill(cid, target) --config---------------------------- local lvl = getPlayerLevel(cid) --players level local nlvl = getPlayerLevel(cid) + 5 -- add 5 levels --end------------------------------- if isPlayer(target) == TRUE then local exp = (50 * (lvl) * (lvl) * (lvl) - 150 * (lvl) * (lvl) + 800 * (lvl)) / 5 local nexp = (50 * (nlvl) * (nlvl) * (nlvl) - 150 * (nlvl) * (nlvl) + 900 * (nlvl)) / 5 local newexp = nexp - exp doPlayerAddExp(cid,newexp) doSendAnimatedText(getPlayerPosition(cid), "Orgasmic~", 198) if getPlayerIp(cid) ~= getPlayerIp(target) then doPlayerAddExperience(cid, -50000) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have been punished for killing a player of the same IP.") end end return TRUE end Aqui está, se tiver o mesmo IP vai dar a XP e ao mesmo tempo punir.
-
Esse script da XP?
Não brother, ele só está punindo quem tem o mesmo IP. Não adiciona XP. - Se quiser que dê XP e Puna me avisa. - Se quiser que so puna deixe como está. - E se quiser tirar a punição diga tambem que te ajudo.
-
[Pedido] Live cast.php informativo
Editei, por que tinha dado uma resposta de retardado por não ter entendido direito a pergunta. Enfim. Desculpe.
-
Tem como mudar o ip do Tibia.exe?
Depende da versão do cliente.
-
[Moveevents] Cadeiras curando
Valeu brother.
- [ajuda] Mudar Dinheiro no Poketibia
-
[Moveevents] Cadeiras curando
Nome: Banco/Cadeiras curando Função: Bom, na verdade é bem simples, fiz para meu servidor para dar mais RPG. Funciona da seguinte maneira: Se a vida do jogador for menor que o máximo de vida e se ele não estiver com battle. Entrara em modo de descanso, fazendo que cure sua vida em uma porcentagem X ( configuravel ).de Y em Y tempo ( configuravel) Versão: Testada somente na "10.31". (OTX Server - Galaxy) Créditos: Kazuza - (eu) Por ter criado. xWhiteWolf - Por uma função "Pasta Servidor > Data > Moveevents > Scripts" crie "Banco.lua". function onStepIn(cid, item, position, fromPosition) local percent = 2 local tempo = 1 function lifesteal(cid) if isCreature(cid) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_GREEN) doCreatureAddHealth(cid, math.floor(getCreatureMaxHealth(cid) * (percent/100))) if getCreatureHealth(cid) == getCreatureMaxHealth(cid) then stopEvent(steal) end end steal = addEvent(lifesteal, 1000*tempo, cid) end if getCreatureHealth(cid) < getCreatureMaxHealth(cid) then if getCreatureCondition(cid, CONDITION_INFIGHT) then doPlayerSendCancel(cid, 'Voce nao pode descansar se estiver com battle') else lifesteal(cid) end end return true end function onStepOut(cid, item, position, fromPosition) stopEvent(steal) return true end "Pasta Servidor > Data > Creaturescripts > Scripts" crie "Banco.lua". <movevent type="StepIn" itemid="1662;1663;1664;1665" event="script" value="banco"/> <movevent type="StepOut" itemid="1662;1663;1664;1665" event="script" value="banco.lua"/> OBS: Nos itemid você adiciona os items que quer que cure ao 'sentar'.
- (Resolvido)Como faço pros players começarem Sem exura, exiva.. sem spell
- (Resolvido)Como faço pros players começarem Sem exura, exiva.. sem spell
- Khorem
-
[OTClient] ~Duvida!
Baixa o OTCliente, e poe o cliente do teu servidor dentro do OTCliente em things. Depois disso é so usar, não tem coisa mais facil. Mas eu não recomendo OTcliente pelos bugs.