Jump to content

Kido

Members
  • Posts

    1445
  • Joined

  • Last visited

  • Days Won

    10

Posts posted by Kido

  1. i tryied to install this 

    http://rathena.org/board/topic/62868-emperium-breaking-room/

     

    and everything went fine

    'till i hit something and now i can't talk to the npc

    when i click it, the npc just does nothing

    on putty i got these errors, i think they have something to do but im not sure

     

    nkay4W4.png

    [Warning]: npc_parsename: Duplicate unique name in file 'npc/custom/emp.txt', line'16'. Renaming 'EmpBrkRmTm' to '1_-1_0_0'.
    [Debug]: this npc:
    display name 'EmpBrkRmTm'
    unique name 'EmpBrkRmTm'
    map=(not on a map), x=0, y=0
    [Debug]: other npc in 'npc/custom/emp.txt' :
    display name 'EmpBrkRmTm'
    unique name 'EmpBrkRmTm'
    map=(not on a map), x=0, y=0
    [Warning]: npc_parsename: Duplicate unique name in file 'npc/custom/emp.txt', line'498'. Renaming 'EmpBrk#1' to '2_-1_0_0'.
    [Debug]: this npc:
    display name 'EmpBrk#1'
    unique name 'EmpBrk#1'
    map=(not on a map), x=0, y=0
    [Debug]: other npc in 'npc/custom/emp.txt' :
    display name 'EmpBrk#1'
    unique name 'EmpBrk#1'
    map=(not on a map), x=0, y=0
    [Warning]: npc_parsename: Duplicate unique name in file 'npc/custom/emp.txt', line'573'. Renaming 'EmpBrk#1_touch' to '1_149_99_125'.
    [Debug]: this npc:
    display name 'EmpBrk#1_touch'
    unique name 'EmpBrk#1_touch'
    map=pvp_n_4-5, x=99, y=125
    [Debug]: other npc in 'npc/custom/emp.txt' :
    display name 'EmpBrk#1_touch'
    unique name 'EmpBrk#1_touch'
    map=pvp_n_4-5, x=99, y=125
    [Warning]: npc_parsename: Duplicate unique name in file 'npc/custom/emp.txt', line'586'. Renaming 'EmpBrk#2' to '3_-1_0_0'.
    [Debug]: this npc:
    display name 'EmpBrk#2'
    unique name 'EmpBrk#2'
    map=(not on a map), x=0, y=0
    [Debug]: other npc in 'npc/custom/emp.txt' :
    display name 'EmpBrk#2'
    unique name 'EmpBrk#2'
    map=(not on a map), x=0, y=0
    [Warning]: npc_parsename: Duplicate unique name in file 'npc/custom/emp.txt', line'661'. Renaming 'EmpBrk#2_touch' to '1_149_74_99'.
    [Debug]: this npc:
    display name 'EmpBrk#2_touch'
    unique name 'EmpBrk#2_touch'
    map=pvp_n_4-5, x=74, y=99
    [Debug]: other npc in 'npc/custom/emp.txt' :
    display name 'EmpBrk#2_touch'
    unique name 'EmpBrk#2_touch'
    map=pvp_n_4-5, x=74, y=99
    [Warning]: npc_parsename: Duplicate unique name in file 'npc/custom/emp.txt', line'674'. Renaming 'EmpBrk#3' to '4_-1_0_0'.
    [Debug]: this npc:
    display name 'EmpBrk#3'
    unique name 'EmpBrk#3'
    map=(not on a map), x=0, y=0
    [Debug]: other npc in 'npc/custom/emp.txt' :
    display name 'EmpBrk#3'
    unique name 'EmpBrk#3'
    map=(not on a map), x=0, y=0
    [Warning]: npc_parsename: Duplicate unique name in file 'npc/custom/emp.txt', line'749'. Renaming 'EmpBrk#3_touch' to '1_149_100_74'.
    [Debug]: this npc:
    display name 'EmpBrk#3_touch'
    unique name 'EmpBrk#3_touch'
    map=pvp_n_4-5, x=100, y=74
    [Debug]: other npc in 'npc/custom/emp.txt' :
    display name 'EmpBrk#3_touch'
    unique name 'EmpBrk#3_touch'
    map=pvp_n_4-5, x=100, y=74
    [Warning]: npc_parsename: Duplicate unique name in file 'npc/custom/emp.txt', line'762'. Renaming 'EmpBrk#4' to '5_-1_0_0'.
    [Debug]: this npc:
    display name 'EmpBrk#4'
    unique name 'EmpBrk#4'
    map=(not on a map), x=0, y=0
    [Debug]: other npc in 'npc/custom/emp.txt' :
    display name 'EmpBrk#4'
    unique name 'EmpBrk#4'
    map=(not on a map), x=0, y=0
    [Warning]: npc_parsename: Duplicate unique name in file 'npc/custom/emp.txt', line'837'. Renaming 'EmpBrk#4_touch' to '1_149_125_100'.
    [Debug]: this npc:
    display name 'EmpBrk#4_touch'
    unique name 'EmpBrk#4_touch'
    map=pvp_n_4-5, x=125, y=100
    [Debug]: other npc in 'npc/custom/emp.txt' :
    display name 'EmpBrk#4_touch'
    unique name 'EmpBrk#4_touch'
    map=pvp_n_4-5, x=125, y=100
    

    and this is the script

    //===== rAthena Script =======================================
    //= Emperium Break Room
    //===== By: ==================================================
    //= Masao
    //===== Current Version: =====================================
    //= 1.0
    //===== Compatible With: =====================================
    //= rAthena SVN
    //===== Description: =========================================
    //= An little Emperium Break Room NPC in which you can test your
    //= strength and speed against Emperiums.
    //===== Additional Comments: =================================
    //= 1.0 First Version. [Masao]
    //============================================================
    
    -	script	EmpBrkRmTm	-1,{
    
    OnClock0000:
    OnClock0200:
    OnClock0400:
    OnClock0600:
    OnClock0800:
    OnClock1000:
    OnClock1200:
    OnClock1400:
    OnClock1600:
    OnClock1800:
    OnClock2000:
    OnClock2200:
    	if($empbrkrh == 1) {
    		hideoffnpc "Emperium Breaking Room";
    	}
    	end;
    
    OnClock0100:
    OnClock0300:
    OnClock0500:
    OnClock0700:
    OnClock0900:
    OnClock1100:
    OnClock1300:
    OnClock1500:
    OnClock1700:
    OnClock1900:
    OnClock2100:
    OnClock2300:
    	if($empbrkrh == 1) {
    		hideonnpc "Emperium Breaking Room";
    	}
    	end;
    }
    
    quiz_02,344,376,0	script	Emperium Breaking Room	1288,{
    
    	if (getgmlevel() >= $empbrk_gm_restriction) goto L_GMCP;
    
    L_SM:
        set .@time,empbrk_record;
    	set .@m,.@time / 60000;
    	set .@s,.@time / 1000;
    	set .@ms,.@time / 10000;
        set .@empbrk_time,$empbrk_record;
    	set .@empbrk_m,.@empbrk_time / 60000;
    	set .@empbrk_s,.@empbrk_time / 1000;
    	set .@empbrk_ms,.@empbrk_time / 10000;
    	mes .n$;
    	mes "Current record holder is the Player ^5050A0"+$empbrk_master$+"^000000 .";
    	mes "With an time of ^000080"+.@empbrk_m+"^000000Minutes ^000080"+.@empbrk_s+"^000000Seconds ^000080"+.@empbrk_ms+"^000000Milliseconds until the Emperium got broke.";
    	next;
    	mes .n$;
        mes "Your Own Record:";
        mes "^000080"+.@m+"^000000m ^000080"+.@s+"^000000s ^000080"+.@ms+"^000000ms";
    	next;
    	mes .n$;
    	mes "Would you like to try to set a new record?";
    	next;
    	menu "Yes",-,"No",L_C,"Reset Your Record",L_RYR;
    
    	cleararray .arena$[0],"",4;
    	mes .n$;
    	if (getareausers("pvp_n_4-5",94,128,105,139) || $@empr_occupied[0] > 0){
    		mes "^B8860BEmperium Room N° 1:^000000 ^FF0000Busy^000000";
    	}else{
    		mes "^B8860BEmperium Room N° 1:^000000 ^32CD32Free^000000";
    		set .arena$[0],"^B8860BEmperium Room N° 1^000000";
    	}
    	if (getareausers("pvp_n_4-5",60,94,71,105) || $@empr_occupied[1] > 0){
    		mes "^B8860BEmperium Room N° 2:^000000 ^FF0000Busy^000000";
    	}else{
    		mes "^B8860BEmperium Room N° 2:^000000 ^32CD32Free^000000";
    		set .arena$[1],"^B8860BEmperium Room N° 2^000000";
    	}
    	if (getareausers("pvp_n_4-5",94,60,105,71) || $@empr_occupied[2] > 0){
    		mes "^B8860BEmperium Room N° 3:^000000 ^FF0000Busy^000000";
    	}else{
    		mes "^B8860BEmperium Room N° 3:^000000 ^32CD32Free^000000";
    		set .arena$[2],"^B8860BEmperium Room N° 3^000000";
    	}
    	if (getareausers("pvp_n_4-5",128,94,139,105) || $@empr_occupied[3] > 0){
    		mes "^B8860BEmperium Room N° 4:^000000 ^FF0000Busy^000000";
    	}else{
    		mes "^B8860BEmperium Room N° 4:^000000 ^32CD32Free^000000";
    		set .arena$[3],"^B8860BEmperium Room N° 4^000000";
    	}
    	next;
    	switch (select(.arena$[0],.arena$[1],.arena$[2],.arena$[3],"^FF0000Exit^000000")){
    	case 1:
    		if($@empr_occupied[0] > 0){
    			mes .n$;
    			mes "Sorry but the Room has been taken.";
    			mes "Please try another Room or come back later.";
    			goto L_SM;
    		}
    		set $@empr_occupied[0],1;
    		set $@empbrk_charid[0],getcharid(0);
    		initnpctimer "EmpBrk#1";
    		sc_end SC_ALL;
    		warp "pvp_n_4-5",99,128;
    		end;
        case 2:
    		if($@empr_occupied[1] > 0){
    			mes .n$;
    			mes "Sorry but the Room has been taken.";
    			mes "Please try another Room or come back later.";
    			goto L_SM;
    		}
    		set $@empr_occupied[1],1;
    		set $@empbrk_charid[1],getcharid(0);
    		initnpctimer "EmpBrk#2";
    		sc_end SC_ALL;
    		warp "pvp_n_4-5",68,99;
    		end;
        case 3:
    		if($@empr_occupied[2] > 0){
    			mes .n$;
    			mes "Sorry but the Room has been taken.";
    			mes "Please try another Room or come back later.";
    			goto L_SM;
    		}
    		set $@empr_occupied[2],1;
    		set $@empbrk_charid[2],getcharid(0);
    		initnpctimer "EmpBrk#3";
    		sc_end SC_ALL;
    		warp "pvp_n_4-5",100,68;
    		end;
        case 4:
    		if($@empr_occupied[3] > 0){
    			mes .n$;
    			mes "Sorry but the Room has been taken.";
    			mes "Please try another Room or come back later.";
    			goto L_SM;
    		}
    		set $@empr_occupied[3],1;
    		set $@empbrk_charid[3],getcharid(0);
    		initnpctimer "EmpBrk#4";
    		sc_end SC_ALL;
    		warp "pvp_n_4-5",130,99;
    		end;
    	case 5:
    		close;
        }
    
    L_GMCP:
    	mes .n$;
    	mes "Hello "+strcharinfo(0)+",";
    	mes "what can i do for you today?";
    	next;
    	menu "Standard Menu",L_SM,"Set Prize",-,"Hourly Event",L_HE,"Set GM Control Panel Access Level",L_SGCPL,"Reset Offical Record",L_ROR,"Reset Rooms",L_RR,"Cancel",L_C;
    
    L_SP:
    	mes .n$;
    	mes "Allright, what would you like to do?";
    	next;
    	menu "Set Prize & Amount",-,"Enable / Disable Prize Distribution",L_EDPD,"Cancel",L_C;
    
    L_RP:
    	mes .n$;
    	mes "The current gloabl Prize and Amount is: "+$empbrk_amount+"x "+getitemname($empbrk_prize)+"";
    	mes "The current personal Prize and Amount is: "+$empbrk_amountp+"x "+getitemname($empbrk_prizep)+"";
    	next;
    	mes .n$;
    	mes "What would you like to do next?";
    	next;
    	menu "Set global Prize & Amount",-,"Set personal Prize & Amount",L_SPPA;
    
    L_RGP:
    	mes .n$;
    	mes "Ok, then please tell me now which Item you would like to set as global Prize if someone breaks the global Record.";
    	mes "And please remember that only numbers = Item ID's as values are allowed.";
    	next;
    	mes "Insert 0 to cancel.";
    	input .empbrk_prize;
    	next;
    	if(.empbrk_prize <= 0){
    		next;
    		goto L_SP;
    	}
    	query_sql "SELECT `id` FROM `item_db` WHERE `id` = '"+.empbrk_prize+"'",.id;
    	if(!.id){
    		mes .n$;
    		mes "I'm sorry but this Item doesn't exist!";
    		mes "Please try again.";
    		next;
    		goto L_RGP;
    	}
    	mes .n$;
    	mes "Ok, so the Prize will be "+getitemname(.empbrk_prize)+" , is that correct?";
    	next;
    	menu "No, that's wrong!",L_RGP,"Yes, that's correct!",-;
    
    L_RGA:
    	mes .n$;
    	mes "Good! Now please tell me how many pieces of this prize the new Emperium break Champion should get,";
    	mes "but remember for security reasons you can't enter a higher value than 100.";
    	next;
    	mes "Insert 0 to cancel.";
    	input .empbrk_amount;
    	next;
    	if(.empbrk_amount <= 0){
    		next;
    		goto L_SP;
    	}
    	if(.empbrk_amount >= 100){
    		mes .n$;
    		mes "I'm sorry but the entered Value exceeds the allowed amount!";
    		mes "Please try again.";
    		next;
    		goto L_RGA;
    	}
    	mes .n$;
    	mes "Ok, so the Amount of the Prize that will be given is "+.empbrk_amount+" , is that correct?";
    	next;
    	menu "No, that's wrong!",L_RGA,"Yes, that's correct!",-;
    
    	mes .n$;
    	mes "Great! So the Prize "+getitemname(.empbrk_prize)+" will be given away with an amount of "+.empbrk_amount+" to the one who breaks the current global Emperium Breack Record, is that correct?";
    	next;
    	menu "No, that's wrong!",L_SP,"Yes, that's correct!",-;
    
    	mes .n$;
    	mes "Allright, it's all set!";
    	set $empbrk_prize,.empbrk_prize;
    	set $empbrk_amount,.empbrk_amount;
    	next;
    	goto L_GMCP;
    
    L_SPPA:
    	mes .n$;
    	mes "Ok, then please tell me now which Item you would like to set as personal Prize if someone breaks his personal Record.";
    	mes "And please remember that only numbers = Item ID's as values are allowed.";
    	next;
    	mes "Insert 0 to cancel.";
    	input .empbrk_prizep;
    	next;
    	if(.empbrk_prizep <= 0){
    		next;
    		goto L_SP;
    	}
    	query_sql "SELECT `id` FROM `item_db` WHERE `id` = '"+.empbrk_prizep+"'",.idp;
    	if(!.idp){
    		mes .n$;
    		mes "I'm sorry but this Item doesn't exist!";
    		mes "Please try again.";
    		next;
    		goto L_SPPA;
    	}
    	mes .n$;
    	mes "Ok, so the Prize will be "+getitemname(.empbrk_prizep)+" , is that correct?";
    	next;
    	menu "No, that's wrong!",L_SPPA,"Yes, that's correct!",-;
    
    L_RPA:
    	mes .n$;
    	mes "Good! Now please tell me how many pieces of this prize the new Player should get,";
    	mes "but remember for security reasons you can't enter a higher value than 100.";
    	next;
    	mes "Insert 0 to cancel.";
    	input .empbrk_amountp;
    	next;
    	if(.empbrk_amountp <= 0){
    		next;
    		goto L_SP;
    	}
    	if(.empbrk_amountp >= 100){
    		mes .n$;
    		mes "I'm sorry but the entered Value exceeds the allowed amount!";
    		mes "Please try again.";
    		next;
    		goto L_RPA;
    	}
    	mes .n$;
    	mes "Ok, so the Amount of the Prize that will be given is "+.empbrk_amountp+" , is that correct?";
    	next;
    	menu "No, that's wrong!",L_RPA,"Yes, that's correct!",-;
    
    	mes .n$;
    	mes "Great! So the Prize "+getitemname(.empbrk_prizep)+" will be given away with an amount of "+.empbrk_amountp+" if someone breaks his personal Record, is that correct?";
    	next;
    	menu "No, that's wrong!",L_SPPA,"Yes, that's correct!",-;
    
    	mes .n$;
    	mes "Allright, it's all set!";
    	set $empbrk_prizep,.empbrk_prizep;
    	set $empbrk_amountp,.empbrk_amountp;
    	next;
    	goto L_GMCP;
    
    L_EDPD:
    	mes .n$;
    	mes "What would you like to do?";
    	next;
    	menu "Disable global Prize Distribution",-,"Enable global Prize Distribution",L_EGPD,"Disable personal Prize Distribution",L_DPPD,"Enable personal Prize Distribution",L_EPPD,"Cancel",L_C;
    
    	if($empbrk_przdg == 0){
    		mes .n$;
    		mes "Global Prize Distribution is already disabled!";
    		next;
    		goto L_EDPD;
    	}
    	mes .n$;
    	mes "Global Prize Distribution has been disabled!";
    	set $empbrk_przdg,0;
    	next;
    	goto L_GMCP;
    
    L_EGPD:
    	if($empbrk_przdg == 1){
    		mes .n$;
    		mes "Global Prize Distribution is already enabled!";
    		next;
    		goto L_EDPD;
    	}
    	mes .n$;
    	mes "Global Prize Distribution has been enabled!";
    	set $empbrk_przdg,1;
    	next;
    	goto L_GMCP;
    
    L_DPPD:
    	if($empbrk_przdp == 0){
    		mes .n$;
    		mes "Personal Prize Distribution is already disabled!";
    		next;
    		goto L_EDPD;
    	}
    	mes .n$;
    	mes "Personal Prize Distribution has been disabled!";
    	set $empbrk_przdp,0;
    	next;
    	goto L_GMCP;
    
    L_EPPD:
    	if($empbrk_przdp == 1){
    		mes .n$;
    		mes "Personal Prize Distribution is already enabled!";
    		next;
    		goto L_EDPD;
    	}
    	mes .n$;
    	mes "Personal Prize Distribution has been enabled!";
    	set $empbrk_przdp,1;
    	next;
    	goto L_GMCP;
    
    L_HE:
    	mes .n$;
    	mes "What would you like to do?";
    	next;
    	menu "Disable Hourly Event",-,"Enable Hourly Event",L_EHE,"Cancel",L_C;
    
    	if($empbrkrh == 0){
    		mes .n$;
    		mes "Hourly Event already is disabled!";
    		next;
    		goto L_HE;
    	}
    	mes .n$;
    	mes "Hourly Event has been disabled!";
    	hideoffnpc "Emperium Breaking Room";
    	set $empbrkh,0;
    	next;
    	goto L_GMCP;
    
    L_EHE:
    	if($empbrkh == 1){
    		mes .n$;
    		mes "Hourly Event already is enabled!";
    		next;
    		goto L_HE;
    	}
    	mes .n$;
    	mes "Hourly Event has been enabled!";
    	mapwarp "pvp_n_4-5","prontera",155,180;
    	stopnpctimer "EmpBrk#1";
    	stopnpctimer "EmpBrk#2";
    	stopnpctimer "EmpBrk#3";
    	stopnpctimer "EmpBrk#4";
    	killmonster "pvp_n_4-5","EmpBrk#1::OnEmpBrk";
    	killmonster "pvp_n_4-5","EmpBrk#2::OnEmpBrk";
    	killmonster "pvp_n_4-5","EmpBrk#3::OnEmpBrk";
    	killmonster "pvp_n_4-5","EmpBrk#4::OnEmpBrk";
    	cleararray $@empbrkr_occupied[0],0,4;
    	hideonnpc "Emperium Breaking Room";
    	set $empbrkh,1;
    	next;
    	goto L_GMCP;
    
    L_SGCPL:
    	mes .n$;
    	mes "What would you like to do?";
    	next;
    	menu "Set GM Control Panel Acces Level",-,"Cancel",L_C;
    
    	mes .n$;
    	mes "Allright, please insert now the GM Level at which Players / GM's should be able to enter the GM Control Panel.";
    	next;
    	mes .n$;
    	mes "Please note that the GM Level can't be lower than 40 and can't be above 99 as well for security reasons.";
    	input .gmcp;
    	next;
    	if(.gmcp <= 40 || .gmcp >= 99){
    		mes .n$;
    		mes "I'm sorry but you inserted an invalid Level!";
    		next;
    		goto L_SGCPL;
    	}
    	mes .n$;
    	mes "Allright, the new GM Control Panel access Level will be "+.gmcp+" , is that correct?";
    	next;
    	menu "No, that's wrong!",L_SGCPL,"Yes, that's correct!",-;
    
    	mes .n$;
    	mes "Great! It all has been set, so the new GM Control Panel Access Level will be "+.gmcp+" .";
    	set $empbrk_gm_restriction,.gmcp;
    	next;
    	goto L_GMCP;
    	
    L_RYR:
        mes .n$;
        mes "Are you sure you want to reset your record?";
    	next;
        menu "Yes",-,"No",L_C;
    
    	mes .n$;
    	mes "Your personal Record has been reset.";
        set empbrk_record,0;
    	close;
    
    L_ROR:
        mes .n$;
        mes "Are you sure you want to reset the official Record?";
    	next;
        menu "No",L_GMCP,"Yes",-;
    
    	mes .n$;
    	mes "It's done.";
        set $empbrk_record,0;
        set $empbrk_master$,"";
    	next;
    	goto L_GMCP;
    
    L_RR:
    	mes .n$;
        mes "Are you sure you want to reset the Emperium Breaking Rooms?";
    	next;
        menu "No",L_GMCP,"Yes",-;
    
    	mes "Rooms have been reset.";
    	mapwarp "pvp_n_4-5","prontera",155,180;
    	stopnpctimer "EmpBrk#1";
    	stopnpctimer "EmpBrk#2";
    	stopnpctimer "EmpBrk#3";
    	stopnpctimer "EmpBrk#4";
    	killmonster "pvp_n_4-5","EmpBrk#1::OnEmpBrk";
    	killmonster "pvp_n_4-5","EmpBrk#2::OnEmpBrk";
    	killmonster "pvp_n_4-5","EmpBrk#3::OnEmpBrk";
    	killmonster "pvp_n_4-5","EmpBrk#4::OnEmpBrk";
    	cleararray $@empbrkr_occupied[0],0,4;
    	next;
    	goto L_GMCP;
    
    L_C:
    	mes .n$;
    	mes "Bye!";
    	close;
    
    OnInit:
    	set .n$,"[Emperium Breaking Room]";
    	if(!$empbrk_gm_restriction){
    		set $empbrk_gm_restriction,40;
    	}
    	if($empbrkh == 1){
    		hideonnpc "Emperium Breaking Room";
    	}
    	end;
    }
    
    -	script	EmpBrk#1	-1,{
    
    OnTimer5000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"Get ready to break the Emperium!",bc_area;
    	end;
    
    OnTimer8000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"5",bc_area;
    	end;
    
    OnTimer9000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"4",bc_area;
    	end;
    
    OnTimer10000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"3",bc_area;
    	end;
    
    OnTimer11000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"2",bc_area;
    	end;
    
    OnTimer12000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"1",bc_area;
    	end;
    
    OnTimer13000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"GO!!!",bc_area;
    	monster "pvp_n_4-5",.xe,.ye,"Emperium",1288,1,"EmpBrk#1::OnEmpBrk";
    	end;
    
    OnTimer600000:
    	warpchar "prontera",155,180,$@empbrk_charid[0];
    	killmonster "pvp_n_4-5","EmpBrk#1::OnEmpBrk";
    	set $@empr_occupied[0],0;
    	stopnpctimer;
    	end;
    
    OnEmpBrk:
    	stopnpctimer;
    	set .current_time,getnpctimer(0,"EmpBrk#1");
    	set .new_time,.current_time - 13000;
    	if (.new_time < empbrk_record || empbrk_record == 0) {
    		areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"New Own Record!!!",bc_area;
    		if($empbrk_przdp == 1){
    			getitem $empbrk_prizep,$empbrk_amountp;
    		}
    		set empbrk_record,.new_time;
    	}
    	if (.new_time < $empbrk_record || $empbrk_record == 0) {
    		announce strcharinfo(0)+" is now the new No. 1 Emperium Breaker!!",bc_all;
    		if($empbrk_przdg == 1){
    			getitem $empbrk_prize,$empbrk_amount;
    		}
    		set $empbrk_record,.new_time;
    		set $empbrk_master$,strcharinfo(0); 
    	}
    	set .m,.new_time / 60000;
    	set .s,.new_time / 1000;
    	set .ms,.new_time / 10000;
    	set $@empr_occupied[0],0;
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"Your time is "+.m+"m "+.s+"s "+.ms+"ms",bc_area;
    	warpchar "prontera",155,180,$@empbrk_charid[0];
    	end;
    
    OnInit:
    	set .x1,94;
    	set .y1,128;
    	set .x2,105;
    	set .y2,139;
    	set .xe,100;
    	set .ye,134;
    	end;
    }
    
    pvp_n_4-5,99,125,0	script	EmpBrk#1_touch	-1,3,1,{
    
    OnTouch:
    	mes "[Emperium Breaking Room]";
    	mes "You're not allowed to exit your square!";
    	close2;
    	stopnpctimer "EmpBrk#1";
    	warp "prontera",155,180;
    	killmonster "pvp_n_4-5","EmpBrk#1::OnEmpBrk";
    	set $@empr_occupied[0],0;
    	end;
    }
    
    -	script	EmpBrk#2	-1,{
    
    OnTimer5000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"Get ready to break the Emperium!",bc_area;
    	end;
    
    OnTimer8000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"5",bc_area;
    	end;
    
    OnTimer9000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"4",bc_area;
    	end;
    
    OnTimer10000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"3",bc_area;
    	end;
    
    OnTimer11000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"2",bc_area;
    	end;
    
    OnTimer12000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"1",bc_area;
    	end;
    
    OnTimer13000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"GO!!!",bc_area;
    	monster "pvp_n_4-5",.xe,.ye,"Emperium",1288,1,"EmpBrk#2::OnEmpBrk";
    	end;
    
    OnTimer600000:
    	warpchar "prontera",155,180,$@empbrk_charid[1];
    	killmonster "pvp_n_4-5","EmpBrk#2::OnEmpBrk";
    	set $@empr_occupied[1],0;
    	stopnpctimer;
    	end;
    
    OnEmpBrk:
    	stopnpctimer;
    	set .current_time,getnpctimer(0,"EmpBrk#2");
    	set .new_time,.current_time - 13000;
    	if (.new_time < empbrk_record || empbrk_record == 0) {
    		areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"New Own Record!!!",bc_area;
    		if($empbrk_przdp == 1){
    			getitem $empbrk_prizep,$empbrk_amountp;
    		}
    		set empbrk_record,.new_time;
    	}
    	if (.new_time < $empbrk_record || $empbrk_record == 0) {
    		announce strcharinfo(0)+" is now the new No. 1 Emperium Breaker!!",bc_all;
    		if($empbrk_przdg == 1){
    			getitem $empbrk_prize,$empbrk_amount;
    		}
    		set $empbrk_record,.new_time;
    		set $empbrk_master$,strcharinfo(0); 
    	}
    	set .m,.new_time / 60000;
    	set .s,.new_time / 1000;
    	set .ms,.new_time / 10000;
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"Your time is "+.m+"m "+.s+"s "+.ms+"ms",bc_area;
    	warpchar "prontera",155,180,$@empbrk_charid[1];
    	set $@empr_occupied[1],0;
    	end;
    
    OnInit:
    	set .x1,60;
    	set .y1,94;
    	set .x2,71;
    	set .y2,105;
    	set .xe,65;
    	set .ye,99;
    	end;
    }
    
    pvp_n_4-5,74,99,0	script	EmpBrk#2_touch	-1,1,3,{
    
    OnTouch:
    	mes "[Emperium Breaking Room]";
    	mes "You're not allowed to exit your square!";
    	close2;
    	stopnpctimer "EmpBrk#2";
    	warp "prontera",155,180;
    	killmonster "pvp_n_4-5","EmpBrk#2::OnEmpBrk";
    	set $@empr_occupied[1],0;
    	end;
    }
    
    -	script	EmpBrk#3	-1,{
    
    OnTimer5000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"Get ready to break the Emperium!",bc_area;
    	end;
    
    OnTimer8000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"5",bc_area;
    	end;
    
    OnTimer9000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"4",bc_area;
    	end;
    
    OnTimer10000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"3",bc_area;
    	end;
    
    OnTimer11000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"2",bc_area;
    	end;
    
    OnTimer12000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"1",bc_area;
    	end;
    
    OnTimer13000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"GO!!!",bc_area;
    	monster "pvp_n_4-5",.xe,.ye,"Emperium",1288,1,"EmpBrk#3::OnEmpBrk";
    	end;
    
    OnTimer600000:
    	warpchar "prontera",155,180,$@empbrk_charid[2];
    	killmonster "pvp_n_4-5","EmpBrk#3::OnEmpBrk";
    	set $@empr_occupied[2],0;
    	stopnpctimer;
    	end;
    
    OnEmpBrk:
    	stopnpctimer;
    	set .current_time,getnpctimer(0,"EmpBrk#3");
    	set .new_time,.current_time - 13000;
    	if (.new_time < empbrk_record || empbrk_record == 0) {
    		areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"New Own Record!!!",bc_area;
    		if($empbrk_przdp == 1){
    			getitem $empbrk_prizep,$empbrk_amountp;
    		}
    		set empbrk_record,.new_time;
    	}
    	if (.new_time < $empbrk_record || $empbrk_record == 0) {
    		announce strcharinfo(0)+" is now the new No. 1 Emperium Breaker!!",bc_all;
    		if($empbrk_przdg == 1){
    			getitem $empbrk_prize,$empbrk_amount;
    		}
    		set $empbrk_record,.new_time;
    		set $empbrk_master$,strcharinfo(0); 
    	}
    	set .m,.new_time / 60000;
    	set .s,.new_time / 1000;
    	set .ms,.new_time / 10000;
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"Your time is "+.m+"m "+.s+"s "+.ms+"ms",bc_area;
    	warpchar "prontera",155,180,$@empbrk_charid[2];
    	set $@empr_occupied[2],0;
    	end;
    
    OnInit:
    	set .x1,94;
    	set .y1,60;
    	set .x2,105;
    	set .y2,71;
    	set .xe,99;
    	set .ye,65;
    	end;
    }
    
    pvp_n_4-5,100,74,0	script	EmpBrk#3_touch	-1,3,1,{
    
    OnTouch:
    	mes "[Emperium Breaking Room]";
    	mes "You're not allowed to exit your square!";
    	close2;
    	stopnpctimer "EmpBrk#3";
    	warp "prontera",155,180;
    	killmonster "pvp_n_4-5","EmpBrk#3::OnEmpBrk";
    	set $@empr_occupied[2],0;
    	end;
    }
    
    -	script	EmpBrk#4	-1,{
    
    OnTimer5000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"Get ready to break the Emperium!",bc_area;
    	end;
    
    OnTimer8000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"5",bc_area;
    	end;
    
    OnTimer9000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"4",bc_area;
    	end;
    
    OnTimer10000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"3",bc_area;
    	end;
    
    OnTimer11000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"2",bc_area;
    	end;
    
    OnTimer12000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"1",bc_area;
    	end;
    
    OnTimer13000:
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"GO!!!",bc_area;
    	monster "pvp_n_4-5",.xe,.ye,"Emperium",1288,1,"EmpBrk#4::OnEmpBrk";
    	end;
    
    OnTimer600000:
    	warpchar "prontera",155,180,$@empbrk_charid[3];
    	killmonster "pvp_n_4-5","EmpBrk#4::OnEmpBrk";
    	set $@empr_occupied[3],0;
    	stopnpctimer;
    	end;
    
    OnEmpBrk:
    	stopnpctimer;
    	set .current_time,getnpctimer(0,"EmpBrk#4");
    	set .new_time,.current_time - 13000;
    	if (.new_time < empbrk_record || empbrk_record == 0) {
    		areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"New Own Record!!!",bc_area;
    		if($empbrk_przdp == 1){
    			getitem $empbrk_prizep,$empbrk_amountp;
    		}
    		set empbrk_record,.new_time;
    	}
    	if (.new_time < $empbrk_record || $empbrk_record == 0) {
    		announce strcharinfo(0)+" is now the new No. 1 Emperium Breaker!!",bc_all;
    		if($empbrk_przdg == 1){
    			getitem $empbrk_prize,$empbrk_amount;
    		}
    		set $empbrk_record,.new_time;
    		set $empbrk_master$,strcharinfo(0); 
    	}
    	set .m,.new_time / 60000;
    	set .s,.new_time / 1000;
    	set .ms,.new_time / 10000;
    	areaannounce "pvp_n_4-5",.x1,.y1,.x2,.y2,"Your time is "+.m+"m "+.s+"s "+.ms+"ms",bc_area;
    	warpchar "prontera",155,180,$@empbrk_charid[3];
    	set $@empr_occupied[3],0;
    	end;
    
    OnInit:
    	set .x1,128;
    	set .y1,94;
    	set .x2,139;
    	set .y2,105;
    	set .xe,134;
    	set .ye,99;
    	end;
    }
    
    pvp_n_4-5,125,100,0	script	EmpBrk#4_touch	-1,1,3,{
    
    OnTouch:
    	mes "[Emperium Breaking Room]";
    	mes "You're not allowed to exit your square!";
    	close2;
    	stopnpctimer "EmpBrk#4";
    	warp "prontera",155,180;
    	killmonster "pvp_n_4-5","EmpBrk#4::OnEmpBrk";
    	set $@empr_occupied[3],0;
    	end;
    }
    
    pvp_n_4-5	mapflag	nowarp
    pvp_n_4-5	mapflag	nowarpto
    pvp_n_4-5	mapflag	notrade
    pvp_n_4-5	mapflag	nochat
    pvp_n_4-5	mapflag	nocommand
    pvp_n_4-5	mapflag	novending
    pvp_n_4-5	mapflag	gvg_castle
    pvp_n_4-5	mapflag	nobranch
    pvp_n_4-5	mapflag	noicewall
    pvp_n_4-5	mapflag	noloot
    pvp_n_4-5	mapflag	nomemo
    pvp_n_4-5	mapflag	nosave
    pvp_n_4-5	mapflag	noreturn
    

    thanks for taking time on reading this 

  2. Thanks i will read that after i return from the university, now i have to go to sleep z_Z thanks again! !

    You need to have PERL installed, to support RegX type commands. Also, I suggest using the Disguise NPC that exists in rAthena SVN, as it is far more standardized, and updated. Also, that script is almost a word for word copy of the original script I created back in the past. And I know it's not an original, because I created the first one.

     

    huh i tryied the default disguise evento but when i click it, nothings happens (im lvl 99 [administrador, founder and owner]) ):

  3. Hello ther,e i just was installing some new npc eventos and i got some errors );

    i got this 2, dunno how to fix them, my lvl scriptint is pretty low );

     

    mdlWsBD.png

    and

    nsyh.png

     

    this is my script

    /*//----------------------------------------------------------------//
    //----------------Scripted by Spera---------------------------------//
    //------------------FinalStrikeRO-----------------------------------//
    //--------------------Disguise Event NPC v2-------------------------//
    /-------------------------------------------------------------------//*/
    
    
    quiz_02,355,384,5	script	Disguise CP		968,{
    
    if (getgmlevel()<20)
    {
    	mes "^3399FF[Disguise CP]^000000";	
    	mes "Sorry, you are not a GM!";
    	close;
    }
    
    mes "^3399FF[Disguise CP]^000000";	
    mes "Hello GameMaster!";
    mes "What do you want to do?";
    switch(select("Start Event:Stop Event:Set number of rounds[^E50000"+$guessrounds+"^000000]:Set prize^E50000 ["+getitemname($guessprize)+"]^000000 ^E50000 ["+ $guessprizecount + "]^000000:Nothing"))
    {
    	case 1: 
    	{
    		next;
    		mes "^3399FF[Disguise CP]^000000";
    		mes "Please confirm by typing START."; 
    		input .@confirm$;          
    		if (.@confirm$ == "START") 
    		{
    			donpcevent "guessAnnouncer::OnGMStart"; 
    			close;
    		}
    		mes "Confirmation failed";
    		close;
    		break;
    	}
    	case 2:
    	{
    		next;
    		mes "^3399FF[Disguise CP]^000000";
    		mes "Please confirm by typing STOP."; 
    		input .@confirm$;          
    		if (.@confirm$ == "STOP") 
    		{
    			donpcevent "guessAnnouncer::OnGMStop";
    			close;
    		}
    		mes "Confirmation failed";
    		close;
    		break;
    		
    	}
    	
    	case 3:
    	{
    		next; mes "^3399FF[Disguise CP]^000000";
    		mes "Please type in the new number."; 
    		input $guessrounds; 
    		if ($guessrounds > 30) set $guessrounds, 30;
    		else if ($guessrounds < 1) set $guessrounds, 1;
    		close;
    	}
    	
    	case 4:
    	{
    		next; mes "^3399FF[Disguise CP]^000000";
    		mes "Please type in the new prize id."; 
    		input .@guessprizeid; 
    		if (getitemname(.@guessprizeid) == "null" || getitemname(.@guessprizeid) == "") {next; mes "^3399FF[Disguise CP]^000000"; mes "Error"; mes "This item does not exist in the database..."; close;}
    		set $guessprize, .@guessprizeid;
    		next; mes "^3399FF[Disguise CP]^000000";
    		mes "Please type in the amount."; 
    		input .@guessprizeamount;
    		if (!.@guessprizeamount) set .@guessprizeamount,1 ;
    		set $guessprizecount,.@guessprizeamount; 
    		next; mes "^3399FF[Disguise CP]^000000";
    		mes "Prize has been set to ^E50000 "+ getitemname($guessprize)+ "^000000 and the amount to ^E50000 " +$guessprizecount+"^000000";
    		close;
    	}
    	
    					
    	case 5:
    	{
    		next; mes "^3399FF[Disguise CP]^000000";
    		mes "Good bye"; 
    		close;
    	}
    
    }
    
    
    }
    
    
    
    
    
    
    
    
    quiz_02,336,346,4	script	Disguise NPC		933,{
    
    if (!$guessbegin)
    {
    	mes "^3399FF[Disguise NPC]^000000";
    	mes "The event is going to start soon!";
    	close;
    }
    end;
    
    OnStart:
    	set $guessbegin, 1;
    	set .DisguiseWon, 0;
    	if (!$DisguiseRound)
    	{
    		npctalk "Alright. Let's start this game!";
    		sleep 2000;
    		npctalk "But first I will explain the rules.";
    		sleep 2000;
    		npctalk "I am going to disguise into a random monster.";
    		sleep 2000;
    		npctalk "You have to guess the monster's name and shout it out.";
    		sleep 2000;
    		npctalk "Don't bother about the use of capital and small initial letters.";
    		sleep 2000;
    		npctalk "Now get ready!";
    		sleep 5000;
    	}
    	else if ($DisguiseRound < $guessrounds-1)
    	{
    		npctalk "Get ready for the next round.";
    		setnpctimer 0;
    		sleep 8000;
    	}
    	else
    	{	
    		npctalk "Last round now!";
    		sleep 2000;
    		npctalk "Get ready!";
    		sleep 6000;
    	}
    
    	do
    	{
    		set .@guessrepeat, 0;
    		set $monster, 1000 + rand(1,950);
    		for (set .@k, 0; .@k <getarraysize($Forbidden); set .@k, .@k+1)
    		{
    			if ($monster == $Forbidden[.@k]) 
    			{
    				set .@guessrepeat, 1;
    				break;
    			}
    		}
    	}
    	while (.@guessrepeat);
    	setnpctimer 0;
    	initnpctimer;
    	setnpcdisplay "Disguise NPC",$monster;
    	set $MonsterName$, strmobinfo(1,$monster);
    	defpattern 1, "([^:]+):.*\\s"+$MonsterName$+"(.*)", "winround";
    	activatepset 1;
    	npctalk "What's my name?";
    	sleep 3000;
    	npcwalkto 102,103;
    	sleep 2000;
    	npcwalkto 102,99;
    	end;
    	
    	OnTimer5000:
    		if (!.DisguiseWon)
    		{
    			sleep 3000;
    			npcwalkto 102,103;
    			sleep 2000;
    			npcwalkto 102,99;
    
    			if (!$guessactive)  {disablenpc "guesswarp"; disablenpc "Disguise NPC"; end;}
    		}
    		end;
    
    
    	OnTimer15000:
    		if (!.DisguiseWon) 
    		{
    			sleep 3000;
    			npcwalkto 102,103;
    			sleep 2000;
    			npcwalkto 102,99;
    		}
    		end;
    
    	OnTimer25000:
    		if (!.DisguiseWon) 
    		{
    			npctalk "You get 10 more seconds to guess my name.";
    			sleep 3000;
    			npcwalkto 102,103;
    			sleep 2000;
    			npcwalkto 102,99;
    		}
    		end;
    
    	OnTimer35000:
    		if (!.DisguiseWon)
    		{ 
    			npctalk "Round is over.";
    			if (!$guessactive)  {disablenpc "guesswarp"; disablenpc "Disguise NPC"; end;}
    			set $DisguiseRound, $DisguiseRound + 1;
    			deletepset 1;
    			sleep 3000;
    			npctalk $MonsterName$ + " would have been the correct answer.";
    			sleep 5000;
    			if ($DisguiseRound >= $guessrounds)
    			{
    				set $DisguiseRound, 0;
    				sleep 3000;
    				npctalk "Event is over now!";
    				sleep 3500;
    				npctalk "See ya!";
    				sleep 2000;
    				emotion 12;
    				sleep 1000;
    				set $guessactive, 0;
    				mapwarp "quiz_02.gat","quiz_02",336,346;
    				setnpcdisplay "Disguise NPC",933;
    				disablenpc "Disguise NPC";
    				end;
    			}
    			goto OnStart;
    		}
    		end;
    
    	winround:
    		setnpctimer 0;
    		deletepset 1;
    		set .DisguiseWon, 1;
    		set $DisguiseRound, $DisguiseRound + 1;
    		npctalk strcharinfo(0) + " got my right name!";
    		getitem $guessprize, $guessprizecount;
    		sleep2 3000;
    		npctalk $MonsterName$ + " is the correct answer.";
    		if (!$guessactive)  {disablenpc "guesswarp"; disablenpc "Disguise NPC"; end;}
    		if ($DisguiseRound >= $guessrounds)
    			{
    				set $DisguiseRound, 0;
    				set $guessactive, 0;
    				sleep 3000;
    				npctalk "Event is over now!";
    				sleep 3500;
    				npctalk "See ya!";
    				sleep 2000;
    				emotion 12;
    				sleep 1000;
    				mapwarp "quiz_02.gat","quiz_02",336,346;
    				setnpcdisplay "Disguise NPC",933;
    				disablenpc "Disguise NPC";
    				end;
    			}
    		sleep 5000;
    		goto OnStart;
    		end;
    
    	
    
    }
    
    //-----------------------------------------------------------------------------------
    //-----------------------------------------------------------------------------------
    
    -	script	guessAnnouncer	-1,{
    
    
    OnGMStart:
    	if ($guessactive) end;
    	set $guessactive, 1;
    	announce "The server is starting a Disguise Event now!",0;
    	set $guessbegin, 0;
    	sleep 3000;
    	if (!$guessactive) end;
    	announce "If you want to join, come to prontera, head downwards and enter the warp portal.",0;
    	enablenpc "guesswarp";
    	enablenpc "Disguise NPC";
    	sleep 3000;
    	announce "Number of Rounds: "+$guessrounds,0;
    	sleep 2000;
    	announce "Prize: "+ getitemname($guessprize) + " x " + $guessprizecount,0;
    	sleep 2000;
    	if (!$guessactive) {disablenpc "guesswarp"; disablenpc "Disguise NPC"; end;}
    	announce "The portal is going to close in one minute.",0;  
    	sleep 60000;
    	if (!$guessactive) {disablenpc "guesswarp"; disablenpc "Disguise NPC"; end;}
    	announce "The portal has been closed.",0;
    	disablenpc "guesswarp";
    	set $DisguiseRound, 0;
    	sleep 5000;
    	if (!$guessactive) {disablenpc "Disguise NPC"; end;}
    	if(getmapusers("quiz_02") == 0) 
    	{
    		disablenpc "Disguise NPC";
    		set $guessactive, 0;
    		end;
    	}
    
    	donpcevent "Disguise NPC::OnStart";
    	end;
    
    OnGMStop:
    		if ($guessactive)
    		{
    			set $guessactive, 0;
    			announce "The disguise event has been stopped.",0;
    			set $DisguiseRound, 0;
    			mapwarp "quiz_02.gat","quiz_02",336,346;
    			setnpcdisplay "Disguise NPC",933;
    			disablenpc "Disguise NPC";
    			disablenpc "guesswarp";
    		}
    		end;
    
    
    OnClock0100:
    OnClock0300:
    OnClock0500:
    OnClock0700:
    OnClock0900:
    OnClock1100:
    OnClock1300:
    OnClock1500:
    OnClock1700:
    OnClock1833:
    OnClock2000:
    OnClock2205:
    	if ($guessactive) end;
    	set $guessactive, 1;
    	announce "The server is starting a Disguise Event now!",0;
    	set $guessbegin, 0;
    	sleep 3000;
    	if (!$guessactive) end;
    	announce "If you want to join, come to prontera, head downwards and enter the warp portal.",0;
    	enablenpc "guesswarp";
    	enablenpc "Disguise NPC";
    	sleep 2000;
    	announce "Prize: "+ getitemname($guessprize) + " x " + $guessprizecount,0;
    	sleep 2000;
    	if (!$guessactive)  {disablenpc "guesswarp"; disablenpc "Disguise NPC"; end;}
    	announce "The portal is going to close in one minute.",0;  
    	sleep 60000;
    	if (!$guessactive)  {disablenpc "guesswarp"; disablenpc "Disguise NPC"; end;}
    	announce "The portal has been closed.",0;
    	disablenpc "guesswarp";
    	sleep 5000;
    	if (!$guessactive)  {disablenpc "Disguise NPC"; end;}
    	announce "Next Event will start in 2 hours.",0;
    	set $DisguiseRound, 0;
    	if(getmapusers("quiz_02") == 0) 
    	{
    		disablenpc "Disguise NPC";
    		set $guessactive, 0;
    		end;
    	}
    
    	donpcevent "Disguise NPC::OnStart";
    	end;
    
    OnInit:
    	disablenpc "Disguise NPC";
    	disablenpc "guesswarp";
    	set $guessactive, 0;
    	setarray $Forbidden[0],1003,1006,1017,1021,1022,1027,1043,1136,1137,1168,1171,1172,1173,1181,1210,1217,1218,1223,1284,1325,1326,1327,1328,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1407,1411,1414,1496,1501,1900,1948,1892,1949,1950,1983,1984,2010,1003,1006,1017,1021,1022,1027,1043,1075,1136,1137,1168,1171,1172,1173,1181,1210,1222,1223,1224,1225,1226,1227,1228,1233,1284,1407,1411,1414,1496,1501,1900,1996,2002,2003,2004,2005,2006,2007,2011,2012,2025,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2075,2076,2077,2078,2079,2080,2081,2084,2093,2094,2095,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,1900,1901,1902,1903,1237,1239,1145,1175,1209,1841,1842,1843,1844,3014,3001,3002,2114,2115,2117,2118,2119,2120,6049,6050,6051,6052,2200,2205,2207;
    
    }
    
    //-----------------------------------------------------------------------------------
    //------------------Warp Portal------------------------------------------------------
    izlude,109,153,0	warp	guesswarp	2,2,quiz_02,342,346	
    //-----------------------------------------------------------------------------------
    //------------------Map Flags--------------------------------------------------------
    quiz_02	mapflag	nowarpto
    quiz_02	mapflag	noskill
    quiz_02	mapflag	nosave
    quiz_02	mapflag	nomemo
    quiz_02	mapflag	noteleport
    quiz_02	mapflag	nowarp
    //-----------------------------------------------------------------------------------
    

    totally dunno what to do, any help please ):

  4.  

    There is another post for an eathena topic that shows 2 modification, i need just to modify /src/common/mmo.h

    or also both /src/common/mmo.h and /src/char/int_guild.c ?

     

    I use client 2012-04-10aRagexeRE_J, is there a diff that can suppor that?

     

      thanks again

  5. Well, when i used to run eathena, i was able to create a guild with spaces typing this command

    /guild "guild name with " and spaces"
    

    and used to work, but nwo on rathena my players and i can not do that anymore, they and i have to create the guild name by something like this

    /guild GuildNameNoSpaces
    

    so i want to know how to allow them to use " " in order to create guilds name with spaces.

     

     

    This is the main question

     

    How to reduce the capacity of new guilds to 1?

     

    i want them to start with just 1 player, and then make the skill "guild extention" to be able to raise it just 1 lvl, so the maxium guild capacity for all would be 7 players, i know it has something to do with the SRc but, im not sure what to change ):

     

    if more info neede i will add it

    thank you guys! and sorry my english, not my natal lenguage

  6. I just want a script that gives a reward to the players every day, easy to use because i'm so noob unskilled on the script thing.

    I found some scripts that gives reward per hour, day or wekk etc but i just don't get it, if it's posible, i would love a simple and basic script with just that characteriscts (sorry my english)

     

    Also, a npc that gives a welcome pack to the new players, because sometimmes im not online and new players come to my server but there is no gm to ask for a welcome pack, thanks again i really apreciated this

  7. Since my GM hlepers and I can't make a custom BG to addapt to my server i just was wondering if someone would make me one or just tell me how to change some the correct settings, i jsut need this:

     

    -Up to lvl 255

    -Prize of medals: winner gets 20 (20 valor and 20 bravery), looser gets 12 (12 valor and 12 bravery)

    -VS Mode: 3vs3, 5vs5 and 10vs10

     

    it's ok if it's tierra or flavius

     

    por kvm i just want to make it 7vs7 with more points, arround the double or more, it's for a custom high rate server

     

    i use rAthena pre-renewall

     

    if more info needed i will just add it

     

    sorry my english im not from usa or england (ta tha..(?))

     

    thank you so much!

  8. Well, i want the Diabolus Robe being able to equip to every class, and i change it so it can, but when i try to equip it on, this messages appear in red and does not allow me to equip it

     

    Cannot be worn durin current status

     

    this is my script

    2374,Diabolus_Robe,Diabolus Robe,5,20,,300,,6,,1,0xFFFFFFFF,2,2,16,,55,1,0,{ bonus bMaxSP,150; bonus bMdef,5; bonus bHealPower,6; bonus bDelayRate,-10; },{},{}
    

    what's wrong? thank you all! if more info neede, i will add it 

     

    sorry my english, not my natural lenguage

  9. Well i just noticed that there are some errors on items description, being too lon description, i right click them, my client crashes, so, how to fix it? well, it gets fixed by reducing the text description thing, the real question is, how many of this items exists? that would help alot to reduce the description of those items and prevent future crashes, please help (?)

     

    Some examples:

    Book of Death [2]

    Lever action riffle[?]

     

    any more please?

  10. Well, im having a real big problem with my players, most of them can not update, or does not have an updated kRo, so, they are quiting/login-less because of this error, they can not open storage, see other players pet acces etc., so i tought that, for those players, i can make a GRF that has just the updated storage and pet sprites so they won't get any error.

     

    Just asking, to fix those errors, wich folders should i add to this GRF project?

     

    please i need help, most of my players are quiting dor these error, i once had around 30 ( i know is not many players, but that is how my server is getting bigger) and now i just hace around 11-15 players daily. I know that in the future they will get errors, but for now, i need to fix them, because they are the more used things. 

     

    Thanks again, i just need to know the folders wich i have to extract from my updated kRo grf no give them an updated time.

     

    May i ask for one pre-made? just asking, if not, no problem i can do it by myself, thanks again!

  11. I'm runing rAthena pre-renewall, and just wanted to allow ninjas to change job and became kageoru & oboro, but the job is bugged, at level 84 they just reach 200 bas hp and 1 sp, plus, they can not raise stats ):

    i don't know why, some help please

     

    here is a pic of my GM char

    j2rs.pngnotice the low HP and SP ):

     

    also, here is a pic of a player

    cXO3sKn.pngnotice that at lvl 82 it oly has that low hp and sp

     

    please help me ): thanks in advice!

  12. Correct lady(you are not telling your gender so i will suppouse depending on your profile picture), afetr i did what michaelsoftman told me, ./athena-start had no permission, so i just chmod +x athena-start and everything went fine after that

    i did not know about the check_files() not being recognize thing, thank you too, in the future i will not have this errores anymore :)

  13. I have problems with the DB, i jsut changed eathena to rathena

     

    the problem is that mysql is not reading some DBs

     

    this is the example of a player

    he also does not have any item in its storage and cart and invetory

     

    s175.jpg

     

    i tryied to import de DB that i saved but is not working ;-;

     

    i got this errors

     

    storage

    [Err] 1062 - Duplicate entry '21448' for key 'PRIMARY'
    [Err] INSERT INTO `storage` (`id`, `account_id`, `nameid`, `amount`, `equip`, `identify`, `refine`, `attribute`, `card0`, `card1`, `card2`, `card3`, `expire_time`) VALUES (21448, 2000119, 4116, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0);
    [Msg] Finished - Unsuccessfully
    --------------------------------------------------
    
    

    inventory

    [Err] 1062 - Duplicate entry '82121' for key 'PRIMARY'
    [Err] INSERT INTO `inventory` (`id`, `char_id`, `nameid`, `amount`, `equip`, `identify`, `refine`, `attribute`, `card0`, `card1`, `card2`, `card3`, `expire_time`) VALUES (82121, 150482, 2528, 1, 4, 1, 4, 0, 4133, 0, 0, 0, 0);
    [Msg] Finished - Unsuccessfully
    --------------------------------------------------
    
    

    cart_inventory

    [Err] 1146 - Table 'ragnarok.cart_inventory' doesn't exist
    [Err] INSERT INTO `cart_inventory` (`id`, `char_id`, `nameid`, `amount`, `equip`, `identify`, `refine`, `attribute`, `card0`, `card1`, `card2`, `card3`, `expire_time`) VALUES (1, 150051, 714, 150, 0, 1, 0, 0, 0, 0, 0, 0, 0);
    [Msg] Finished - Unsuccessfully
    --------------------------------------------------
    
    

    this is my sql tables

    AYNJk36.png

     

    please help ):

     

     

    edit:

    solved

    how?

    i had the wrong name of a table in mysql so i just change it

    the last name afert "bound" table was wrong, so i just changed its name to unique_id and it worked fine

    hope it helps in the future!

    thanks anyway for reading this :)

×
×
  • Create New...