Jump to content

pxxpw123

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by pxxpw123

  1. Hi Capuche, thx for help.

    i do some changes here all new event prize part:

     

    Premio_Auto_Event:
    
    	switch( $eventocheck ) {
    		case 1: //--------> Evento_Um
    		case 2: //--------> Evento_Dois
    		case 3: //--------> Evento_Tres
    			set(.player,getcharid(3));
    			deletearray(.players[0],128); addrid(0);
    			set(.players[getarraysize(.players)],getcharid(3));
    			detachrid; attachrid(.player);
    			if (strcharinfo(3) == $mapabombporing$ ) {
    				announce "Parabéns"+ strcharinfo(0) +", Você ganhou o evento!!! :D",3, 0x_FFFF00;
    				sleep2 2000;
    				getitem $premioevento, $qntpremioevento;
    				announce "Já recebeu seu prêmio agora TCHAU! :P",3;
    				sleep2 3000;
    				warp "prontera",150,150;
    				goto OnInit;
    			}
    		case 4: //--------> Evento_Quatro
    			
    	}
    

    the error still the same on server.
     

    Here a screenshot of NPC Script Editor (i don't know if i can post a large image, if i can't sorry. ):

     

    2c679b5ed3.png

    @Edit:

    I have finished add bomb poring to my script but i'm having the same problem without this code.

    here is my full script atm:

    http://pastebin.com/r3jScRcu

     

    Thx Sir!

  2. Hi guys, first sorry for my bad english i'll try explain with most clean way i can.

    Well i'm having trouble with players attach  what i need is give some item to all players in the map.
     

    Here what i get after some search:

                set(.player,getcharid(3));
                deletearray(.players[0],128); addrid(0);
                set(.players[getarraysize(.players)],getcharid(3));
                detachrid; attachrid(.player);
                if (.player == $mapabombporing$ ) {
                    announce "Parabéns"+ strcharinfo(0) +", Você ganhou o evento!!! :D",3, 0x_FFFF00;
                    sleep2 2000;
                    getitem(512,1,set(.@a,.players[rand(getarraysize(.players))]));
                    announce "Já recebeu seu prêmio agora TCHAU! :P",3;
                    sleep2 3000;
                    warp "prontera",150,150;
                    goto OnInit;
                }
    

    Here is my error:

    59ebbeda20.png

     

    OnInit i have:

    set $mapabombporing$, "prontera";

    _________________________________________________________________________________

    This npc is my new game center and live in prontera thats why i use, this part of script will give some prize to all winners of Bomb poring event.

     

    if i need give more information please ask :)
    thx guys!

  3. Hi guys noob question comming /pat

     

    well guys i need to do something like that:

    default:
    	if((countitem(511)>0){
    		make_per += 9000+i*500;
    		delitem 511,1;
    	}
    	make_per += 1000+i*500;
    break;
    
    

    of course that don't work /lv
    i want to now how can i declare countitem and delitem on src.

     

    please don't be rude one day u was like me :rolleyes:

     

     

    thx for any help and sorry about my bad english.
     

×
×
  • Create New...