Ir para conteúdo

gahgah

Campones
  • Total de itens

    56
  • Registro em

  • Última visita

Tudo que gahgah postou

  1. gahgah

    Mudar Outfit

    Para a primeira.. é possivel vc criar uma GH para a guild em questao.. ae a guild compra essa GH.. so quem é da guild tem acesso a GH (guild house).. ae onde vc quer por o tile onde so a guild tera acesso vc pode por o tile da GH.. so abrir o mapa editor.. selecionar a GH da guild.. ir na parte do mapa onde vc qr o tile da guild, ae vc aplica.. igual quando faz house.. ae so quem é da guild pode passar pelo tile.. como se estivese entrando na GH.
  2. gahgah

    Fila De Espera

    Exemplo: maxPlayers = 50 Se atingir 50 online, ae começa a ter fila para entrar.. se o player for Free ele tem q esperar alguem sair.. ja se o Player for Premium ae ele tem acesso direto sem pegar fila. E tambem procure isso: premiumPlayerSkipWaitList = true E deixe em "true" para que premium player pulem a fila de espera. Boa sorte!
  3. Agora deu certo.. mto obrigado, como sempre +REP
  4. Perfeito, so nao esta removendo a Runa apos o uso.
  5. RESOLVIDO.
  6. gahgah

    Addon Doll

    Agora sim esta perfeito, nao tem perigo de perder o Doll. +REP Te mandei um PM sobre minha duvida anterior sobre o Marriage System.
  7. gahgah

    Addon Doll

    E como ficaria este script com os Storages?
  8. gahgah

    Addon Doll

    RESOLVIDO.
  9. Ola XTibia, tenho um script funcional de casamento, sempre funcionou, so que tem um fato meio chato.. quando o player quer se divorciar, o outro player tem que estar online tambem, teria como se divorciar automaticamente quando se fala divorce pro npc? sem a necessidade do outro player (esposa/marido) estar online? pois metade dos jogadores se casam e dao retired ou sao deletados ou banidos, ai fica impossivel se casar denovo pois fica complicado se divorciar. Segue abaixo o script: 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 if msgcontains(msg, 'marry') or msgcontains(msg, 'marriage') then if getPlayerStorageValue(cid,3066) == -1 then selfSay('Would you like to get married?', cid) talkState[talkUser] = 1 elseif getPlayerStorageValue(cid,3066) == 1 then local fid = getPlayerGUID(cid) local marrystatus = getOwnMarryStatus(fid) if marrystatus ~= 0 then local newpartner = getPlayerNameByGUID(marrystatus) selfSay('You already set a wedding date with {' .. newpartner .. '}, now I must talk to your partner. Do you want to {cancel} it?', cid) talkState[talkUser] = 5 else setPlayerStorageValue(cid,3066,-1) selfSay('Would you like to get married?', cid) talkState[talkUser] = 1 end elseif getPlayerStorageValue(cid,3066) == 2 then selfSay('You are already married. If you want to {divorce}, just say it.', cid) talkState[talkUser] = 0 end elseif msgcontains(msg, 'divorce') then if getPlayerStorageValue(cid,3066) == 2 then selfSay('Would you like to divorce of your partner?', cid) talkState[talkUser] = 6 else selfSay('You are not married. If you want to get married, just say {marry}.', cid) talkState[talkUser] = 0 end end if talkState[talkUser] == 1 then if msgcontains(msg, 'yes') then local fid = getPlayerGUID(cid) local marrystatus = getMarryStatus(fid) if marrystatus == FALSE then selfSay('And what\'s the name of your future partner?', cid) talkState[talkUser] = 2 else local marryname = getPlayerNameByGUID(marrystatus) selfSay('{' .. marryname .. '} has set a wedding date with you. Do you want to {proceed} or {cancel} the wedding?', cid) talkState[talkUser] = 4 end end elseif talkState[talkUser] == 2 then local p = msg local player = getPlayerName(cid) local fid = getPlayerGUID(cid) local sid = getPlayerGUIDByName(p) if sid == 0 then selfSay('A player with that name does not exists.', cid) talkState[talkUser] = 0 elseif sid == fid then selfSay('Don\'t worry, you will always be married with yourself, kid.', cid) talkState[talkUser] = 0 else local marrystatus = getMarryStatus(fid) local pmarriage = getPlayerMarriage(sid) local ownstatus = getOwnMarryStatus(cid) if pmarriage == FALSE then if marrystatus == FALSE then if ownstatus == FALSE then setPlayerStorageValue(cid,3066,1) addMarryStatus(fid,sid) selfSay('You\'ve just set a wedding date with {' .. p .. '}.', cid) talkState[talkUser] = 0 else local partnername = getPlayerNameByGUID(ownstatus) selfSay('{' .. p .. '} has already set a wedding date with {' .. partnername .. '}.', cid) talkState[talkUser] = 0 end else local marryname = getPlayerNameByGUID(marrystatus) selfSay('{' .. marryname .. '} has set a wedding date with you. Do you want to {proceed} or {cancel} the wedding?', cid) talkState[talkUser] = 4 end else local pname = getPlayerNameByGUID(pmarriage) selfSay('Sorry, but {' .. p .. '} is already married to {' .. pname .. '}.', cid) talkState[talkUser] = 0 end end elseif talkState[talkUser] == 4 then if msgcontains(msg, 'proceed') then local fid = getPlayerGUID(cid) local sid = getMarryStatus(fid) local marryname = getPlayerNameByGUID(sid) local pid = getPlayerByNameWildcard(marryname) local tmf = getCreaturePosition(cid) local tms = getCreaturePosition(pid) local text = {'I love you!','My love!','Baby dear!'} local chance1 = math.random(1,table.getn(text)) local chance2 = math.random(1,table.getn(text)) local dateFormat = "%A %d"..getMonthDayEnding(os.date("%d")).." %B %Y" local ring = doPlayerAddItem(cid,10502,1) local ring2 = doPlayerAddItem(pid,10502,1) if isOnline(fid) == TRUE and isOnline(sid) == TRUE then if getDistanceBetween(tmf, tms) <= 3 then setPlayerStorageValue(cid,3066,2) setPlayerStorageValue(pid,3066,2) doCancelMarryStatus(fid) doCancelMarryStatus(sid) setPlayerPartner(cid,sid) setPlayerPartner(pid,fid) doPlayerAddOutfitId(cid,34,0) doPlayerAddOutfitId(pid,34,0) doItemSetAttribute(ring, "description", "" .. getCreatureName(cid) .. " & " .. getCreatureName(pid) .. " forever - married on " ..os.date(dateFormat).. ".") doItemSetAttribute(ring2, "description", "" .. getCreatureName(cid) .. " & " .. getCreatureName(pid) .. " forever - married on " ..os.date(dateFormat).. ".") doCreatureSay(cid, text[chance1], TALKTYPE_ORANGE_1) doCreatureSay(pid, text[chance2], TALKTYPE_ORANGE_1) doSendMagicEffect(tmf, 35) doSendMagicEffect(tms, 35) selfSay('Congratulations! Now you may kiss your partner! Everytime you wanna make this effect, just say {love}. You must be close to your partner.', cid) talkState[talkUser] = 0 else selfSay('Your partner must be close to you so you can marry!', cid) talkState[talkUser] = 0 end else selfSay('You and your new partner must be online at the same time.', cid) talkState[talkUser] = 0 end elseif msgcontains(msg, 'cancel') then local fid = getPlayerGUID(cid) local sid = getMarryStatus(fid) local marryname = getPlayerNameByGUID(sid) local pid = getPlayerByNameWildcard(marryname) if isOnline(sid) == TRUE then setPlayerStorageValue(pid,3066,-1) end doCancelMarryStatus(sid) selfSay('You just canceled your wedding date with {' .. marryname .. '}.', cid) talkState[talkUser] = 0 end elseif talkState[talkUser] == 5 then if msgcontains(msg, 'cancel') or msgcontains(msg, 'yes') then local fid = getPlayerGUID(cid) setPlayerStorageValue(cid,3066,-1) doCancelMarryStatus(fid) talkState[talkUser] = 0 end elseif talkState[talkUser] == 6 then if msgcontains(msg, 'yes') then local fid = getPlayerGUID(cid) local sid = getPlayerPartner(cid) local marryname = getPlayerNameByGUID(sid) local pid = getPlayerByNameWildcard(marryname) if (isOnline(fid) == TRUE and isOnline(sid) == TRUE) then setPlayerStorageValue(cid,3066,-1) setPlayerStorageValue(pid,3066,-1) setPlayerPartner(cid,0) setPlayerPartner(pid,0) doPlayerAddOutfitId(cid,34,-1) doPlayerAddOutfitId(pid,34,-1) selfSay('You\'ve just divorced of your old partner.', cid) talkState[talkUser] = 0 else selfSay('You and your new partner must be online at the same time.', cid) talkState[talkUser] = 0 end end end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Possivelmente tem que adcionar ao script um comando SQL para executar direto no banco de dados.. igual quando usa removedor de frags, usa comando no sql pra apagar os frags, direto do script.. teria que fazer algo assim pra executar comando no sql pra apagar o marrystatus.. sem depender do outro player estar online junto. Alguem manja o comando? Seria perfeito se divorciar automaticamente sem a necessidade do outro player estar presente, como sempre dou meu +REP. Ot: Alissow 8.6 Aguardo.
  10. Agora esta perfeito, totalmente funcional, fiz todos os testes aqui, nota 10. +REP RESOLVIDO. -- obs: conhece algum script para bloquiar o auto-reconnect do elf bot? se sim e se possivel mandar resposta por MP, pois essa duvida nao é referente a este topico.
  11. Bom dia, apliquei a modificaçao e esta agora dando ese erro no distro: [16/06/2012 12:01:58] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/antimc.lua:35: 'then' expected near 'doRemoveCreature' [16/06/2012 12:01:58] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/antimc.lua) [16/06/2012 12:01:58] data/creaturescripts/scripts/antimc.lua:35: 'then' expected near 'doRemoveCreature'
  12. RESOLVIDO.
  13. Ola, o script funcionou perfeitamente, mais uma vez muito obrigado, agora esta perfeito. +REP desculpe a demora :x
  14. RESOLVIDO.
  15. Agora sim esta perfeito, muito obrigado. +REP
  16. Ola, deu erro: [08/03/2012 10:54:27] [Error - Action Interface] [08/03/2012 10:54:27] data/actions/scripts/stamina charger.lua:onUse [08/03/2012 10:54:27] Description: [08/03/2012 10:54:27] (luaDoRemoveItem) Item not found A moeda vip é golden nugget cujo ID é: 2157 Coloquei para remover 5 moedas.. tem 500 na bp.. e esta dando Item not found. Aguardo.
  17. RESOLVIDO.
  18. nao corrigiu? entao vamos ser obrigados a usar mysql e aposentar o sqlite? pensei que isso estava na lista de correçoes. e quem usa e é "fiel" a praticidade do sqlite? como vamos banir e punir quem nao respeita as regras do servidor, faz anuncios, etc? fora isso o server ta show, parabens! Estou tentando achar o problema amigo Asism que possivel sera corrigido E ue não sei até hoje pq inventaram OT sqlite... essa ***** só da bug dificil de ser corrido auhauahau Siceramente MYSQL é 10000000000000000000000000x superior ao sqlite. Não tem lags como sqlite, server é mais rapido para responde ações e tals. É que des de quando comecei a mexer com OT(2007) comecei com sqlite, mais na vdd era xml, e nunca mudei para mysql, mysql tem que abrir um monte de coisas, sqlite so é carregar o server, para fazer backup so é salvar.. e para fazer backup das contas no mysql como é?? se me puder passar algum link tutorial facil, rapido e objetivo eu agradeço.. ou voce mesmo pode me falar por mensagem.. enquanto voce nao descobre o erro vou tentar conhecer mais o mysql.
  19. nao corrigiu? entao vamos ser obrigados a usar mysql e aposentar o sqlite? pensei que isso estava na lista de correçoes. e quem usa e é "fiel" a praticidade do sqlite? como vamos banir e punir quem nao respeita as regras do servidor, faz anuncios, etc? fora isso o server ta show, parabens!
  20. agora esta perfeito, como sempre me ajudou muito, obrigado. +rep
  21. [10/02/2012 03:35:38] [Error - LuaScriptInterface::loadFile] data/talkactions/scripts/additem.lua:5: 'do' expected near 'if' [10/02/2012 03:35:38] [Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/additem.lua) [10/02/2012 03:35:38] data/talkactions/scripts/additem.lua:5: 'do' expected near 'if' aguardo.
  22. Isso, o script manda um presente para todos os players online, bom para eventos de fim de ano ou datas especiais para o servidor, ai queria que quando enviase o presente, aparecer um efeito em cima do player, pode ser um fire (em cima de todos) Bom nao funcionou, eu ja tinha testado assim, o script funciona, mais o efeito nao sai e aparece esta mensagem de erro no console: [10/02/2012 02:57:24] [Error - TalkAction Interface] [10/02/2012 02:57:24] data/talkactions/scripts/additem.lua:onSay [10/02/2012 02:57:24] Description: [10/02/2012 02:57:24] (luaGetThingPosition) Thing not found aguardo.
  23. RESOLVIDO
  24. gahgah

    Itens Vip Por Storage

    melhorou, vou aplicar aqui, muito obrigado. rep+
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...