Ir para conteúdo

Skulls

Herói
  • Total de itens

    859
  • Registro em

  • Última visita

  • Dias Ganhos

    22

Tudo que Skulls postou

  1. o script do daniel ta certin, falto so a funtion no inicio entao: function onSay(cid, words, param) timenow = os.time() quantity = math.floor((getPlayerStorageValue(cid,29000) - timenow)/(3600*24)) if isPlayer(cid) then if quantity > 0 then doPlayerRemovePremiumDays(cid, 3) if getPlayerSex(cid) == 2 then doPlayerSetSex(cid, 3) else doPlayerSetSex(cid, 2) end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have changed your sex and lost three days of premium account.") else doPlayerSendCancel(cid, "You do not have enough premium days or you are not a VIP.") end doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) end end seu script nao tava funcionando direito pq vc tava colocando a mensagem no lugar errado. agora as mudanças de sexo eu nao sei como voce queria entao deixei do mesmo geito que voce postou. abraços //skulls
  2. era simplesmente tirar essa linha, mas se vcs querem complicar quem sou eu para falar
  3. function onUse(cid, item, frompos, item2, topos) if item.uid == 7000 and item.itemid == 1945 then player1pos = {x=1658, y=351, z=13, stackpos=253} player1 = getThingfromPos(player1pos) player2pos = {x=1659, y=351, z=13, stackpos=253} player2 = getThingfromPos(player2pos) player3pos = {x=1660, y=351, z=13, stackpos=253} player3 = getThingfromPos(player3pos) player4pos = {x=1661, y=351, z=13, stackpos=253} player4 = getThingfromPos(player4pos) if player1.itemid > 0 and player2.itemid > 0 and player3.itemid > 0 and player4.itemid > 0 then queststatus1 = getPlayerStorageValue(player1.uid,7000) queststatus2 = getPlayerStorageValue(player2.uid,7000) queststatus3 = getPlayerStorageValue(player3.uid,7000) queststatus4 = getPlayerStorageValue(player4.uid,7000) if queststatus1 == -1 and queststatus2 == -1 and queststatus3 == -1 and queststatus4 == -1 then nplayer1pos = {x=1659, y=341, z=13} nplayer2pos = {x=1660, y=341, z=13} nplayer3pos = {x=1661, y=341, z=13} nplayer4pos = {x=1662, y=341, z=13} doSendMagicEffect(player1pos,2) doSendMagicEffect(player2pos,2) doSendMagicEffect(player3pos,2) doSendMagicEffect(player4pos,2) doTeleportThing(player1.uid,nplayer1pos) doTeleportThing(player2.uid,nplayer2pos) doTeleportThing(player3.uid,nplayer3pos) doTeleportThing(player4.uid,nplayer4pos) doSendMagicEffect(nplayer1pos,10) doSendMagicEffect(nplayer2pos,10) doSendMagicEffect(nplayer3pos,10) doSendMagicEffect(nplayer4pos,10) doTransformItem(item.uid,item.itemid+1) else doPlayerSendCancel(cid,"Somebody in your team has already done this quest.") end else doPlayerSendCancel(cid,"You need four players for this quest.") end elseif item.uid ==7000 and item.itemid == 1946 then if getPlayerAccess(cid) > 0 then << ESSA LINHA CHECA SE O ACCESS É > 0, e 0 é o access de player normal. doTransformItem(item.uid,item.itemid-1) else doPlayerSendCancel(cid,"Sorry, not possible.") end else return 0 end return 1 end
  4. uai eh so por if quantity > 0 then funcao do playerchange sex end oO
  5. Amigo, esse script que vc postou no primeiro post ta faltando um end vc sabe neh? Segundo eu usei ESSE MESMO SCRIPT, com o end do final claro, no chao e ele adicionou o item. Bom eh isso vc ta fazendo alguma merda ou o ot que pegou ta bugado. abraços //skulls
  6. bota o script ai que eu ja sei o problema, mas ai eu arrumo pra vc so postar ai abraços //skulls
  7. o cara paga vip em dinheiro ou no jogo? Se for em dinheiro ai vc vai te que add na mao msm ou checar os dias de vip, ai vai depende do sistema de vip que vc ta usando se eh premmy account, se eh um sistema novo que vc crio, etc. Se for premmy normal usa os comandos: getPlayerPremiumDays(cid) isPremium(cid) se for premium pode usar o change sex se nao nao pode. Se for add a vip no jogo eh so usar storage values. se o player comprar a vip muda o storage value xxxx dele para 2, se o storage value xxxx for 2 ele pode usar o changesex. abraços //skulls
  8. Em sql é possivel sim, o the forgotten server ate tem um dos 15 primeiros, é so voce mudar o numero max de 15 pra 1. Em xml tambem mas é mais complicado um pouco. Eu particularmente nao faço ranks por 3 motivos: nao gosto, nao aprendi a fazer e nao me interesso . mas tem mtos aqui que sabem. abraços //skulls
  9. Duvida Sanada. PODE FECHAR O TOPICO. abraçs //skulls
  10. Fiz questao de testa... aqui deu certinho, so falto um end vo posta arrumado: local focus = 0 local talk_start = 0 local talk_state = 0 local target = 0 local following = false local attacking = false function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi') and focus == 0) and getDistanceToCreature(cid) < 4 then selfSay('Hello nice person, I can help you with something?') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.') elseif focus == cid then talk_start = os.clock() status = getPlayerStorageValue(cid,10045) if msgcontains(msg, 'blood herb') then if status == -1 then selfSay('Ah, you would be able to get a Blood Herb on dry flies?') talk_state = 1 elseif status == 1 then selfSay('You got an herb for me?') talk_state = 2 elseif status == 2 then selfSay('You can\'t do this quest again. Good Bye Then.') talk_state = 0 focus = 0 end end if talk_state == 1 then if msgcontains(msg, 'yes') then selfSay('Go to get back here and let me know. Good Bye then.') setPlayerStorageValue(cid,10045,1) talk_state = 0 focus = 0 end elseif talk_state == 2 then if msgcontains(msg, 'yes') then if getPlayerItemCount(cid,2798) >= 1 then doPlayerRemoveItem(cid,2798,1) selfSay('Thank you, take this as a reward for work. Good Bye Then.') doPlayerAddItem(cid,ID_RECOMPENSA,QUANTIA) setPlayerStorageValue(cid,10045,2) talk_state = 0 focus = 0 else selfSay('You don\'t have the herb. Good Bye Then.') talk_state = 0 focus = 0 end end end end end function onCreatureChangeOutfit(creature) end function onThink() if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Next Please...') end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good bye then.') focus = 0 end end end lembrando que eh 8.1 o ot que eu tenho entao pode ter algum problema de sistema de npc. Faz assim posta um npc do seu ot preu ver o sistema. abraços //skulls
  11. Ficaria assim: Script Da planta: function onUse(cid, item, frompos, item2, topos) if item.uid == 10044 then queststatus = getPlayerStorageValue(cid,10044) npcconv = getPlayerStorageValue(cid,10045) if npcconv == 1 then if queststatus == -1 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found a blood herb.") doPlayerAddItem(cid,2798,1) setPlayerStorageValue(cid,10044,1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"It is empty.") end else doPlayerSendCancel(uid,"Sorry, not possible.") end else return 0 end return 1 end Script do NPC: local focus = 0 local talk_start = 0 local talk_state = 0 local target = 0 local following = false local attacking = false function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi') and focus == 0) and getDistanceToCreature(cid) < 4 then selfSay('Hello nice person, I can help you with something?') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.') elseif focus == cid then talk_start = os.clock() status = getPlayerStorageValue(cid,10045) if msgcontains(msg, 'blood herb') then if status == -1 then selfSay('Ah, you would be able to get a Blood Herb on dry flies?') talk_state = 1 elseif status == 1 then selfSay('You got an herb for me?') talk_state = 2 elseif status == 2 then selfSay('You can\'t do this quest again. Good Bye Then.') talk_state = 0 focus = 0 end end if talk_state == 1 then if msgcontains(msg, 'yes') then selfSay('Go to get back here and let me know. Good Bye then.') setPlayerStorageValue(cid,10045,1) talk_state = 0 focus = 0 end elseif talk_state == 2 then if msgcontains(msg, 'yes') then if getPlayerItemCount(cid,2798) >= 1 then doPlayerRemoveItem(cid,2798,1) selfSay('Thank you, take this as a reward for work. Good Bye Then.') doPlayerAddItem(cid,ID_RECOMPENSA,QUANTIA) setPlayerStorageValue(cid,10045,2) talk_state = 0 focus = 0 else selfSay('You don\'t have the herb. Good Bye Then.') talk_state = 0 focus = 0 end end end end function onCreatureChangeOutfit(creature) end function onThink() if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Next Please...') end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good bye then.') focus = 0 end end end function onCreatureChangeOutfit(creature) end function onThink() if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Next Please...') end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good bye then.') focus = 0 end end end Não textei, entao talvez tenha erro de sintaxe (end a menos, == em vez de =, etc), mas é 99% que funcione. abraços //skulls
  12. Nostradamos, seu comentario foi relativamente inutil levando em consideração que ja postamos a resposta da duvida, o cara so nao veio aqui ver ainda e ja foi falado que dava pra fazer sem mecher na source ;D. nao precisa postar so pra mostrar que voce sabe alguma mer##. ok? abraçs //skulls
  13. Dokmos, o script esta certinho. A questao do addevent gerar lag e bugs é bem simples de ser contornada. Como o addevent eh uma funcao que realmente gera alguns lags ao invez de você executar todo o script dentro do evento voce pode usar o evento como um simples "timer". Ou seja... você tem a variavel timer=0, quando aciona o evento timer = 1, e no onLogin você tem if timer == 1 then. Ficaria mais ou menos assim: local timer = 0 local function isPlayerMoving(cid, fromPos) timer = 1 end function onLogin(cid) registerCreatureEvent(cid, "PlayerDeath") a = 1 addEvent(isPlayerMoving, 30*1000, cid, getThingPos(cid)) while a == 1 do if timer = 1 then if (isPlayer(cid) == TRUE) then toPos = getThingPos(cid) if (fromPos.x == toPos.x) and (fromPos.y == toPos.y) and (fromPos.z == toPos.z) then doSendMagicEffect(toPos, CONST_ME_SLEEP) timer = 0 addEvent(isPlayerMoving, 10*1000, cid, toPos) else timer = 0 addEvent(isPlayerMoving, 30*1000, cid, toPos) end end end end return TRUE end não sei se esta totalmente certo, afinal estou meio enferrujado . Mas creio que funciona. abraços //skulls
  14. se adiciono as linhas que vc queria? se sim posta as linhas do itens.xml dos 3 itens ai... abraçs //skulls
  15. tenho uma de um topico antigo de duvidas. nao fui eu quem fiz. empurra o player pra longe de vc. nao eh bem o que voce pediu, mas da pra da uma ideia e eh bem parecido: -- Talkaction que empurra criaturas -- -- By Yorun -- function onSay(cid, words, param) if words == 'exori sai' then playpos = getPlayerPosition(cid) posi1 = {x=playpos.x-1, y=playpos.y+1, z=playpos.z, stackpos=253} pos1 = getThingfromPos(posi1) posi2 = {x=playpos.x, y=playpos.y+1, z=playpos.z, stackpos=253} pos2 = getThingfromPos(posi2) posi3 = {x=playpos.x+1, y=playpos.y+1, z=playpos.z, stackpos=253} pos3 = getThingfromPos(posi3) posi4 = {x=playpos.x-1, y=playpos.y, z=playpos.z, stackpos=253} pos4 = getThingfromPos(posi4) posi5 = {x=playpos.x+1, y=playpos.y, z=playpos.z, stackpos=253} pos5 = getThingfromPos(posi5) posi6 = {x=playpos.x-1, y=playpos.y-1, z=playpos.z, stackpos=253} pos6 = getThingfromPos(posi6) posi7 = {x=playpos.x, y=playpos.y-1, z=playpos.z, stackpos=253} pos7 = getThingfromPos(posi7) posi8 = {x=playpos.x+1, y=playpos.y-1, z=playpos.z, stackpos=253} pos8 = getThingfromPos(posi8) -- verifica se é criatura -- tp1 = isCreature(pos1.uid) tp2 = isCreature(pos2.uid) tp3 = isCreature(pos3.uid) tp4 = isCreature(pos4.uid) tp5 = isCreature(pos5.uid) tp6 = isCreature(pos6.uid) tp7 = isCreature(pos7.uid) tp8 = isCreature(pos8.uid) -- Posições para onde o player irá -- nposi1 = {x=playpos.x-5, y=playpos.y+5, z=playpos.z, stackpos=253} nposi2 = {x=playpos.x, y=playpos.y+5, z=playpos.z, stackpos=253} nposi3 = {x=playpos.x+5, y=playpos.y+5, z=playpos.z, stackpos=253} nposi4 = {x=playpos.x-5, y=playpos.y, z=playpos.z, stackpos=253} nposi5 = {x=playpos.x+5, y=playpos.y, z=playpos.z, stackpos=253} nposi6 = {x=playpos.x-5, y=playpos.y-5, z=playpos.z, stackpos=253} nposi7 = {x=playpos.x, y=playpos.y-5, z=playpos.z, stackpos=253} nposi8 = {x=playpos.x+5, y=playpos.y-5, z=playpos.z, stackpos=253} if tp1 ~= 0 then doTeleportThing(pos1.uid, nposi1) doSendMagicEffect(nposi1, 12) end if tp2 ~= 0 then doTeleportThing(pos2.uid, nposi2) doSendMagicEffect(nposi2, 12) end if tp3 ~= 0 then doTeleportThing(pos3.uid, nposi3) doSendMagicEffect(nposi3, 12) end if tp4 ~= 0 then doTeleportThing(pos4.uid, nposi4) doSendMagicEffect(nposi4, 12) end if tp5 ~= 0 then doTeleportThing(pos5.uid, nposi5) doSendMagicEffect(nposi5, 12) end if tp6 ~= 0 then doTeleportThing(pos6.uid, nposi6) doSendMagicEffect(nposi6, 12) end if tp7 ~= 0 then doTeleportThing(pos7.uid, nposi7) doSendMagicEffect(nposi7, 12) end if tp8 ~= 0 then doTeleportThing(pos8.uid, nposi8) doSendMagicEffect(nposi8, 12) end end end bota isso num arquivo .lua em talkactions/scripts, chame ele de saifora.lua e em actions.xml coloque a tag: <talkaction words="exori sai" script="saifora.lua" /> abraços espero que ajude //skulls
  16. vai no itens.xml, ache o item que vc quer e adicione a tag que voce deseja: <attribute key="magicpoints" value="numero de ml"/> -- adiciona ml <attribute key="skillDist" value="numero de skills"/> -- skill distance <attribute key="skillShield" value="numero de skills"/> -- shield <attribute key="skillFist" value="numero de skills"/> -- fist <attribute key="skillSword" value="numero de skills"/> -- sword <attribute key="skillClub" value="numero de skills"/> -- club <attribute key="skillAxe" value="numero de skills"/> -- axe <attribute key="speed" value="40"/> -- aumenta velocidade <attribute key="absorbPercentFire" value="porcentagem"/> protecao contra fogo em (se quiser diminuir em x% a protecao eh so coloca -o numero) <attribute key="absorbPercentIce" value="porcentagem"/> protecao contra ice em (se quiser diminuir em x% a protecao eh so coloca -o numero) <attribute key="absorbPercentEnergy" value="porcentagem"/> protecao contra energy em (se quiser diminuir em x% a protecao eh so coloca -o numero) <attribute absorbPercentEarth" value="porcentagem"/> protecao contra terra em (se quiser diminuir em x% a protecao eh so coloca -o numero) <attribute key="absorbPercentDeath" value="porcentagem"/> protecao contra death em (se quiser diminuir em x% a protecao eh so coloca -o numero) <attribute key="absorbPercentHoly" value="porcentagem"/> protecao contra holy em (se quiser diminuir em x% a protecao eh so coloca -o numero) <attribute key="absorbPercentAll" value="porcentagem"/> protecao contra tudo em (se quiser diminuir em x% a protecao eh so coloca -o numero) <attribute key="absorbPercentPhysical" value="porcentagem"/> protecao contra dano fisico em (se quiser diminuir em x% a protecao eh so coloca -o numero) -- esse eu nao tenho certeza se eh isso msm <attribute key="absorbPercentManaDrain" value="porcentagem"/> protecao contra manadrain em (se quiser diminuir em x% a protecao eh so coloca -o numero) -- esse eu nao tenho certeza se eh isso msm <attribute key="absorbPercentPoison" value="porcentagem"/> diminui o dano do poison. -- esse eu nao tenho certeza se eh isso msm <attribute key="absorbPercentLifeDrain" value="porcentagem"/> protecao contra lifedrain em (se quiser diminuir em x% a protecao eh so coloca -o numero) -- esse eu nao tenho certeza se eh isso msm bom eh isso. no 8.3 funciona, nao sei se no 8.4 continua assim. abraçs //skulls
  17. Skulls

    Alguns Jobs

    Resolvi postar alguns jobs so para vocês opinarem. Ta ae: Por favor nao chinguem (tem algumas pessoas que costumam chingar em vez de ajudar com criticas e dicas). Obs: fiz em um tamanho um pouco maior do que o convencional de sign. Opinem e obrigado. //Skulls
  18. Skulls

    Wallpaper

    Bom odeio os wallpapers do windows ai fui fazer um personalizado pra mim... saiu mais o menos... mas ta bom ... http://img03.picoodle.com/img/img03/3/12/1...00m_dff9d07.png (so imagem) http://img37.picoodle.com/img/img37/3/12/1...abm_9e0b7fd.jpg (ja na area de trab) (postando so o link pq ta mto grande e pesado). Versao sign: (tipo pessima e qse ilegivel na sign) Bom eh isso. Opinem //skulls
  19. Skulls

    Sign Halo 3

    Olha agora falando ta bem igual nostress msm... mas nem lembrei... no style eh pq minhas signs tao muito ruins ainda ai pus isso ae... aseuashuehause //skulls
  20. Skulls

    Sign Halo 3

    sim me falaram isso da primera... mas quero opinioes sobre a segunda thx //skulls
  21. Skulls

    Sign Halo 3

    Bom fiz uma sign do halo 3... ai recebi criticas, opinioes e sugestoes... ai refiz com msm render e agora quero novas opinioes e sugestoes: Obrigado, //skulls
  22. Skulls

    Sing, Fanbar E Avatar

    @Pro69 O avatar tbm nao gostei nao, mas eu achei q a sing e as fanbars ficaram razoaveis . Afinal eu sou scripter e nao designer kaopsekopasesaek... e so fiz 5 sing na minha vida '-'. @Arcazy: Bom eu quis fazer algo diferente do que simplesmente pegar uma foto de anime, filme ou mulher e editar com efeitos e fundos. Sei la ;P. bom mas em todo caso obrigado pelas opinioes sempre ajudam ^^. //skulls
  23. Skulls

    Sing, Fanbar E Avatar

    Final de dezembro. Esta 90% pronto, mas agente fico 1 mes parado por motivos pessoais. Devemos voltar agora dia 30. Abraçs //skulls
  24. Skulls

    Sing, Fanbar E Avatar

    Bom desviei um pouco de scripts e vim parar aqui em designer x). Entao arrisquei um set. Esse set pro forum do pokemon online otserv (sou admin de la). Como achei legalzin queria opiniao de vocês. Avatar: Sing: Fanbars: Minha: Da galera que ajuda no designer de la: Opinem . Obrigado. //skulls
  25. Muito bom. Ainda prefiro meu topic de potions (claro ele eh meu aokseopksae). Mas ta otimo Parabens aew
  • Quem Está Navegando   0 membros estão online

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