Jump to content

Fae

Members
  • Posts

    14
  • Joined

  • Last visited

Posts posted by Fae

  1. After the Patch of Rathena i got this error,

    did the change the instance_create thing?

    when i click the "Open the Dimensional Portal"

    the error will appear, and the reservation is Failed

    2hguu76.png

     

    never mind as i can see the instances_db is updated

    26,Nightmarish Jitterbug,3300,300,1@jtb,16,18,1@jtb

    they put IdleTimeOut

    // Structure of Database:
    // ID,Name,LimitTime,IdleTimeOut,EnterMap,EnterX,EnterY,Map2,...,Map255

    thanks anyway ^^

  2.  

    Use constant name instead if int for getequipcardid

    https://rathena.org/board/topic/105842-eqi-constant-refactor/

    getequipcardid(5... -> getequipcardid(EQI_GARMENT...
    
        @card1 = getequipcardid(5,0);
        @card2 = getequipcardid(5,1);
        @card3 = getequipcardid(5,2);
        @card4 = getequipcardid(5,3);
    
    are you referring to this code?
    
    thanks
    

    ok thanks for the info bro ^^

    Thanks i change it in the update location number ^^

  3. can someone know what is being change in the updated rathena client that make this npc not working?

     

    //===== rAthena Script =======================================
    //= Unofficial Fallen Angel Wing (FAW) Enchants
    //===== By: ==================================================
    //= Nerfwood
    //===== Current Version: =====================================
    //= 1.0
    //===== Compatible With: =====================================
    //= rAthena Project
    //===== Description: =========================================
    //= Enchants FAW as per iROWiki's information
    //= Dialogue are unofficial
    //===== Additional Comments: =================================
    //= 1.0 First Version
    //============================================================
    
    //Decreasing Chance of Enchantment
    // 60% low, 30% mid, 10% high for 1st & 2nd enchant slot
    //40% low, 30% mid, 20% high, 10% special for 3rd enchant slot
    function	script	EnchantStat_1	{
    
    	.chance = rand(1,10);
    	
    	if(@card2 && @card3) { //For 4th Slot aka 3rd Enchant Slot
    		
    		if(.chance<5) .x=0; 
    		else if(.chance<7) .x=1; 
    		else if(.chance<9) .x=2; 
    		else .x=3;
    		
    	}
    	else {	//For 2nd and 3rd card slot aka 1st and 2nd Enchant Slot
    
    		if(.chance<7) .x=0; 
    		else if(.chance<10) .x=1; 
    		else .x=2; 
    	}
    	return getelementofarray(getvariableofnpc( getd(".enc" + getarg(0) )  , "Valkyrie#faw"), .x );
    	
    }
    
    
    
    	
    //Equal Chance of Enchanting	
    function	script	EnchantStat_0	{
    	if(@card2 && @card3)
    		return  getelementofarray(getvariableofnpc( getd(".enc" + getarg(0) )  , "Valkyrie#faw"), rand(0,3) );
    	else
    		return  getelementofarray(getvariableofnpc( getd(".enc" + getarg(0) )  , "Valkyrie#faw"), rand(0,2) );
    		
    }
    
    
    //=======MAIN NPC
    
    mall01,120,136,3	script	Valkyrie#faw	403,{
    	mes .npc$;
    	mes "I am here to enchant the",
    		"magnificent ^000099Fallen Angel Wing^000000.",
    		"Would you like to enchant yours?";
    	if(countitem(2589)) {
    		set .@menu$, "Enchant Fallen Angel Wing";
    	}
    	else .@menu$="";
    	next;
    	switch(select("Information:" + .@menu$ + ":Reset Enchantment"))
    	{
    		case 1: goto OnInformation;
    		case 2: goto OnEnchantNow;
    		case 3: goto OnResetEnchant;
    		default: close;
    	}
    
    OnInformation:
    	mes .npc$,
    		"I can enchant your",
    		"^000099Fallen Angel Wing^000000 for",
    		(.cost?callfunc("F_InsertComma",.cost)+"z":"free")+" to give it various.", 
    		"effects. In fact, I can do it",
    		"twice if its refinement level is",
    		"+7 ~ +8, and thrice if its",
    		"+9 and above.";
    	next;
    	mes .npc$,
    		"The 3rd enchantment has a",
    		"chance to be more powerful",
    		"than the first two.";
    	next;
    	mes .npc$,
    		"There is no chance to",
    		"fail, so enchant away",
    		"as much as you like.";
    	next;	
    	mes .npc$,
    		"But if you're not happy",
    		"with the results, you can",
    		"reset the enchantments",
    		"for ^009900"+ callfunc("F_InsertComma",.cost2) + "z^000000.";
    	next;
    	mes .npc$,
    		"That's about everything.";
    		close;
    		
    OnEnchantNow:	
    	mes .npc$;
    	if( (getequipid(EQI_GARMENT)!=2589) ) {
    		mes "Please equip your",
    			"^000099Fallen Angel Wing^000000 if",
    			"you want to have it enchanted.";
    		if(!.autoequip) close;	
    		next;
    		if(select("Equip:Don't Equip")==2) close;
    		equip 2589;
    		mes .npc$;
    	}
    	.@refeq = getequiprefinerycnt(EQI_GARMENT);
    	if(.@refeq<7) .@refeq2 = 1;
    	else if(.@refeq>8) .@refeq2 = 3;
    	else .@refeq2 = 2;
    	
    	mes "You have a ^000099+" +.@refeq + " Fallen Angel Wing^000000.",
    		"It can have a total of " + .@refeq2 + " enchantment"  +( .@refeq2>1?"s.":".")+" Please";
    	mes "select your preferred","enchantment.";
    	next;
    	setd ".@enc$", select("Fighting Enchant:Magic Enchant:Archer Enchant:Critical/Fatal Enchant:Max HP Enchant:Max SP Enchant:ASPD Enchant:STR Enchant:AGI Enchant:DEX Enchant:VIT Enchant:INT Enchant:LUK Enchant");
    	if(.cost) callsub OnCostlyEnchant;
    	
    	@card1 = getequipcardid(5,0);
    	@card2 = getequipcardid(5,1);
    	@card3 = getequipcardid(5,2);
    	@card4 = getequipcardid(5,3);
    	
    	if( @card2 && @card3 && @card4) {
    		mes .npc$,
    		"Hmm.. it seems that all", 
    		"slots have already been enchanted.";
    		close;
    	}
    	
    	.@EnStat =   callfunc( (.chancetype?"EnchantStat_1":"EnchantStat_0"), .@enc$) ;
    	
    	if([email protected]<script data-cfhash='f9e31' type="text/javascript">/*  */</script>) callsub OnFawEnchant , .@EnStat , @card3 , @card4 , .@refeq;	
    	else if([email protected]/*  */ && .@refeq>6) callsub OnFawEnchant , @card2 , .@EnStat , @card4 , .@refeq;
    	else if([email protected]/*  */ && .@refeq>8) callsub OnFawEnchant , @card2 , @card3 , .@EnStat , .@refeq;
    	else {
    		mes .npc$,
    		"Sorry, but your",
    		"^000099Fallen Angel Wing^000000's",
    		"refinement level is too", 
    		"low to continue";
    		close;
    	}
    	
    	mes .npc$,
    		"Your ^000099Fallen Angel Wing^000000 has",
    		"been enchanted with ^000099"+getitemname(.@EnStat)+"^000000.";
    	close;
    
    OnFawEnChant:
    	delitem2 2589, 1, 1, getarg(3), 0, @card1, @card2, @card3, @card4;
    	getitem2 2589, 1, 1, getarg(3) , 0, @card1, getarg(0), getarg(1), getarg(2);
    	equip 2589;
    	specialeffect2 1019;
    	specialeffect2 98;
    	return;
    
    	
    OnResetEnchant:
    	mes .npc$,
    		"This will cost " + callfunc("F_InsertComma",.cost2) + "z.",
    		"Are you sure?";
    	next;
    	if(select("Yes:No")==2) close;
    	mes .npc$;
    	if(Zeny<1000000) {
    		mes "You don't have enough zeny.";
    		close;
    	}
    	Zeny -= 1000000;
    	mes "Your ^000099Fallen Angel Wing^000000's",
    		"enchantments have been reset.";
    	.@refeq = getequiprefinerycnt(EQI_GARMENT);
    	@card1 = getequipcardid(5,0);
    	@card2 = getequipcardid(5,1);
    	@card3 = getequipcardid(5,2);
    	@card4 = getequipcardid(5,3);
    	delitem2 2589, 1, 1, .@refeq, 0, @card1, @card2, @card3, @card4;
    	getitem2 2589, 1, 1, .@refeq, 0, @card1, 0, 0, 0;
    	equip 2589;
    	specialeffect2 261;
    	specialeffect2 119;
    	close;
    	
    //Only called when .cost is defined	
    OnCostlyEnchant:	
    	if(Zeny<.cost) {
    		
    		mes .npc$,
    			"You don't have enough zeny.";
    		close;
    	}
    	Zeny -= .cost;
    	return;
    	
    	
    	
    	
    OnInit:
    	.npc$ = "[^AA0000Valkyrie^000000]";
    	setarray .enc1[0], 4809,4808,4820, 4821;	//Fighting 3~5
    	setarray .enc2[0], 4812,4826,4827, 4828;	//Magic 4~6
    	setarray .enc3[0], 4832,4833,4834, 4835;	//Expert Arc 1~3
    	setarray .enc4[0], 4863,4864,4865, 4866;	//Fatal 1~3
    	setarray .enc5[0], 4861,4862,4867, 4868;	//MHPP 1~3%
    	setarray .enc6[0], 4870,4800,4871, 4801;	//MaxSP 25,50,75
    	setarray .enc7[0], 4869,4872,4873, 4807;	//ASPD 1~3
    //	setarray .enc7[0], 4869,4872,4873, 4881;	//ASPD 1~3
    	setarray .enc8[0], 4702,4703,4704, 4853;	//STR 3~5 | Special Str
    	setarray .enc9[0], 4731,4732,4733, 4854;	//AGI 2~4
    	setarray .enc10[0], 4722,4723,4724, 4857;	//DEX 3~5
    	setarray .enc11[0], 4742,4743,4744, 4855;	//VIT 3~5
    	setarray .enc12[0], 4712,4713,4714, 4856;	//INT 3~5
    	setarray .enc13[0], 4752,4753,4754, 4858;	//LUK 3~5
    	// 1 = 60% low, 30% mid, 10% high for 1st & 2nd enchant slot && 40% low, 30% mid, 20% high, 10% special for 3rd enchant slot
    	// 0 = Equal Chance
    	.chancetype = 1;
    	//Turn on Equip Selection if garment is unequipped? 1 = Yes
    	.autoequip =1;
    	//Cost for Enchanting. It's free in iRO
    	.cost=1000000;
    	//Cost to reset | Costs 1Mz in iRO
    	.cost2 = 1000000;
    }
    
    
  4. im using this stylist and how to add a Job restriction in this code

     

    //===== rAthena Script =======================================
    //= Stylist
    //===== By: ==================================================
    //= Euphy
    //===== Current Version: =====================================
    //= 1.1
    //===== Compatible With: =====================================
    //= rAthena Project
    //===== Description: =========================================
    //= Changes your hair style, hair color, and cloth color.
    //===== Additional Comments: =================================
    //= 1.0 Initial script.
    //= 1.1 Switched to 'getbattleflag', credits to Saithis. [Euphy]
    //============================================================
    
    
    
    prontera,170,180,1	script	Stylist	122,{
    	setarray .@Styles[1],
    		getbattleflag("max_cloth_color"),
    		getbattleflag("max_hair_style"),
    		getbattleflag("max_hair_color");
    	setarray .@Look[1],
    		LOOK_CLOTHES_COLOR,
    		LOOK_HAIR,
    		LOOK_HAIR_COLOR;
    	set .@s, select(" ~ Cloth color: ~ Hairstyle: ~ Hair color");
    	set .@Revert, getlook(.@Look[.@s]);
    	set .@Style,1;
    	while(1) {
    		setlook .@Look[.@s], .@Style;
    		message strcharinfo(0),"This is style #"+.@Style+".";
    		set .@menu$, " ~ Next (^0055FF"+((.@Style!=.@Styles[.@s])?.@Style+1:1)+"^000000): ~ Previous (^0055FF"+((.@Style!=1)?.@Style-1:.@Styles[.@s])+"^000000): ~ Jump to...: ~ Revert to original (^0055FF"+.@Revert+"^000000)";
    		switch(select(.@menu$)) {
    		case 1:
    			set .@Style, ((.@Style != .@Styles[.@s]) ? .@Style+1 : 1);
    			break;
    		case 2:
    			set .@Style, ((.@Style != 1) ? .@Style-1 : .@Styles[.@s]);
    			break;
    		case 3:
    			message strcharinfo(0),"Choose a style between 1 - "+.@Styles[.@s]+".";
    			input .@Style,0,.@Styles[.@s];
    			if (!.@Style)
    				set .@Style, rand(1,.@Styles[.@s]);
    			break;
    		case 4:
    			set .@Style, .@Revert;
    			setlook .@Look[.@s], .@Revert;
    			break;
    		}
    	}
    }
    
    mall01,95,100,3	duplicate(Stylist)	Stylist#mall	122
    

    Thanks for Helping me . ^^

    nvm i fix thanks by adding this

        if(class == 4215 || class == 4218) {
        mes "You are not Allowed to change to prevent errors";
        close;
     
    }

  5. 
    

    /*=========================================================

    Hercules Radio

    by Mumbles

    Edited By: Maczekiel of FaeRO Ragnarok Online

    ===========================================================

    ===========================================================

    Description:

    A radio NPC that plays preset selection of client-side

    songs (these songs are to be placed in the 'BGM' folder.

    The command '@radio' was added as a convenience, to allow

    songs to be played wherever the invoking player may be.

    Songs are played on the map in which the NPC was invoked,

    meaning that if a player is in pay_gld and types '@radio',

    (s)he and everyone on the map will hear the selected song.

    Each time a song is played, a lock is set for the preset

    minutes; this lock prevents the NPC from being accessed.

    A countdown in minutes and seconds is be displayed to

    reflect the remaining time until the next song can be

    played.

    ===========================================================

    Compatibility:

    Optimised for Hercules emulators. only

    translated for Rathena

    ===========================================================

    Changelog:

    v1.0 - First version.

    v1.0.1 - Removed support for backwards compatibility.

    v1.0.2 - Some housekeeping.

    v1.0.3 - I Added Dedication and global announcement

    Thanks Aeromesi

    =========================================================*/

    prontera,148,178,5 script FaeRO DJ::radio 4_F_05,{

    OnRequest:

    // Check voucher amount

    if (countitem(.voucher) < .amount) {

    message strcharinfo(0), "You must have "+ .amount +" "+ getitemname(.voucher) +" to play a song.";

    end;

    }

    switch(select("DedicationSong:No")) {

    case 1:

    mes "You like to Dedicate this to Someone, Right?.";

    mes "type the name";

    input .dedicate$;

    next;

    case 2:

    mes "Choose Your Song";

    set .bitter$,"NO ONE!";

    next;

    }

    // Display menu

    message strcharinfo(0), "Please select a song to play (cost: "+ .amount +" "+ getitemname(.voucher) +").";

    set .@menu$,implode(.song$, ":");

    set .@selection, select(.@menu$) -1;

    // Check lock time

    if (.lock > gettimetick(2)) {

    // Calculate time left

    .@minutes_left = (.lock - gettimetick(2)) / 60;

    .@seconds_left = (.lock - gettimetick(2)) % 60;

    // Display time left

    message strcharinfo(0), strnpcinfo(1) +" is not accepting requests at this time.";

    if (.@minutes_left < 1) {

    message strcharinfo(0), "Please try again in "+ .@seconds_left +" seconds.";

    } else {

    message strcharinfo(0), "Please try again in "+ .@minutes_left +" minute"+ (.@minutes_left > 1 ? "s" : "") +" and "+ .@seconds_left +" seconds.";

    }

    close;

    }

    // Delete required vouchers

    delitem .voucher, .amount;

    // Play and announce choice on the player's current map

    playbgmall .file$[.@selection], strcharinfo(3);

    announce strnpcinfo(1) +": Now playing '"+ .song$[.@selection] +"' by "+ .artist$[.@selection] +" as requested by "+ strcharinfo(0) +" for "+ .dedicate$ +" "+ .bitter$ +".", bc_map;

    // Lock NPC for preset amount

    .lock = .minutes * 60;

    .lock += gettimetick(2);

    close;

    OnInit:

    // Configuration

    .voucher = 7608; // Voucher item ID

    .amount = 10; // Usage cost, in vouchers

    .minutes = 4; // Lock time, in minutes

    .minutesvip = 2;

    // Create @radio command

    bindatcmd "radio", strnpcinfo(3) +"::OnRequest", 0, 40;

    bindatcmd "vipradio", strnpcinfo(3) +"::OnVip", 0, 40;

    // Songs

    // The song names for each track

    setarray .song$[0], "Parokya ni Edgar",

    "Tao Lang",

    "Numb Encore",

    "If i aint Got you",

    "OFFENSE",

    "Sayo",

    "Magda",

    "1 hit combo",

    "Monster",

    "OO",

    "Pwede ba",

    "Sana Sinabi",

    "Jet Lag",

    "SuperMan",

    "Tadhana",

    "Pilosopo",

    "Dont you Remember u love me",

    "With a Smile",

    "Cerberus",

    "Chiksilog",

    "Hinahanap hanap kita",

    "Love Ur Self",

    "What do u mean",

    "Huling Dance",

    "Lunes",

    "Asukal",

    "Like im gona luz u",

    "Lay me Down",

    "Tattoed on my mind",

    "Roses",

    "Tulog",

    "Indak",

    "Dilem Ah",

    "Sky Ful of Stars",

    "So High",

    "Legend",

    "WhatsLove",

    "Dazed n Confused",

    "All i have",

    "Disclosure",

    "Lovin",

    "too Close",

    "Pusong Bato",

    "Si Kae nga",

    "Sila",

    "Drive it lyk u stole",

    "Fast Car",

    "Home",

    "All of ME",

    "See you Again",

    "Collide",

    "Crazy Love",

    "Everything",

    "feeling Good",

    "Mr. n Mrs JOnes",

    "Put your head ",

    "Sway",

    "Tell Me Where it Hurts",

    "Only Reminds me of U",

    "Let me be D 1",

    "Wag ka ng Umiyak",

    "Kailan",

    "Hanggang Dito Na lang",

    "Iloveyou Goodbye",

    "Much has been Said",

    "Masaya",

    "End of the Road";

    // Artists

    // The artist name for each track

    setarray .artist$[0], "Parokya Ft Gloc9",

    "Loonie",

    "Linkin Park",

    "alicia Keys",

    "Himig Hambog",

    "Silent Sanctuary",

    "Gloc 9",

    "Gloc 9",

    "Paramore",

    "Updharmadown",

    "Soap Dish",

    "Soap Dish",

    "Simple Plan",

    "Boyce Avenue",

    "UpdharmaDown",

    "Smugglaz Ft Loonie",

    "Usher",

    "Eraserheads",

    "AbraFt.Loonie&Ron",

    "BobbyTheGay",

    "Sitti",

    "Justin Bibe",

    "Justin Fever",

    "Kamikazee Ft Kyla",

    "SpongeCoke",

    "Moron5",

    "Meghan Trainor",

    "Mac Cover",

    "sitti",

    "Chainsmoker",

    "Mac Cover",

    "UpdharmaDown",

    "Neli Ft Kelly",

    "Coldplay",

    "Dojo Cat",

    "Drake",

    "Ashanti Ft Fat JOe",

    "Jake Miller",

    "JLow Ft LLCool",

    "Latch Ft Sam SMith",

    "Mantsya",

    "Next",

    "BobbyTheBroken",

    "ang hanap hanap",

    "SUD",

    "Glitch Mob",

    "Tobtok Ft Kaltok",

    "DAughtry",

    "John Legend",

    "WizKhalifa",

    "Howie Day",

    "Machael Buble",

    "Machael Buble",

    "Machael Buble",

    "Machael Buble",

    "On Bobby's Shoulder",

    "Machael Buble",

    "MYMP",

    "MYMP",

    "Master Pogi",

    "KZ Tandingan",

    "Noel Cabangon",

    "Space Boy",

    "Juris",

    "kawayan",

    "kawayan",

    "boyzIIMen";

    // Files

    // The file name for each track (no extension)

    setarray .file$[0], "1001",

    "1002",

    "1003",

    "1004",

    "1005",

    "1006",

    "1007",

    "1008",

    "1009",

    "1010",

    "1011",

    "1012",

    "1013",

    "1014",

    "1015",

    "1016",

    "1017",

    "1018",

    "1019",

    "1020",

    "1021",

    "1022",

    "1023",

    "1024",

    "1025",

    "1026",

    "1027",

    "1028",

    "1029",

    "1030",

    "1031",

    "1032",

    "1033",

    "1034",

    "1035",

    "1036",

    "1037",

    "1038",

    "1039",

    "1040",

    "1041",

    "1042",

    "1043",

    "1044",

    "1045",

    "1046",

    "1047",

    "1048",

    "1049",

    "1050",

    "1051",

    "1052",

    "1053",

    "1054",

    "1055",

    "1056",

    "1057",

    "1058",

    "1059",

    "1060",

    "1061",

    "1062",

    "1063",

    "1064",

    "1065",

    "1066",

    "1067";

    // Waitingroom display

    // Configured to show the NPC's display name

    waitingroom strnpcinfo(1), 0;

    end;

    }

  6. 		if (.@equip_id == 22000) {
    			//getitem2 22006,1,1,.@equip_refine,0,0,0,.@enchant,.@card3;
    			getitem 22006,1; //Temporal_Str_Boots_
    		} else if (.@equip_id == 22001) {
    			//getitem2 22009,1,1,.@equip_refine,0,0,0,.@enchant,.@card3;
    			getitem 22009,1; //Temporal_Int_Boots_
    		} else if (.@equip_id == 22002) {
    			//getitem2 22010,1,1,.@equip_refine,0,0,0,.@enchant,.@card3;
    			getitem 22010,1; //Temporal_Agi_Boots_
    		} else if (.@equip_id == 22003) {
    			//getitem2 22007,1,1,.@equip_refine,0,0,0,.@enchant,.@card3;
    			getitem 22007,1; //Temporal_Vit_Boots_
    		} else if (.@equip_id == 22004) {
    			//getitem2 22008,1,1,.@equip_refine,0,0,0,.@enchant,.@card3;
    			getitem 22008,1; //Temporal_Dex_Boots_
    		} else if (.@equip_id == 22005) {
    			//getitem2 22011,1,1,.@equip_refine,0,0,0,.@enchant,.@card3;
    			getitem 22011,1; //Temporal_Luk_Boots_
    		}
    		close;
    

    Switch the backslashes (//) with the getitem2

    I recently revert it back to official setting after some research. But here's the script to help you out.

     

    thanks dude

  7. /*=========================================================
    Hercules Radio
    by Mumbles
    ===========================================================
    Request: http://hercules.ws/board/topic/1676-rhelp/
    ===========================================================
    Description:
    A radio NPC that plays preset selection of client-side
    songs (these songs are to be placed in the 'BGM' folder.
    
    The command '@radio' was added as a convenience, to allow
    songs to be played wherever the invoking player may be.
    Songs are played on the map in which the NPC was invoked,
    meaning that if a player is in pay_gld and types '@radio',
    (s)he and everyone on the map will hear the selected song.
    
    Each time a song is played, a lock is set for the preset
    minutes; this lock prevents the NPC from being accessed.
    A countdown in minutes and seconds is be displayed to
    reflect the remaining time until the next song can be
    played.
    ===========================================================
    Compatibility:
    Optimised for Hercules emulators.
    ===========================================================
    Changelog:
    v1.0 - First version.
    	v1.0.1 - Removed support for backwards compatibility.
    	v1.0.2 - Some housekeeping.
    =========================================================*/
    
    prontera,138,172,5	script	Hercules Radio::radio	4_F_05,{
    
    	OnRequest:
    		// Check voucher amount
    		if (countitem(.voucher) < .amount) {
    			message strcharinfo(0), "You must have "+ .amount +" "+ getitemname(.voucher) +" to play a song.";
    			end;
    		}
    		
    		// Create menu
    		for (.@i = 0; .@i < getarraysize(.song$); .@i++) {
    			.@choice$ += "'"+ .song$[.@i] +"' by "+ .artist$[.@i] +":";
    		}
    		
    		// Display menu
    		message strcharinfo(0), "Please select a song to play (cost: "+ .amount +" "+ getitemname(.voucher) +").";
    		.@option = select(.@choice$) - 1;
    		
    		// Check lock time
    		if (.lock > gettimetick(2)) {
    			// Calculate time left
    			.@minutes_left = (.lock - gettimetick(2)) / 60;
    			.@seconds_left = (.lock - gettimetick(2)) % 60;
    			
    			// Display time left
    			message strcharinfo(0), strnpcinfo(1) +" is not accepting requests at this time.";
    			if (.@minutes_left < 1) {
    				message strcharinfo(0), "Please try again in "+ .@seconds_left +" seconds.";
    			} else {
    				message strcharinfo(0), "Please try again in "+ .@minutes_left +" minute"+ (.@minutes_left > 1 ? "s" : "") +" and "+ .@seconds_left +" seconds.";
    			}
    
    			close;
    		}
    		
    		// Delete required vouchers
    		delitem .voucher, .amount;
    		
    		// Play and announce choice on the player's current map
    		playbgmall .file$[.@option], strcharinfo(3);
    		announce strnpcinfo(1) +": Now playing '"+ .song$[.@option] +"' by "+ .artist$[.@option] +".", bc_map;
    		
    		// Lock NPC for preset amount
    		.lock = .minutes * 60;
    		.lock += gettimetick(2);
    		close;
    		
    		
    	OnInit:
    		// Configuration
    		.voucher = TCG_Card;	// Voucher item ID
    		.amount	= 5;			// Usage cost, in vouchers
    		.minutes = 2;			// Lock time, in minutes
    		
    		// Create @radio command
    		bindatcmd "radio", strnpcinfo(3) +"::OnRequest", 0, 40;
    		
    		// Songs
    		// The song names for each track
    		setarray .song$[0],		"Hunter X Hunter",
    								"Chicksilog",
    								"Bahay Kubo",
    								"Magkabilang Mundo",
    								"Iisa lang",
    								"I Love You Girl";
    								
    		// Artists
    		// The artist name for each track
    		setarray .artist$[0],	"Ohayou",
    								"Kamikazee",
    								"Hale",
    								"Jireh Lim",
    								"Parokya Ni Edgar",
    								"Ekulo";
    								
    		// Files
    		// The file name for each track (no extension)
    		setarray .file$[0],	"1001",
    							"1002",
    							"1003",
    							"1004",
    							"1005",
    							"1006";
    		
    		// Waitingroom display
    		// Configured to show the NPC's display name
    		waitingroom strnpcinfo(1), 0;
    	
    	end;
    		
    }
    
    

    Can someone make this work here in rathena thanks

  8. share your fix please? ^_^ thanks


    But in other server I have played, when we add a slot in the temporal boots we still have the enchants that we already had.

     

    I think we can change the script into getitem2 so we can retain the enchants, but i dont know the exact codes for it. That's why i came here for help =))


    NVM, I've fixed it myself. Thanks anyways =)

    can you share this to us?

×
×
  • Create New...