Tudo que didito postou
-
Nascer com x ropa
Login.lua e para escolher o outfit que o player vai nascer é só editar essa linha. local outfit = {lookType = 128, lookHead = 94, lookBody = 114, lookLegs = 114, lookFeet = 94, lookAddons = 0}
-
Nascer com x ropa
Troque isso . if(accountManager == MANAGER_NONE) then local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage if(lastLogin > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "." else str = str .. " Please choose your outfit." doPlayerSendOutfitWindow(cid) end Por isso. if(accountManager == MANAGER_NONE) then local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage if(lastLogin > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "." else str = str .. " Please choose your outfit." local outfit = {lookType = 128, lookHead = 94, lookBody = 114, lookLegs = 114, lookFeet = 94, lookAddons = 0} doCreatureChangeOutfit(cid, outfit) end
-
[PEDIDO] Script Quando acabar a premium o jogador ser teletransportado para o Templo
Assim irá teletransportar o player para sua cidade de origem. function onLogin(cid) if isPremium(cid) then setPlayerStorageValue(cid, 9899, 1) elseif getPlayerStorageValue(cid, 9899) == 1 and not isPremium(cid) then doTeleportThing(cid, getPlayerTown(cid)) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You premium is Over!") setPlayerStorageValue(cid, 9899, -1) end return 1 end
-
[DUVIDA] Derrubar pelo site...
Cara, quando alguem efetua um ataque ele envia uma grande quantidade de pacotes para o seu servidor o impossibilitando de dar conta dependendo dos tamanhos dos pacotes e acabando não respondendo ..Ou seja se você tem ou não um site você poderá ser atacado do mesmo jeito.
-
[Pedido] Script ao criar acc no site ganha 3 dias vip
Você tambem tem as funções citadas acima, seria melhor você postar o sistema vip que utiliza.
-
[DUVIDA] doCombatAreaDispel(cid, pos, area, type, effects)
Porque voce não coloca um tempo para essa condition , e o player só pode usar o item novamente depois que o tempo tiver acabo igual exahust.
-
PEDIDO : NPC PROMOTION
Qual bug?
-
Vender promotion no gesior 0.3.8
Bom vamos lá ..vá até seu creaturescripts.xml e então adicione essa tag. <event type="login" name="Promotion" event="script" value="promotion.lua"/> Depois vá até seu login.lua e adicione isso. registerCreatureEvent(cid, "Promotion") Cria um arquivo chamado promotion.lua e adicione isso. function onLogin(cid) local config = { storage = 10001, time = 30 * 24 * 60 * 60, msg = "Sua promotion acabou", tempo = getPlayerStorageValue(cid,config.storage) } if (os.time() - getPlayerStorageValue(cid,config.storage)) >= config.time then doPlayerSetVocation(cid,getPlayerVocation(cid) - 4) doPlayerSendTextMessage(cid,31,config.msg) elseif (os.time() - getPlayerStorageValue(cid,config.storage)) <= config.time then days = math.floor(tempo / 24 * 60 * 60) doPlayerSendTextMessage(cid,31,"Você ainda tem "..days.." dias de promitotion") end end
-
Vender promotion no gesior 0.3.8
Então seja mais exato amigo rs. function onUse(cid, item, frompos, item2, topos) setPlayerStorageValue(cid,10011,os.time()) doPlayerSetVocation(cid, getPlayerVocation(cid)+4) doRemoveItem(item.uid,1) doPlayerSendTextMessage(cid,31, "OMG! I now i can see new warrior in my world") return TRUE end function onLogin(cid) local config = { storage = 10001, time = 30 * 24 * 60 * 60, msg = "Sua promotion acabou", } if (os.time() - getPlayerStorageValue(cid,config.storage)) >= config.time then doPlayerSetVocation(cid,getPlayerVocation(cid) - 4) doPlayerSendTextMessage(cid,31,config.msg) end end
-
Armors Per Skills // Arton - Ats
Bem dahora, porque vocês não usam OTClient?.. bem legal o projeto.
-
Bigfoots Burden's Quest
Não cara, deboa eu achei legal sua atitude..Trazer isso para o forum só que eu penso assim eu fiz um script legal e contribui de "graça" (Até porque ele venda a versão completa), só que eu penso assim se eu fiz um script de algo e alguem mexe nele eu ficaria bem puto por ter tido um trabalho uma logica (mesmo que esteja tudo fudido) alguem venha e arrume pelo poste meus creditos..Só isso que eu quis dizer..Deboa cara, sem problemas.
-
[PEDIDO] Adicionar Premium (VIP) para um jogador em certo Nível
Abaixo...rs
-
[PEDIDO] Script Quando acabar a premium o jogador ser teletransportado para o Templo
function onLogin(cid) if isPremium(cid) > 0 then setPlayerStorageValue(cid, 10001,1) elseif isPremium(cid) == 0 and getPlayerStorageValue(cid,10001) == 1 then doTeleportThing(cid, getPlayerTown(cid)) doPlayerSendTextMessage(cid,31,"Sua premmium acabou") setPlayerStorageValue(cid,10001,-1) end end
-
Bigfoots Burden's Quest
Cara eu falei que ele é BR, não unica coisa que disse é que você deve colocar uma parte dos creditos a ele porque concerteza grande parte dos scripts foi feita por ele , como eu disse ele é polaco ..Eu acho que agente deve ser sincero enfim o topico é seu você faz o que quiser se acha que deve colocar coloca senão alguem vai achar os dois topicos cada um sabe o que faz..
- Bigfoots Burden's Quest
-
Bigfoots Burden's Quest
Tá louco é ou não sabe ler? [quote [The_Hide][Rl Quest] Bigfoot's Burden Quest (Gnomebase) It's not completed yet because i lost many scripts when i was cleaning my computer xD But here is my first version of this quest, i will complete it later. here is bigfoots burden quest: bigfoot's burden quest v2.7z - Speedy Share - upload your files here Report all bugs.
- Bigfoots Burden's Quest
- [Duvida] Sistema de Retono Automatico PagSeguro!
-
Vender promotion no gesior 0.3.8
Cara é possivel sim, porém eu não sei então vou postar uma outra forma mais pratica para você..Vender um item que ao dar use o player troca de vocação. function onUse(cid, item, frompos, item2, topos) doPlayerSetVocation(cid, getPlayerVocation(cid)+4) doRemoveItem(item.uid,1) doPlayerSendTextMessage(cid,31, "OMG! I now i can see new warrior in my world") return TRUE end
-
[Duvida] Sistema de Retono Automatico PagSeguro!
No caso de promoção basta editar o script..Double points , 50% é tudo questão de programação tudo isso é possivel, eu já usei muito PagSeguro Automatico, não os de forum mais nunca tive qualquer problema..Sempre entregando direito ..Para evitar problemas alguns script quando entrega os points seta a transação como ENTREGUE para que o GOD tenha certeza que foi entregue os points..
-
PEDIDO : NPC PROMOTION
Assim? 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 local price = 80000000 if(msgcontains(msg, 'promotion') or msgcontains(msg, 'member promotion')) then selfSay('Você quer ser promovido member por '..price..' moedas? {yes} ', cid) talkState[talkUser] = 1 elseif msgcontains(msg, 'yes') and talkState[talkUser] == 1 then if doPlayerRemoveMoney(cid,price) then if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 4 then doPlayerSetVocation(cid, getPlayerVocation(cid) + 4) selfSay('Parabens! Você foi promovido member! ', cid) talkState[talkUser] = 0 else selfSay('Desculpe, você precisa ter a primeira promotion para ser promovido member.', cid) talkState[talkUser] = 0 end else selfSay('Você não tem ' .. price .. ' moedas para ser promovido member...', cid) talkState[talkUser] = 0 end elseif msg == "no" and talkState[talkUser] >= 1 then selfSay("Then not", cid) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
Promotion some ao logar
Tente assim. 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 local price = 20000000 if(msgcontains(msg, 'promotion') or msgcontains(msg, 'member promotion')) then selfSay('Você quer ser promovido member por '..price..' moedas? {yes} ', cid) talkState[talkUser] = 1 elseif msgcontains(msg, 'yes') and talkState[talkUser] == 1 then if doPlayerRemoveMoney(cid,price) == TRUE then if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 4 then doPlayerSetVocation(cid, getPlayerVocation(cid) + 4) selfSay('Parabens! Você foi promovido member! ', cid) talkState[talkUser] = 0 else selfSay('Desculpe, você precisa ter a primeira promotion para ser promovido member.', cid) talkState[talkUser] = 0 end else selfSay('Você não tem ' .. price .. ' moedas para ser promovido member...', cid) talkState[talkUser] = 0 end elseif msg == "no" and talkState[talkUser] >= 1 then selfSay("Then not", cid) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
[ACTION]Maquina Aleatoria(Items)
Esses dias estava bricando de script para treinar um pouco e me veio cassino na cabeça e então resolvi criar esse script .. Como funciona? Simples, você dá use em um item de sua preferencia e terá uma chance X de ganhar o item e remover o dinheiro (Like Cassino) ou então uma chance Y de não ganhar nada e remover o dinheiro (Like Cassino too). Dá para adicionar outros items? Oh.. Claro basta seguir o exemplo abaixo. [[color=#ff0000]2160[/color]] = {[color=#00ffff]chance = 1[/color], [color=#00ff00]quant = 10[/color], [color=#008000]nada = 99[/color]} No caso : 2160 = O itemID que você vai ganhar. chance = 1 Chance do Player Ganhar o Item. quant = 10 Quantidade de items a ganhar. nada = 99 Chance de não ganhar nada local table = { [2160] = {chance = 1, quant = 10, nada = 99}, [2195] = {chance = 1, quant = 1, nada = 99}, [2528] = {chance = 1, quant = 2, nada = 99} } function onUse(cid, item, frompos, item2, topos) for k, v in pairs(table) do if math.random(1,100) <= v.chance then if doPlayerRemoveMoney(cid,100) then doSendMagicEffect(getCreaturePosition(cid),30) doPlayerSendTextMessage(cid,31, "Seu sortudo voce ganhou") doPlayerAddItem(cid,k,v.quant) print(k) else doPlayerSendCancel(cid, "Opa , opa voce não tem grana") end if math.random(1,100) <= v.nada then if doPlayerRemoveMoney(cid,200) then doSendMagicEffect(getCreaturePosition(cid),66) doPlayerSendTextMessage(cid,31,"Opa, você perdeu Maoe") else doPlayerSendCancel(cid, "Opa , opa voce não tem grana") end end end end end
- [Dúvida] Erro no mapa ao abrir servidor
- Ajuda [Basico] Trocar Nivel para poder usar um item