sokarpupe Posted May 30, 2018 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 11 Reputation: 0 Joined: 07/06/17 Last Seen: June 23, 2018 Share Posted May 30, 2018 Hello everyone, will you happen to have a scrip that requires a base level to deliver prizes that you can share with me? Quote Link to comment Share on other sites More sharing options...
1 pajodex Posted May 30, 2018 Group: Members Topic Count: 79 Topics Per Day: 0.03 Content Count: 439 Reputation: 173 Joined: 12/12/17 Last Seen: Monday at 05:33 PM Share Posted May 30, 2018 2 hours ago, sokarpupe said: Hello everyone, will you happen to have a scrip that requires a base level to deliver prizes that you can share with me? Im pretty sure it has been made recently in a post here.. maybe use search engine next time.. https://rathena.org/board/topic/115772-race-to-99-per-class/ or from @AnnieRuru https://rathena.org/board/topic/75015-asking-for-a-prize-npc/ or from me: https://rathena.org/board/topic/115293-race-to-99-rewards/#comment-344269 or you can simply scroll thru trunk/doc/script_commands.txt and you will find conditions and be able to make as simple as this.. - script askdmasd -1,{ if( BaseLevel != 99 ) { // When a player reaches Lv 99 mes "You need to be lvl 99 to claim rewards"; close; } if( getreward ) { mes "You can only claim reward once per character"; close; } mes "Congrats! You've reached level 99"; getitem 501,10; // gets reward getreward = 1; // Prevent abuse close; } Quote Link to comment Share on other sites More sharing options...
0 sokarpupe Posted May 30, 2018 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 11 Reputation: 0 Joined: 07/06/17 Last Seen: June 23, 2018 Author Share Posted May 30, 2018 Thanks for the reply, I was creating a script of my own, but I'm missing the block so I can get the item only once per character, try freebie, but it does not work This is my Script prontera,154,174,3 script Entregador de Cajas 110,{ mes "[Entregador De Cajas]"; mes "Hola ^0080FF"+strcharinfo(0)+"^000000, yo soy un NPC que entrega unas cajas especiales que contienen en su interior un premio aleatorio."; mes "Pero solo te las entregare cuando llegues al nivel base 99."; next; mes "Debo decirte que es 1 caja por nivel, o sea cuando estes capacitado para otorgarte las cajas recibiras 99 de estas."; mes "...."; mes "Se me olvidava decirte, que estas cajas solo la recibiras 1 sola ves."; next; mes "Estas "+(Sex?"seguro":"segura")+" de querer reclamar tus cajas ahora?"; next; switch(select("Si:No por ahora")) { case 1: if (BaseLevel >= 99) goto A_SiCA; break; if (BaseLevel < 99) goto A_NoCA; break; A_SiCA: if(!#Freebie) { mes "Felicitaciones ^0080FF"+strcharinfo(0)+"^000000, Disfruta de tu premio, ojala tengas un lindo objeto."; getitem 21031,99; end; close; set #Freebie, 1; close; }else{ next; mes "ESPERA!!, tu ya has pedido tus caja de nivel."; mes "Eres "+(Sex?"un":"una")+" "+(Sex?"tramposillo":"tramposilla")+", si que lo siento ^0080FF"+strcharinfo(0)+"^000000, que tengas un buen dia, adios."; close; } A_NoCA: mes @npcname$; mes "Lo siento ^0080FF"+strcharinfo(0)+"^000000, no tienes nivel necesario para reclamar las cajas de nivel, sube de nivel para obtener una caja."; end; close; case 2: mes "[Entregador De CAJAS]"; mes "Vuelve cuando quieras reclamar tu caja "+(Sex?"amigo":"amiga")+""; close; end; } OnInit: delwaitingroom; waitingroom "Consigue tus cajas de nivel aqui.",0; end; } Quote Link to comment Share on other sites More sharing options...
0 sokarpupe Posted May 30, 2018 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 11 Reputation: 0 Joined: 07/06/17 Last Seen: June 23, 2018 Author Share Posted May 30, 2018 Well, finally thanks for your answer Pajodex, add if (getreward! = 1) { getitem 21031.99; $ ItemGive ++; getreward ++; and it worked correctly Quote Link to comment Share on other sites More sharing options...
Question
sokarpupe
Hello everyone, will you happen to have a scrip that requires a base level to deliver prizes that you can share with me?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.