Jump to content
  • 0

gift npc


sokarpupe

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  07/06/17
  • Last Seen:  

 

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

  • 1

  • Group:  Members
  • Topic Count:  78
  • Topics Per Day:  0.03
  • Content Count:  431
  • Reputation:   164
  • Joined:  12/12/17
  • Last Seen:  

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;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  07/06/17
  • Last Seen:  

 

 

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;
}

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  07/06/17
  • Last Seen:  

Well, finally thanks for your answer Pajodex, add

if (getreward! = 1) {
getitem 21031.99;
$ ItemGive ++;
getreward ++;

and it worked correctly
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...