-
Posts
63 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by Matheus
-
Or .. if have some script before this one, maybe the error is not in this ..
-
Try put in the end of the other script
-
When you have two scripts with the same name, you need put #2 (for example) in one of then.
-
How it works the scripts ?
-
Aula de Script #1 Nessa primeira aula, não espere aprender como fazer eventos dinâmicos, sistemas pvp's, sistemas vip's e etc. Hoje aprenderemos o básico, como iniciar com script, como desenvolver um script, como testá-lo e por que aprender a fazê-lo. - Como iniciar no mundo de script do Ragnarök Aos novos administradores ou membros que vêem um script, lhe parece ser um bicho de sete cabeças... mas acredite, depois que entendermos o que cada comando faz, tudo será mais fácil ! Enfim, para iniciarmos, eu recomendo você a olhar muitos scripts e ter muitas dúvidas (sim, muitas dúvidas), para que mais na frente você tire de cara todas elas e pense, 'como foi fácil !'. - Desenvolvendo um script Recomendo a vocês utilizar o software Notepadd++ (notepadd plus plus). É um software bem completo com suporte a varias linguagens de programação (infelizmente, não tem para script de ragnarök). Após baixá-lo, instale ele e execute, no menu superior, vá em Linguagens e escolha a linguagem C (ou C#/C++). Pronto, ficará bem mais fácil de criar nossos scripts com este software. - Testando um script Deixe um emulador separado apenas para teste de scripts, um emulador sem muitas frescuras, apenas o básico. - Por que aprender a fazer script ? Simples, não há por que dependermos dos outros para fazermos algo ... Para quem É jovem, um dia irá envelhecer e terá que sair da casa dos pais (ou não nÉ ..) e viver sua vida. O mesmo É com script, aqui se encaixa uma frase que vi em algum lugar, era mais ou menos assim: "Dê um peixe ao homem e o homem não passará fome por um dia. Ensine o homem a pescar e ele não passará fome pelo resto de sua vida". Enfim, o que tinha de apresentar foi apresentado, na aula #2, iremos dar início a linguagem de script (aprendemos os comandos básicos e a estrutura de um script).
-
Olá, meu nick é Dreaming, e estou aqui para ensinar a vocês como configurar o drops de seu servidor, apenas o básico. Vamos lá ? Faça os seguintes passos: Vá a pasta conf/battle/ e abra o arquivo drops.conf Você verá algo mais ou menos assim: // A taxa cujo os itens comuns são dropados (Itens localizados na aba ETC, exceto cartas) item_rate_common: 100 item_rate_common_boss: 100 item_drop_common_min: 1 item_drop_common_max: 10000 Para alterar o drop, você vai no: item_drop_common_min: 1 A última linha, aonde possui MAX, é o valor máximo, no caso 10000 = 100%. Resumindo, se 10000 é igual a 100%, se eu quero 50% de drop, basta eu alterar o valor min para 5000. Ficando: item_drop_common_min: 5000 Fácil né ? Espero sanar todas as dúvidas referente a esse arquivo tão simples.
-
quiz_02,154,389,5 script Usable Item 896,{ callshop "USABLE",0; npcshopattach "USABLE"; end; OnBuyItem: for(set @i,0;@i<=getarraysize(@bought_nameid);set @i,@i+1) { if(@bought_nameid[@i] == 678 && @bought_quantity[@i] > 3 || !checkweight(678,5)) { dispbottom "You've reached the maximum of 3 Poison Bottles only!"; end; } if(@bought_nameid[@i] == 7135 && @bought_quantity[@i] > 5 || !checkweight(7135,5)) { dispbottom "You've reached the maximum of 5 Grenade Bottles only!"; end; } if (@bought_nameid[@i] == 7136 && @bought_quantity[@i] > 5 || !checkweight(7136,5)) { { dispbottom "You've reached the maximum of 5 Acid Bottles only"; end; } } if (@bought_nameid[@i] == 7135 && @bought_quantity[@i] > 5) { if (checkweight(7135,5) == 0) { dispbottom "You've reached the maximum of 5 Grenade Bottles only!"; } else { dispbottom "Maximum of 5 Grenade Bottles only!"; } } if (@bought_nameid[@i] == 7136 && @bought_quantity[@i] > 5) { if (checkweight(7136,5) == 0) { dispbottom "You've reached the maximum of 5 Acid Bottles only"; } else { dispbottom "Maximum of 5 Acid Bottles only!"; } } if (@bought_nameid[@i] != 678 || @bought_nameid[@i] != 7135 || @bought_nameid[@i] != 7136) { getitem @bought_nameid[@i], @bought_quantity[@i]; } } } test it
-
In OnPCLoginEvent label, make the script check the user IP (save in one variable) and if the IP be equal the 'IP to Activate', you use callfunc (better to control).
-
OnClockXXXX: callfunc("randAndCall"); In the function, you put: switch(rand(0,1)){ case 0: // here you call you event case 1: break; default: break; } I think this works o_o
-
Maybe changing the source ..
-
Need modification in source .. I don't know the name of the member who did this, but, search on google "GetStorageItem ragnarok", maybe you find something.
-
Good job dude ! I loved the new structure of config files. Congratulations.
-
What is the error that gives ?
-
Haha thanks. @Zac I can try but i am a really bad teacher xD.
-
i think he's mean using another npc ..-pojiejapan If you use other day in another NPC, will not have problems
-
I don't know if i'm right, but, when you called a function with string argument, you need transform the getarg in a string variable or will not work .. test this ..
-
But returns the account id or 0 ?
-
Thanks ! I was seeing, you are a great developer, congratulations. I know some script too .
-
Hi, i'm Matheus and am i talk from Brazil (São Paulo). My english is pretty bad, but i will try contribute with the community always i can .