Ir para conteúdo

Nickbhz

Visconde
  • Total de itens

    320
  • Registro em

  • Última visita

  • Dias Ganhos

    2

Tudo que Nickbhz postou

  1. Aquele esquema de jogar os arquivos da pasta items no remeres dá nao?
  2. Tente aí, adicione no seu sql DROP TABLE IF EXISTS z_shop_history_item; CREATE TABLE z_shop_history_item ( id INT( 11 ) NOT NULL, to_name VARCHAR( 255 ) NOT NULL DEFAULT '0', to_account INT( 11 ) NOT NULL DEFAULT '0', from_nick VARCHAR( 255 ) NOT NULL, from_account INT( 11 ) NOT NULL DEFAULT '0', price INT( 11 ) NOT NULL DEFAULT '0', offer_id VARCHAR( 255 ) NOT NULL DEFAULT '', trans_state VARCHAR( 255 ) NOT NULL, trans_start INT( 11 ) NOT NULL DEFAULT '0', trans_real INT( 11 ) NOT NULL DEFAULT '0', PRIMARY KEY ( id ) );
  3. Nickbhz

    task

    Obrigado por me explicar a diferença... Troquei a tag lá e mesmo assim nao conta, olhei novamente na distro, nenhum erro si quer. up up up up
  4. Nickbhz

    Agrupar

    O item editor eu tenho, o object builder q eu n tenho tentei baixar o do forum e ta quebrado o link
  5. Nickbhz

    Agrupar

    Esse eu tenho, o outro que ta com link quebrado aqui no forum..
  6. Nickbhz

    task

    poderia ajudar? nao consigo entender qual a diferença de tag '-'
  7. Nickbhz

    Agrupar

    Fui na sessao de download aqui do forum, qnd fui baixar o programa e o download ta quebrado :'(
  8. Nickbhz

    task

    Ok, irei utilizar.. Continua nao contando. Não da nenhum erro na distro. (3.6) A tag é assim mesmo né !? <event type="kill" name="Tasks" script="taskkill.lua"/>
  9. Nickbhz

    task

    editei
  10. Nickbhz

    task

    Boa tarde xTibianos... Estou com um sistema de task, que aparentimente está funcionando até um certo ponto, qnd pedimos a task recebemos normalmente, ai qnd vamos la matar o bixo a task nao conta.. LIB: -- Sistema de Task feito por Leoric (Omega no XTibia) -- taskstg = { kills = 3451, permission = 3452, killstotal = 3453, monster = 3454, stage = 3455, points = 3456, } timeBetweenTasks = 1 -- tempo até poder fazer outra task (24 * 60 * 60 = 24hs) taskLevel = false -- true se quiser que as tasks sejam feitas por level / false se quiser que elas sejam feitas na ordem taskMsg = {bool = true, msg = 'Voce acaba de matar monstros suficientes para completar sua task!'} -- bool = false > sem mensagens; bool = true > aviso quando terminar a task taskEnd = true -- [não tem função no modo Level] se estiver como true, quando o jogador terminar a última task disponível, ele não poderá repeti-la. Se estiver false, ele poderá repetir a última task infinitamente. taskmonsters = { [1] = {'rotworm','carrion worm', killstotal = 270}, -- aqui você deve mudar [2] = {'bandit','assassin', killstotal = 285}, [3] = {'dwarf','dwarf soldier', killstotal = 300}, [4] = {'amazon','amazons', killstotal = 315}, [5] = {'orc warrior','orc spearman','orc shaman','orc leader','orc berserker','orc warlord','orc rider', killstotal = 330}, [6] = {'elf scout','elf arcanist', killstotal = 345}, [7] = {'tarantula', killstotal = 360}, [8] = {'cyclop','cyclops','cyclops drone','cyclops smith', killstotal = 375}, [9] = {'dwarf guard', killstotal = 390}, [10] = {'beholder','elder beholder','braindeath', killstotal = 405}, [11] = {'pirate buccaneer','pirate corsair','pirate Cutthroat','pirate ghost','pirate marauder','pirate skeleton', killstotal = 425}, [12] = {'crypt shambler', killstotal = 445}, [13] = {'monk','dark monk', killstotal = 465}, [14] = {'dark magician','mad scientist', killstotal = 485}, [15] = {'lizard sentinel','lizard snakecharmer','lizard templar', killstotal = 505}, [16] = {'blue djinn','green djinn','efreet','marid', killstotal = 525}, [17] = {'demon skeleton', killstotal = 545}, [18] = {'mercury blob','death blob','acid blob','slime', killstotal = 565}, [19] = {'necromancer', killstotal = 585}, [20] = {'vampire','vampire bride', killstotal = 605}, [21] = {'bone beast', killstotal = 630}, [22] = {'ice witch', killstotal = 655}, [23] = {'mutated bat', killstotal = 680}, [24] = {'dragon', killstotal = 705}, [25] = {'ancient scarab', killstotal = 730}, [26] = {'frost dragon hatchling', killstotal = 755}, [27] = {'crystal spider', killstotal = 780}, [28] = {'lich', killstotal = 805}, [29] = {'banshee', killstotal = 830}, [30] = {'giant spider', killstotal = 855}, [31] = {'hero', killstotal = 885}, [32] = {'nightmare','nightmare scion', killstotal = 915}, [33] = {'black knight', killstotal = 945}, [34] = {'dragon lord', killstotal = 975}, [35] = {'frost dragon', killstotal = 1005}, [36] = {'hydra', killstotal = 1035}, [37] = {'behemoth', killstotal = 1065}, [38] = {'plaguesmith', killstotal = 1095}, [39] = {'blightwalker', killstotal = 1125}, [40] = {'dark torturer', killstotal = 1155}, [41] = {'hand of cursed fate', killstotal = 1190}, [42] = {'warlock', killstotal = 1225}, [43] = {'infernalist', killstotal = 1260}, [44] = {'phantasm', killstotal = 1295}, [45] = {'grim reaper', killstotal = 1330}, [46] = {'son of verminor', killstotal = 1365}, [47] = {'demon', killstotal = 1400}, [48] = {'hellhound', killstotal = 1435}, [49] = {'undead dragon', killstotal = 1470}, [50] = {'Juggernaut', killstotal = 1500}, [51] = {'ferumbras', killstotal = 80}, [52] = {'verminor','annihilon','latrivan','zoralurk','hellgorak','madareth', killstotal = 60}, [53] = {'orshabaal', killstotal = 40}, [54] = {'ghazbaran','morgaroth', killstotal = 40} } taskreward = -- em gps { [1] = {money = 3000000,xp = 64000,item = {5940, 5940, 5919, 5809, 5804}, amount = {1,1,1,1,1}}, [2] = {money = 2,xp = 11000}, -- 1 item(2458) será adicionado e nenhum ponto de task [3] = {money = 3,xp = 12000}, -- aqui serão adicionados 2 itens com id 2458 (se ele for amontoável - stackable) e 5 pontos de task [4] = {money = 4,xp = 13000}, [5] = {money = 5,xp = 14000}, [6] = {money = 6,xp = 15000}, [7] = {money = 7,xp = 16000}, [8] = {money = 8,xp = 17000}, [9] = {money = 9,xp = 18000}, [10] = {money = 3000000,xp = 19000,item = {8300}, amount = {2}}, [11] = {money = 10,xp = 20000}, [12] = {money = 11,xp = 21000}, [13] = {money = 12,xp = 22000}, [14] = {money = 13,xp = 23000}, [15] = {money = 14,xp = 24000}, [16] = {money = 15,xp = 25000}, [17] = {money = 16,xp = 26000}, [18] = {money = 17,xp = 27000}, [19] = {money = 18,xp = 28000}, [20] = {money = 3000000,xp = 29000,item = {8300}, amount = {3}}, [21] = {money = 20,xp = 30000}, [22] = {money = 21,xp = 31000}, [23] = {money = 22,xp = 32000}, [24] = {money = 23,xp = 33000}, [25] = {money = 24,xp = 34000}, [26] = {money = 25,xp = 35000}, [27] = {money = 26,xp = 36000}, [28] = {money = 27,xp = 37000}, [29] = {money = 28,xp = 38000}, [30] = {money = 29,xp = 39000,item = {5015,8300}, amount = {1,1}}, [31] = {money = 30,xp = 40000}, [32] = {money = 31,xp = 41000}, [33] = {money = 32,xp = 42000}, [34] = {money = 33,xp = 43000}, [35] = {money = 34,xp = 44000}, [36] = {money = 35,xp = 45000}, [37] = {money = 36,xp = 46000}, [38] = {money = 37,xp = 47000}, [39] = {money = 38,xp = 48000}, [40] = {money = 5000000,xp = 49000,item = {8306, 8300}, amount = {1,1}}, [41] = {money = 39,xp = 50000}, [42] = {money = 40,xp = 51000}, [43] = {money = 41,xp = 52000}, [44] = {money = 42,xp = 53000}, [45] = {money = 43,xp = 54000}, [46] = {money = 44,xp = 55000}, [47] = {money = 45,xp = 56000}, [48] = {money = 46,xp = 57000}, [49] = {money = 47,xp = 58000}, [50] = {money = 48,xp = 59000}, [51] = {money = 49,xp = 60000}, [52] = {money = 50,xp = 61000}, [53] = {money = 51,xp = 62000}, [54] = {money = 3000000,xp = 64000,item = {5940, 5940, 5919, 5809, 5804}, amount = {1,1,1,1,1}} } function canDoTask(cid) local stage = getPlayerStorageValue(cid, taskstg.stage) if stage + 1 > #taskmonsters then return false elseif getPlayerStorageValue(cid,taskstg.permission) <= 0 then return true elseif getPlayerStorageValue(cid,taskstg.permission) == 1 then return false elseif getPlayerStorageValue(cid,taskstg.permission) >= os.time(t) then return false end return true end function doResetTask(cid) setPlayerStorageValue(cid,taskstg.kills,-1) setPlayerStorageValue(cid,taskstg.permission,os.time(t) + timeBetweenTasks) setPlayerStorageValue(cid,taskstg.killstotal,-1) setPlayerStorageValue(cid,taskstg.monster,-1) return true end function doRewardTask(cid) local monster = getPlayerStorageValue(cid,taskstg.monster) local reward = taskreward[monster] if reward.item then for i= 1, #reward.item do doPlayerAddItem(cid,reward.item[i],reward.amount[i]) end end if reward.points then local points = getPlayerStorageValue(cid, taskstg.points) if points == -1 then setPlayerStorageValue(cid, taskstg.points, 0) end setPlayerStorageValue(cid, taskstg.points, reward.points + points) end if monster and reward then doPlayerAddMoney(cid,reward.money) doPlayerAddExperience(cid, reward.xp) end return true end function isSummon(cid) -- baseada na função do Vodkart if getCreatureMaster(cid) ~= nil or getCreatureMaster(cid) == true then return true end return false end function doCompleteTask(cid) doRewardTask(cid) doResetTask(cid) return true end function doStartTask(cid) if not taskLevel then local stage = getPlayerStorageValue(cid, taskstg.stage) if stage <= 0 then setPlayerStorageValue(cid, taskstg.monster, 1) setPlayerStorageValue(cid, taskstg.killstotal, taskmonsters[1].killstotal) setPlayerStorageValue(cid, taskstg.stage, 1) else setPlayerStorageValue(cid, taskstg.monster, stage+1) setPlayerStorageValue(cid, taskstg.killstotal, taskmonsters[stage+1].killstotal) if taskEnd or stage < #taskmonsters then setPlayerStorageValue(cid, taskstg.stage, stage+1) end end setPlayerStorageValue(cid, taskstg.permission, 1) setPlayerStorageValue(cid, taskstg.kills, 0) return true end local lvl = getPlayerLevel(cid) if lvl < 20 then local killstotal = taskmonsters[1].killstotal setPlayerStorageValue(cid,taskstg.monster,1) setPlayerStorageValue(cid,taskstg.killstotal,killstotal) setPlayerStorageValue(cid,taskstg.permission,1) elseif lvl < 50 then local killstotal = taskmonsters[2].killstotal setPlayerStorageValue(cid,taskstg.monster,2) setPlayerStorageValue(cid,taskstg.killstotal,killstotal) setPlayerStorageValue(cid,taskstg.permission,1) else local killstotal = taskmonsters[3].killstotal setPlayerStorageValue(cid,taskstg.monster,3) setPlayerStorageValue(cid,taskstg.killstotal,killstotal) setPlayerStorageValue(cid,taskstg.permission,1) end setPlayerStorageValue(cid,taskstg.kills,0) return true end Talkactions: -- Sistema de Task feito por Leoric (Omega no XTibia) -- function onSay(cid, words, param, channel) local monster, permission = getPlayerStorageValue(cid,taskstg.monster), getPlayerStorageValue(cid,taskstg.permission) local kills, killstotal = getPlayerStorageValue(cid,taskstg.kills), getPlayerStorageValue(cid,taskstg.killstotal) if monster == -1 or monster == 0 then doPlayerSendTextMessage(cid,27,'Voce nao tem nenhuma task ativa.') else local left = killstotal - kills if left <= 0 then doPlayerSendTextMessage(cid,27,'Voce ja matou monstros suficientes para terminar sua task.') else doPlayerSendTextMessage(cid,27,'Andamento da sua task de '..taskmonsters[monster][1]..'s -> ['..kills..'/'..killstotal..']') end end return true end Creatureevents: -- Sistema de Task feito por Leoric (Omega no XTibia) -- function onKill(cid, target) if not isPlayer(cid) then return true end if isSummon(target) then return true end local monster, permission = getPlayerStorageValue(cid,taskstg.monster), getPlayerStorageValue(cid,taskstg.permission) local kills, killstotal = getPlayerStorageValue(cid,taskstg.kills), getPlayerStorageValue(cid,taskstg.killstotal) if monster ~= -1 and monster ~= 0 then if isInArray(taskmonsters[monster],string.lower(getCreatureName(target))) then if kills == -1 then setPlayerStorageValue(cid,taskstg.kills,1) elseif kills + 1 == killstotal and taskMsg.bool == true then doPlayerSendTextMessage(cid, 21, taskMsg.msg) setPlayerStorageValue(cid,taskstg.kills,kills+1) else setPlayerStorageValue(cid,taskstg.kills,kills+1) end end end return true end AJUDEM PLISSS !!! UP
  11. Nickbhz

    Agrupar

    Eu cheguei até esse erro fazendo como você falou ai no topico, fiz tudo como vc disse, marquei a opção lá, salvei. Abri o server para testar e deu debug, voltei no editor e a opção estava em vermelho. (talvez mencionando q ta com erro) so que n sei mexer em nada lá, fiz o q falou ali ..
  12. Nickbhz

    Agrupar

    Como ???
  13. Nickbhz

    Agrupar

    Eu marquei a opção Stackaple, e salvei... fiz o item no server, qnd fui abrir a bp deu debug E eu coloquei na pasta do item editor os dois arquivos do tibia .. @ Qnd eu n marco o extended lá ai abre os itens ali.. ai fiz o procedimento da life ai qnd fui abrir bp deu debug ... @ o Stackaple ta vermelho na life crystal
  14. Nickbhz

    Deposit

    Funcionou.. Poderia acrescentar uma mensagem? Para qem ta recebendo? e por qm ta recebendo.. valeus!!
  15. Nickbhz

    Deposit

    Oláa!!! Estou com um script para Staffs, movimentar dinheiro por comando e tals.. Eu tenho o comando que transfere do meu banco para o outro, mais como eu sou ADM e nao queria ter q fica fazendo dinheiro e colocando no banco pra depois passar para eles, eu queria um que mesmo se eu nao tivesse o dinheiro no banco eu conseguisse depositar na conta dos outros, mais esse comando so seria possivel ser executado pelo o ADM! Esse ja veio no server, achei até q seria para isso, porem da erros... REEEEP+ pra quem ajudar vlws :3
  16. Oláa!! Estou com um sistema de cofre e queria passar ele para versao 0.3 , na versao 0.4 funfo normal, alguem que saiba poderia ajudar?? Globalevents: <globalevent name="staff_salary" time="12:00" event="script" value="bankstaff.lua"/> Talkactions: <talkaction words="/cofreLimits;/cofreTransfer" access="3" event="script" value="bankstaff.lua"/>
  17. Nickbhz

    Agrupar

    Você sabe onde posso baixar o programa, qualquer 1 dos dois, pois os links estao quebrado, ja perdi a paciencia kkkk (se possivel)
  18. Nickbhz

    Agrupar

    Bom Dia xTibianos.. Estou querendo deixar a life crystal do meu server agrupavel, como faço isso?? Desde já agradeço.. REP+
  19. Nao seria mais facil você ir no map editor e criar em um lugar islado 1 tile e deixar lá?
  20. @@zipter98 Teria como em vez de aparecer so os segundos, aparecer uma mensagem, tipo essa: 07:42 {Teleport} Ativado. 07:42 {Teleport} 5 segundos para se teletransportar. 07:42 {Teleport} 4 segundos para se teletransportar. 07:42 {Teleport} 3 segundos para se teletransportar. 07:42 {Teleport} 2 segundos para se teletransportar. 07:42 {Teleport} 1 segundo para se teletransportar. Se nao tiver, tranquilo. Otimo script. Parabéns!!!
  21. Nickbhz

    Bug Look

    Nao tem um link de como copilar para me indicar? To tentando mais os que eu achei nem entendo direitinho nao ta mt explicado... Vou deixar como resolvido aqui entao.. Vlw
  22. Nickbhz

    Bug Cassino

    Primeiro teste: Remover tile e a mesa: Agora o dinheiro nao some quando ganha, os 1kk continua em vez de 2kk Segundo teste: Trocando a script: Ficou da mesma forma, com a mesa e o tile o dinheiro some, sem a mesa e o tile, quando ganha nao aparece o premio em dobro, fica somente o que apostamos.. up
  23. Nickbhz

    Bug Look

    O server está sem soucers To tentando copilar tem um tempinho sempre aparece um erro, e como nunca copilei fico procurando como resolver por isso ando demorando pra terminar kkkkkk
  24. Estranho isso cara, pelo que você ja fez parece esta tudo ok... Tenta refazer o processo reseta o modem e refaça novamente, pois era pra ter funfado!!!
  25. Nickbhz

    Bug Look

    Nenhum!
  • Quem Está Navegando   0 membros estão online

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