Jump to content

sweetmole

Members
  • Posts

    26
  • Joined

  • Last visited

Posts posted by sweetmole

  1. Hello everybody can someone modify this script , this npc sells refined items in zen, but i want it to sell these items exchanged with some coin and these items need to be item bound in account. thank you

     

    prontera,147,155,5 script Special Store 4_F_KAFRA4,{
     vending_open strnpcinfo(0);
     end;
    
     OnInit:
     vending_add 608,300000;
     vending_add 607,700000;
     vending_add 2104,20000000,9,0,4058;
     vending_add 2104,50000000,10,0,4058;
     vending_add 2404,50000000,8,0,4097;
     vending_add 2404,70000000,9,0,4097;
     vending_add 1208,150000000,10,0,4035,4094,4094,4094;
     vending_add 1208,150000000,10,0,4035,4094,4094,4094;
     vending_add 13412,600000000,7,0,4281,4281,4281;
     vending_add 13413,700000000,7,0,4281,4281,4281;
     vending_add 13414,999000000,9,0,4281,4281,4281;
     end;
    }
  2. @AnnieRuru hi annie i tried the script. working perfectly. thank you for that!!

    one last request please??

    when the player finished the quest. it doesnt need to pick one of those aura options. should be @aura 1 only

     

    after the quest is done, this npc will ask you to quest again if they want to change their auras to @aura 2 

    same thing. kill mobs and item requirements..

     

  3. Hello everyone can someone help me please whenever i try to recompile the server this message came up, btw this source modification is @aura command , also i attached my cliff flle 

     

    clif.c:204:3: error: stray '@' in program
     * @aura
       ^
    clif.c:205:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
     *------------------------------------------*/
     ^
    clif.c: In function 'aura_getSize':
    clif.c:282:16: error: 'auraTable' undeclared (first use in this function)
      return sizeof(auraTable) / (sizeof(int) * 3) - 1;
                    ^
    clif.c:282:16: note: each undeclared identifier is reported only once for each function it appears in
    clif.c: In function 'aura_getAuraEffect':
    clif.c:295:9: error: 'auraTable' undeclared (first use in this function)
      return auraTable[aura][pos];
             ^
    clif.c: At top level:
    clif.c:338:1: warning: "/*" within comment [-Wcomment]
     /*==========================================
     ^
    clif.c: In function 'clif_getareachar_unit':
    clif.c:4759:4: error: 'else' without a previous 'if'
        else if(tsd->state.size==SZ_MEDIUM)
        ^
    clif.c: In function 'aura_getSize':
    clif.c:283:1: warning: control reaches end of non-void function [-Wreturn-type]
     }
     ^
    clif.c: In function 'aura_getAuraEffect':
    clif.c:296:1: warning: control reaches end of non-void function [-Wreturn-type]
     }
     ^
    make[1]: *** [obj/clif.o] Error 1
    make[1]: Leaving directory `/root/trunk/src/map'
    make: *** [map] Error 2

     

    cliff.txt

  4. thank you everyone for giving time on this matter. 

     

    On 4/9/2018 at 10:17 PM, Hyroshima said:

    Hi...

    
    prontera,152,166,5	script	Quest KMob	4_M_02,{
    		
    	if(QP_Act)
    	{
    		if(QT_MobKill < .mob_qt[QP_Val])
    		{ mes "You have not completed the mission!","Kill: ["+QT_MobKill+"/"+.mob_qt[QP_Val]+"] "+strmobinfo(1,.mob_id[QP_Val])+""; close; }
    
    		mes "Congratulations, you completed the quest!";
    		atcommand "@aura 2";
    		set QP_Act,0;
    		set QT_MobKill,0;
    		close;
    	}
    
    	mes "Hello, will I now ask you to kill some monsters for me ok?";
    	if(select("Ok:I do not want...")==2){ close; }
    	
    	next;	
    	
    	set QP_Val,rand(1,getarraysize(.mob_id))-1;	//Get a random mob_id
    	set QP_Act,1;
    	
    	mes "Okay, go and kill "+.mob_qt[QP_Val]+"x "+strmobinfo(1,.mob_id[QP_Val])+" !";
    	close;
    	
    OnNPCKillEvent:
    
    	if(QP_Act && killedrid == .mob_id[QP_Val]){ set QT_MobKill,QT_MobKill+1; }
    	end;
    	
    OnInit:
    	setarray .mob_id[0],1031,1002,1166,1784;	//Mob ID, limited (0,126) mobs_ids
    	setarray .mob_qt[0],   1,   2,   3,   5;	//Qty kills, limited (0,126) mobs_qty
    end;
    }

    the script working perfectly, but sir this npc let me to kill only savage mob. i want it to be 4 different mos

     

  5. hi everyone 

    can i request a simple script like this

    an npc that gives u a quest to kill 5 different mobs with 1000 qty. item requirements. once done the npc will set @aura to a player 

×
×
  • Create New...