Jump to content

AHMADSHIDQI

Members
  • Posts

    64
  • Joined

  • Last visited

Posts posted by AHMADSHIDQI

  1. there are monsters that spawn with wrong monster mode

    i have done some reseach that it's a problem with the setunitdata

    but i dont really get it.

    so, for example. ifrit that spawns in thor volc 3.. is not setted to Boss monster when it spawns.
    as the impact, abysmal knight card will not add extra damage to the Ifrit.
    what should i do to fix this problem?
     

  2.   

    On 6/17/2013 at 7:18 PM, dikapramantya said:

    Hello!!

     

    i use The_sign_Quest original script from rAthena.

     

    my player are try to quest that and according to iROwiki in http://irowiki.org/wiki/Sign_Quest .

     

    But in step number 17.

     

    he  is stuck when he want to delivering requested stone.

     

     

    this original script the sign from rAthena   the_sign_quest.txt

     

     

    this code script when player get the stone .

     

     

     

        else if (sign_q == 37) {
            mes "Ah yes, the master informed";
            mes "me that you would be taking";
            mes "care of an urgent delivery for";
            mes "him. Please take this to a";
            mes "man named ^3355FFLeibech^000000.";
            next;
            mes "[Mahatra]";
            mes "It may be difficult";
            mes "to find him since he";
            mes "travels around the world.";
            mes "Ah yes, I have heard that";
            mes "he was in some other country...";
            next;
            mes "[Mahatra]";
            mes "Now, the item I am";
            mes "about to give you is";
            mes "one of a kind. Don't lose";
            mes "it or you will fall out of favor with the master...";
            next;
            mes "^3355FFMahatra gives you";
            mes "a unique stone that has";
            mes "your name attached to it.^000000";
            set sign_q,38;
            getnameditem 7049,strcharinfo(0);
            close;
     

     

     

    And This Script when players delivered it .

     

     

        else if (sign_q == 38) {
            if (countitem(7049) < 1) {
                mes "Excuse me...";
                mes "Are you from the Alchesh";
                mes "Trading Company? I've been";
                mes "waiting for my order and they";
                next;
                switch(select("No, I'm not.:They must be busy.:Yes, I have your order.")) {
                case 1:
                    mes "[Leibech]";
                    mes "Oh, I'm sorry.";
                    mes "My mistake. Well";
                    mes "then, be safe in";
                    mes "your travels.";
                    close;
                case 2:
                    mes "[Leibech]";
                    mes "I suppose you're";
                    mes "right. I mean, Juno";
                    mes "is pretty far from";
                    mes "Alberta. Maybe I'm";
                    mes "just overly excited";
                    mes "about my delivery...";
                    close;
                case 3:
                    mes "[Leibech]";
                    mes "Really?!";
                    mes "That's great!";
                    mes "Do you have the";
                    mes "item I ordered?";
                    mes "Where is it?";
                    next;
                    switch(select("I put it somewhere.:Sorry, I lost it.")) {
                    case 1:
                        mes "[Leibech]";
                        mes "Oh, alright. ";
                        mes "So long as you didn't";
                        mes "lose it, that's fine. I'll wait";
                        mes "here, so would you bring it";
                        mes "to me as soon as you can?";
                        close;
                    case 2:
                        mes "[Leibech]";
                        mes "What...?";
                        mes "Hey, man.";
                        mes "That's not funny!";
                        mes "You're joking, right?";
                        next;
                        switch(select("No. I'm not joking.:Okay, you got me~")) {
                        case 1:
                            mes "[Leibech]";
                            mes "I don't believe it!";
                            mes "I think I'm going to";
                            mes "write a letter to your";
                            mes "boss, Mister Bakerlan.";
                            mes "What do you think ";
                            mes "about that?";
                            close;
                        case 2:
                            mes "[Leibech]";
                            mes "Oh, thank goodness!";
                            mes "I thought you might have";
                            mes "really lost it! Say, would you";
                            mes "bring it to me as soon as";
                            mes "can? I'll wait for you here.";
                            close;
                        }
                    }
                }
            }
            else {
                set .@signid,getcharid(0,strcharinfo(0));
                set .@sign3, .@signid & 65535;
                set .@sign4, .@signid >> 16;
                set .@sign1,254;
                set .@sign2,0;
                if (!countitem2(7049,1,0,0,.@sign1,.@sign2,.@sign3,.@sign4)) {
                    mes "Hm...?";
                    mes "There must be some";
                    mes "mistake. This isn't what";
                    mes "I ordered. Well, I can wait... ";
                    next;
                    mes "[Leibech]";
                    mes "Just come back and";
                    mes "bring me what I actually";
                    mes "ordered, alright? And this";
                    mes "time, don't make any mistakes.";
                    mes "Thanks, I appreciate it~";
                    close;
                }
                else {
                    mes "Finally, it's here!";
                    mes "Yes, this is what I ordered.";
                    mes "Thanks for the delivery!";
                    next;
                    mes "[Leibech]";
                    mes "Well, here's your";
                    mes "receipt. Please take";
                    mes "this to Mister Bakerlan";
                    mes "so he knows you did";
                    mes "a good job for me.";
                    mes "Thanks again!";
                    delitem2 7049,1,1,0,0,.@sign1,.@sign2,.@sign3,.@sign4;
                    set sign_q,39;
                    getitem 7181,1; //Receipt_01
                    if (BaseLevel < 60) getexp 100,0;
                    else if (BaseLevel < 70) getexp 200,0;
                    else if (BaseLevel < 80) getexp 400,0;
                    else if (BaseLevel < 90) getexp 700,0;
                    else if (BaseLevel < 150) getexp 1100,0;
                    close;
     

     

     

    My Player, stuck  in  

                if (!countitem2(7049,1,0,0,[email protected],[email protected],[email protected],[email protected])) {
                    mes "Hm...?";
                    mes "There must be some";
                    mes "mistake. This isn't what";
                    mes "I ordered. Well, I can wait... ";
                    next;
                    mes "[Leibech]";
                    mes "Just come back and";
                    mes "bring me what I actually";
                    mes "ordered, alright? And this";
                    mes "time, don't make any mistakes.";
                    mes "Thanks, I appreciate it~";
                    close;

     

    how to fix it?

    thanks for your patronage .

     

    Sorry for my bad english . Please Help me

     

  3. //===== Hercules Script ===========================================
    //= King of Emperium Hill
    //===== By: =======================================================
    //= AnnieRuru
    //===== Current Version: ==========================================
    //= 1.2
    //===== Compatible With: ==========================================
    //= hercules & rathena 2018-04-08
    //===== Description: ==============================================
    //= defends the emperium in the middle of the map until times up
    //===== Topic =====================================================
    //= http://hercules.ws/board/topic/4495-gvg-king-of-emperium-hill/
    //===== Additional Comments: ======================================
    //= Finally there is a topic for this !
    //=================================================================
    
    -	script	KoE	FAKE_NPC,{
    OnInit:
    	disablenpc "The King#KoE";
    	disablenpc "Exit#KoE";
    	bindatcmd "koe", strnpcinfo(0)+"::OnCommand", 99,100;
    	end;
    OnCommand:
    	if ( compare( [email protected]_parameters$, "on" ) ) goto L_start;
    	else if ( compare( [email protected]_parameters$, "off" ) ) goto L_end;
    	else {
    		dispbottom "type - '@koe on' to start the event";
    		dispbottom "type - '@koe off' to end the event";
    	}
    	end;
    L_start:
    OnClock2000: // everyday 8pm starts
    	if ( .start ) end;
    	gvgon "guild_vs1";
    	announce "The King of Emperium Hill has begun!", bc_all;
    	.start = true;
    	enablenpc "The King#KoE";
    	disablenpc "Exit#KoE";
    	$koegid = 0;
    	donpcevent "::OnRevKoE";
    	maprespawnguildid "guild_vs1", $koegid, 3;
    	killmonster "guild_vs1", "KoE::OnEmpDead";
    	monster "guild_vs1",49,49, "EMPERIUM", 1288, 1, "KoE::OnEmpDead";
    	end;
    L_end:
    OnClock2030: // everyday 8:30pm ends
    	gvgoff "guild_vs1";
    	announce "The King of Emperium Hill is over!", bc_all;
    	.start = 0;
    	enablenpc "Exit#KoE";
    	disablenpc "The King#KoE";
    	killmonster "guild_vs1", "KoE::OnEmpDead";
    //	maprespawnguildid "guild_vs1", $koegid, 2; // uncomment this line to kick non-owner off the map when event ends
    	end;
    OnEmpDead:
    	$koegid = getcharid(2);
    	announce "The current King of Emperium Hill is the ["+ strcharinfo(2) +"] guild.", bc_all;
    	donpcevent "::OnRevKoE";
    	maprespawnguildid "guild_vs1", $koegid, 2;
    	killmonster "guild_vs1", "KoE::OnEmpDead";
    	sleep 500;
    	if ( .start )
    		monster "guild_vs1",49,49, "EMPERIUM", 1288, 1, "KoE::OnEmpDead";
    	end;
    }
    
    // KoE Entrance
    prontera,155,196,4	script	The King#KoE	1_M_MERCHANT,{
    	mes "[The King]";
    	if ( !getcharid(2) ) {
    		mes "You must have a guild to participate in the ^FF0000King of Emperium Hill Tournament^000000.";
    		close;
    	}
    	mes "Hello.";
    	mes "Would you like to participate in the ^FF0000King of Emperium Hill Tournament^000000?";
    	if ( select ( "Yes", "No" ) == 2 ) close;
    	if ( !getvariableofnpc( .start, "KoE" ) ) close;
    	switch( rand(1,4) ){
    	case 1:	warp "guild_vs1", 50, 88; end;
    	case 2:	warp "guild_vs1", 88, 50; end;
    	case 3:	warp "guild_vs1", 50, 11; end;
    	case 4:	warp "guild_vs1", 11, 50; end;
    	}
    }
    
    // KoE Exit
    guild_vs1,49,56,5	script	Exit#KoE	1_M_BARD,{
    	mes "[Exit]";
    	mes "See ya.";
    	close2;
    	warp "Save",0,0;
    	if ( getcharid(2) == $koegid )
    		getitem 11705, 1; // configure prize here - Poring Coin
    	end;
    }
    
    // Flags
    guild_vs1,49,38,4	script	King of Emperium Hill#1::koe_flag	GUILD_FLAG,{
    	if ( !$koegid ) end;
    	mes "[King of Emperium Hill]";
    	mes "The Current King of Emperium Hill is the ["+ getguildname($koegid) +"] guild.";
    	close;
    //OnInit: // Uncomment this line to make the emblem stay after @reloadscript
    OnRevKoE:
    	flagemblem $koegid;
    	end;
    }
    guild_vs1,61,49,6	duplicate(koe_flag)	King of Emperium Hill#2	GUILD_FLAG
    guild_vs1,38,49,2	duplicate(koe_flag)	King of Emperium Hill#3	GUILD_FLAG
    guild_vs1,49,61,0	duplicate(koe_flag)	King of Emperium Hill#4	GUILD_FLAG
    prontera,166,195,4	duplicate(koe_flag)	King of Emperium Hill#5	GUILD_FLAG
    
    
    guild_vs1	mapflag	nobranch
    guild_vs1	mapflag	nomemo
    guild_vs1	mapflag	nopenalty
    guild_vs1	mapflag	noreturn
    guild_vs1	mapflag	nosave	SavePoint
    guild_vs1	mapflag	noteleport
    guild_vs1	mapflag	gvg_noparty
    guild_vs1	mapflag	nowarp
    guild_vs1	mapflag	nowarpto
    guild_vs1	mapflag	guildlock
    guild_vs1	mapflag	noicewall

    HELLO!
    My currrent KoE Script starts everyday
    Could anyone please help me set this KoE Script to be active on TUESDAY FRIDAY and SUNDAY.  at 20:00 until 20:30 

    Thanks alot!!
     

  4. // Dummy shop data -- copy as needed.
    //============================================================
    -	shop	qshop1	-1,909:-1
    -	shop	qshop2	-1,909:-1
    -	shop	qshop3	-1,909:-1
    -	shop	qshop4	-1,909:-1
    -	shop	qshop5	-1,909:-1
    -	shop	qshop6	-1,909:-1
    -	shop	qshop7	-1,909:-1
    -	shop	qshop8	-1,909:-1
    -	shop	qshop9	-1,909:-1
    -	shop	qshop10	-1,909:-1
    -	shop	qshop11	-1,909:-1
    -	shop	qshop12	-1,909:-1
    -	shop	qshop13	-1,909:-1
    -	shop	qshop14	-1,909:-1
    -	shop	qshop15	-1,909:-1
    -	shop	qshop16	-1,909:-1
    -	shop	qshop17	-1,909:-1
    -	shop	qshop18	-1,909:-1
    -	shop	qshop19	-1,909:-1
    -	shop	qshop20	-1,909:-1
    -	shop	qshop21	-1,909:-1
    -	shop	qshop22	-1,909:-1
    -	shop	qshop23	-1,909:-1
    -	shop	qshop24	-1,909:-1
    -	shop	qshop25	-1,909:-1
    -	shop	qshop26	-1,909:-1
    -	shop	qshop27	-1,909:-1
    -	shop	qshop28	-1,909:-1
    -	shop	qshop29	-1,909:-1
    
    //===== rAthena Script =======================================
    //= Euphy's Quest Shop
    //===== By: ==================================================
    //= Euphy
    //===== Current Version: =====================================
    //= 1.6c
    //===== Compatible With: =====================================
    //= rAthena Project
    //===== Description: =========================================
    //= A dynamic quest shop based on Lunar's, with easier config.
    //= Includes support for multiple shops & cashpoints.
    //= Item Preview script by ToastOfDoom.
    //===== Additional Comments: =================================
    //= 1.0 Initial script.
    //= 1.2 Added category support.
    //= 1.3 More options and fixes.
    //= 1.4 Added debug settings.
    //= 1.5 Replaced categories with shop IDs.
    //= 1.6 Added support for purchasing stackables.
    //= 1.6a Added support for previewing costumes and robes.
    //= 1.6b Added 'disable_items' command.
    //= 1.6c Replaced function 'A_An' with "F_InsertArticle".
    //============================================================
    
    // Shop NPCs -- supplying no argument displays entire menu.
    //	callfunc "qshop"{,<shop ID>{,<shop ID>{,...}}};
    //  ADD YOUR NPC HERE
    //============================================================
    prontera,180,213,4	script	Quest Worker	556,{ callfunc "qshop",1; }
    prontera,184,209,4	script	Event Ticket Shop	112,{ callfunc "qshop",2; }
    new_1-1,155,111,5	script	Costume Shop	555,{ callfunc "qshop",3; }
    
    // prontera,165,203,6	script	Quest Shop#2	998,{ callfunc "qshop",1,2; }	// call the shop 1 and 2 defined below
    // etc.. Add your Shop NPCs 'Quest Shop#XXX' here
    //============================================================
    
    
    // Script Core - DO NOT DUPLICATE THIS NPC !!!!!!!!!!!!!
    //============================================================
    -	script	quest_shop	-1,{
    function Add; function Chk; function Slot;
    OnInit:
    	freeloop(1);
    
    // -----------------------------------------------------------
    //  Basic shop settings.
    // -----------------------------------------------------------
    
    	set .Announce,1;	// Announce quest completion? (1: yes / 0: no)
    	set .ShowSlot,1;	// Show item slots? (2: all equipment / 1: if slots > 0 / 0: never)
    	set .ShowID,0;  	// Show item IDs? (1: yes / 0: no)
    	set .ShowZeny,0;	// Show Zeny cost, if any? (1: yes / 0: no)
    	set .MaxStack,100;	// Max number of quest items purchased at one time.
    
    // -----------------------------------------------------------
    //  Points variable -- optional quest requirement.
    //	setarray .Points$[0],"<variable name>","<display name>";
    // -----------------------------------------------------------
    
    	setarray .Points$[0],
    		"#CASHPOINTS", "Cash Points";
    
    
    //=====================================================================================
    // ------------------- ADD YOUR SHOPS NAME AND ITEMS SHOPS STARTING HERE --------------
    //=====================================================================================
    
    // -----------------------------------------------------------
    //  Shop IDs -- to add shops, copy dummy data at bottom of file.
    //	setarray .Shops$[1],"<Shop 1>","<Shop 2>"{,...};
    // -----------------------------------------------------------
    
    	setarray .Shops$[1],
    		"Hat Maker",	// Shop Named 1
    		"Weapons",		// Shop Named 2
    		"Other";		// Shop Named 3
    
    // -----------------------------------------------------------
    //  Quest items -- do NOT use a reward item more than once!
    //	Add(<shop ID>,<reward ID>,<reward amount>,
    //	    <Zeny cost>,<point cost>,
    //	    <required item ID>,<required item amount>{,...});
    // -----------------------------------------------------------
    
    // Shop 1
    	Add(1,2790,1,0,0,2625,15,7539,50);
    	Add(1,2788,1,0,0,2622,15,7539,50);
    	Add(1,2789,1,0,0,2621,15,7539,50);
    	Add(1,5086,1,0,0,5024,1,539,30,660,3);
    	Add(1,5137,1,0,0,5141,5,7047,100,661,1,7539,30);
    	Add(1,5324,1,0,0,5137,1,7063,20,1034,20,7539,50);
    	Add(1,5372,1,0,0,2747,5,982,15,7206,100,7539,35);
    	Add(1,5359,1,0,0,2284,1,5019,1,975,1,7539,30);
    	Add(1,5373,1,0,0,2255,1,7566,3,7511,60,5104,1,7799,4,7023,20,7539,20);
    	Add(1,5376,1,0,0,641,1,2210,1,7063,60,983,4,7539,35);
    
    // Shop 2
    	Add(2,12314,1,0,0,7711,250);
    	Add(2,7539,1,0,0,7711,25);
    	Add(2,12210,1,0,0,7711,25);
    	Add(2,14545,1,0,0,7711,25);
    	Add(2,12202,1,0,0,7711,25);
    	Add(2,12203,1,0,0,7711,25);
    	Add(2,12204,1,0,0,7711,25);
    	Add(2,12205,1,0,0,7711,25);
    	Add(2,12206,1,0,0,7711,25);
    	Add(2,12207,1,0,0,7711,25);
    
    
    // Shop 3
    	Add(3,19524,1,0,0,677,1);
    	Add(3,19998,1,0,0,677,1);
    	Add(3,20056,1,0,0,677,1);
    	Add(3,20058,1,0,0,677,1);
    	Add(3,20092,1,0,0,677,1);
    	Add(3,19989,1,0,0,677,1);
    	Add(3,19954,1,0,0,677,1);
    	Add(3,19912,1,0,0,677,1);
    	Add(3,19783,1,0,0,677,1);
    	Add(3,20022,1,0,0,677,1);
    
    
    // -----------------------------------------------------------
    
    //=====================================================================================
    // ------------------- YOUR SHOPS AND ITEMS SHOPS HAVE BEEN ADDED ---------------------
    //=====================================================================================
    
    	freeloop(0);
    	set .menu$,"";
    	for(set [email protected],1; [email protected]<=getarraysize(.Shops$); set [email protected],[email protected]+1) {
    		set .menu$, .menu$+.Shops$[[email protected]]+":";
    		npcshopdelitem "qshop"[email protected],909;
    	}
    	end;
    
    OnMenu:
    	set [email protected], getarraysize(@i);
    	if ([email protected]) set @shop_index, select(.menu$);
    	else if ([email protected] == 1) set @shop_index, @i[0];
    	else {
    		for(set [email protected],0; [email protected]<[email protected]; set [email protected],[email protected]+1)
    			set [email protected]$, [email protected]$+.Shops$[@i[[email protected]]]+":";
    		set @shop_index, @i[select([email protected]$)-1];
    	}
    	deletearray @i[0],getarraysize(@i);
    	if (.Shops$[@shop_index] == "") {
    		message strcharinfo(0),"An error has occurred.";
    		end;
    	}
    	dispbottom "Select one item at a time.";
    	callshop "qshop"[email protected]_index,1;
    	npcshopattach "qshop"[email protected]_index;
    	end;
    
    OnBuyItem:
    	// [email protected][] : RewardID, BoughtAmt, RewardAmt, BaseAmt, ReqZeny, ReqPts, { ReqItem, ReqAmt, ... }
    	setarray [email protected][0],@bought_nameid[0],((@bought_quantity[0] > .MaxStack)?.MaxStack:@bought_quantity[0]);
    	copyarray [email protected][3],getd(".q_"[email protected]_index+"_"[email protected][0]+"[0]"),getarraysize(getd(".q_"[email protected]_index+"_"[email protected][0]));
    	set [email protected][2],[email protected][1]*[email protected][3];
    	if ([email protected][2] || [email protected][2] > 30000) {
    		message strcharinfo(0),"You can't purchase that many "+getitemname([email protected][0])+".";
    		end;
    	}
    	mes "[Quest Shop]";
    	mes "Reward: ^0055FF"+(([email protected][2] > 1)[email protected][2]+"x ":"")+Slot([email protected][0])+"^000000";
    	mes "Requirements:";
    	disable_items;
    	if ([email protected][4]) mes " > "+Chk(Zeny,[email protected][4]*[email protected][1])+([email protected][4]*[email protected][1])+" Zeny^000000";
    	if ([email protected][5]) mes " > "+Chk(getd(.Points$[0]),[email protected][5]*[email protected][1])+([email protected][5]*[email protected][1])+" "+.Points$[1]+" ("+getd(.Points$[0])+"/"+([email protected][5]*[email protected][1])+")^000000";
    	if ([email protected][6]) for(set [email protected],6; [email protected]<getarraysize([email protected]q); set [email protected]i,[email protected]i+2)
    		mes " > "+Chk(countitem([email protected][[email protected]]),[email protected][[email protected]+1]*[email protected][1])+((.ShowID)?"{"[email protected][[email protected]]+"} ":"")+Slot([email protected][[email protected]])+" ("+countitem([email protected][[email protected]])+"/"+([email protected][[email protected]+1]*[email protected][1])+")^000000";
    	next;
    	setarray @qe[1], getiteminfo([email protected][0],5), getiteminfo([email protected][0],11);
    	if (@qe[2] > 0 && ((@qe[1] & EQP_HEAD_LOW) || (@qe[1] & EQP_HEAD_TOP) || (@qe[1] & EQP_HEAD_MID) || (@qe[1] & EQP_COSTUME_HEAD_TOP) || (@qe[1] & EQP_COSTUME_HEAD_MID) || (@qe[1] & EQP_COSTUME_HEAD_LOW) || (@qe[1] & EQP_GARMENT) || (@qe[1] & EQP_COSTUME_GARMENT)))
    		set [email protected],1;
    	addtimer 1000, strnpcinfo(0)+"::OnEnd";
    	while(1) {
    		switch(select(" ~ Purchase ^0055FF"+getitemname([email protected][0])+"^000000:"+(([email protected] && [email protected][7])?" ~ Preview...":"")+": ~ ^777777Cancel^000000")) {
    		case 1:
    			if (@qe[0]) {
    				mes "[Quest Shop]";
    				mes "You're missing one or more quest requirements.";
    				close;
    			}
    			if (!checkweight([email protected][0],[email protected][2])) {
    				mes "[Quest Shop]";
    				mes "^FF0000You need "+((([email protected][2]*getiteminfo([email protected][0],6))+Weight-MaxWeight)/10)+" additional weight capacity to complete this trade.^000000";
    				close;
    			}
    			if ([email protected][4]) set Zeny, Zeny-([email protected][4]*[email protected][1]);
    			if ([email protected][5]) setd .Points$[0], getd(.Points$[0])-([email protected][5]*[email protected][1]);
    			if ([email protected][6]) for(set [email protected],6; [email protected]<getarraysize([email protected]q); set [email protected]i,[email protected]i+2)
    				delitem [email protected]q[[email protected]i],[email protected]q[[email protected]i+1]*[email protected]q[1];
    			getitem [email protected]q[0],[email protected]q[2];
    			if (.Announce) announce strcharinfo(0)+" has created "+(([email protected]q[2] > 1)[email protected][2]+"x "+getitemname([email protected][0]):callfunc("F_InsertArticle",getitemname([email protected][0])))+"!",0;
    			specialeffect2 EF_FLOWERLEAF;
    			close;
    		case 2:
    			setarray @qe[3], getlook(LOOK_HEAD_BOTTOM), getlook(LOOK_HEAD_TOP), getlook(LOOK_HEAD_MID), getlook(LOOK_ROBE), 1;
    			if ((@qe[1] & 1) || (@qe[1] & 4096)) changelook LOOK_HEAD_BOTTOM, @qe[2];
    			else if ((@qe[1] & 256) || (@qe[1] & 1024)) changelook LOOK_HEAD_TOP, @qe[2];
    			else if ((@qe[1] & 512) || (@qe[1] & 2048)) changelook LOOK_HEAD_MID, @qe[2];
    			else if ((@qe[1] & 4) || (@qe[1] & 8192)) changelook LOOK_ROBE, @qe[2];
    			break;
    		case 3:
    			close;
    		}
    	}
    
    OnEnd:
    	if (@qe[7]) {
    		changelook LOOK_HEAD_BOTTOM, @qe[3];
    		changelook LOOK_HEAD_TOP, @qe[4];
    		changelook LOOK_HEAD_MID, @qe[5];
    		changelook LOOK_ROBE, @qe[6];
    	}
    	deletearray @qe[0],8;
    	end;
    
    function Add {
    	if (getitemname(getarg(1)) == "null") {
    		debugmes "Quest reward #"+getarg(1)+" invalid (skipped).";
    		return;
    	}
    	setarray [email protected][0],getarg(2),getarg(3),getarg(4);
    	for(set [email protected],5; [email protected]<getargcount(); set [email protected],[email protected]+2) {
    		if (getitemname(getarg([email protected])) == "null") {
    			debugmes "Quest requirement #"+getarg([email protected])+" invalid (skipped).";
    			return;
    		} else
    			setarray [email protected][[email protected]],getarg([email protected]),getarg([email protected]+1);
    	}
    	copyarray getd(".q_"+getarg(0)+"_"+getarg(1)+"[0]"),[email protected][0],getarraysize([email protected]);
    	npcshopadditem "qshop"+getarg(0),getarg(1),((.ShowZeny)?getarg(3):0);
    	return;
    }
    
    function Chk {
    	if (getarg(0) < getarg(1)) {
    		set @qe[0],1;
    		return "^FF0000";
    	} else
    		return "^00FF00";
    }
    
    function Slot {
    	set [email protected]$,getitemname(getarg(0));
    	switch(.ShowSlot) {
    		case 1: if (!getitemslots(getarg(0))) return [email protected]$;
    		case 2: if (getiteminfo(getarg(0),2) == 4 || getiteminfo(getarg(0),2) == 5) return [email protected]$+" ["+getitemslots(getarg(0))+"]";
    		default: return [email protected]$;
    	}
    }
    }
    
    function	script	qshop	{
    	deletearray @i[0],getarraysize(@i);
    	for(set [email protected],0; [email protected]<getargcount(); set [email protected],[email protected]+1)
    		set @i[[email protected]],getarg([email protected]);
    	doevent "quest_shop::OnMenu";
    	end;
    }

    how to put shop number 4 properly in this script?
    i tried a lot but it wouldn't work

    pls help thanks!

  5. 6 minutes ago, Kokak said:
    new_1-1,139,107,4	script	First 500	871,{
    if( !#First_275 ) {
    	set #First_275,1;
    	$count++;
    	setarray .rewardssss[0],18642,18643,18644;
    	set $rewardssss,.rewardssss[rand(getarraysize(.rewardssss))];
    	mes "Welcome to Ragnarok Online.";
    	mes "You received 1 random lower headgear as a freebie.";
    	getitembound $rewardssss,1,Bound_Account;
    	close;
    } else if( $count == 275 ) {
    	mes "Times Up! 275 players already got the reward!";
    	close;
    } else {
    	mes "You have claimed the Reward already.";
    	close;
    }
    }

     

    hello sir, thanks for replying
    actually i wanted to make the rewards only for account number 2000001 to 2000275
    not simply 275 people

    how can i fix that? thanks
     

     

  6. 2 minutes ago, Haruka Mayumi said:

    change 

    Freebiesa1

    to

     

    #Freebiesa1

     

    3 minutes ago, Haruka Mayumi said:

    change 

    Freebiesa1

    to

     

    #Freebiesa1
    prontera,166,190,4	script	Pre-Register Rewards	510,{
    if( !Freebiesa313 && getcharid(3) < 2000275 ){
    set #Freebiesa313,1;
    mes "Welcome to Arrival RO. Please Take your rewards.";
    	getitembound 12411,2,Bound_Account;
    	getitembound 12264,2,Bound_Account;
    	getitembound 50002,1,Bound_Account;
    }
    
    else	{
    mes "You either have claimed your reward or didn't participate in Pre register Event";
    }
    close;
    }	

    that's my current script
    and it still gives rewards to every characters in 1 account. 😞 

  7. 24 minutes ago, Haruka Mayumi said:
    	getitembound 12411,2,Bound_Account;
    	getitembound 12264,2,Bound_Account;
    	getitembound 50002,1,Bound_Account;  

     

    hello haruka, thanks for replying

    actually that's not what i mean.

    I want to make those rewards can only be claimed once for every account
    for example account 2000011 has 5 chars. 1 already claimed the rewards, the rest cannot claim it again.||

    how to do it?


     

  8. prontera,166,190,4	script	Pre-Register Rewards	510,{
    if( !Freebiesa1 && getcharid(3) < 2000275 ){
    set Freebiesa1,1;
    mes "Welcome to Arrival RO. Please Take your rewards.";
    	getitem 12411,2;
    	getitem 12264,2;
    	getitem 50002,1;  
    }
    
    else	{
    mes "You either have claimed your reward or didn't participate in Pre register Event";
    }
    close;
    }	

    This is my current script
    I want to give rewards to the first 275 Account Registered
    But unfortunately it's not account based and gives every characters in the accounts rewards.
    how can i make it only gives rewards to 1 character only for first 275 accounts?

    Please Help, Thanks

  9. function	script	gacha1	{
    	setarray .i1[1],909,908,521,575,512,531,558,533,514; // Common Items
    	set .i1rand,rand(1,9); // Randomize Common Items; just change max amount if you add items
    	setarray .i2[1],40740,40929,40777,40786,40776,40785,40517,40590; // Rare Items
    	set .i2rand,rand(1,8); // Randomize Rare Items; just change max amount if you add items
    	setarray .i3[1],41161,41156,20500,20727,40591; // Super Rare Items
    	set .i3rand,rand(1,5); //Randomize Super Rare Items; just change max amount if you add items
    	setarray .i4[1],24004,24010; // Hyper Rare Items
    	set .i4rand,rand(1,2); //Randomize Super Rare Items; just change max amount if you add items
    	set .chance, rand(100);
    
    
    		// Hyper Rare Item
    		if (.chance < 1){
    		getitem .i4[.i4rand],1;
    		announce "["+strcharinfo(0)+"] won a ["+getitemname(.i4[.i4rand])+"] super rare.",0;
    		end;
    		} 
    
    		// Super Rare Item
    		else if (.chance < 4){
    		getitem .i3[.i3rand],1;
    		announce "["+strcharinfo(0)+"] won a ["+getitemname(.i3[.i3rand])+"] rare.",0;
    		end;
    		} 
    
    		// Rare Item
    		else if (.chance < 15){
    		getitem .i2[.i2rand],1;
    		announce "["+strcharinfo(0)+"] won a ["+getitemname(.i2[.i2rand])+"] ga begitu rare.",0;
    		end;
    		} 
    
    		// Common Items
    		else {
    		getitem .i1[.i1rand],1;
    		end; 
    		}
    }

    I want to make the "Hyper Rare Item" become 0,5% chance.
    how can i make it like that?
    please help, thanks a lot

  10. 16 minutes ago, Haruka Mayumi said:

    4 possible problem..

    1. the most common sense is it was really unknown account and was not on your db..
    2. your server gepard_shield.conf is off, but your client side is enabled. or vice versa, gepard_shield.conf is on but client side is disabled.
    3. client doesn't have all the files related to gepard such as mss32.dll, msvcp and msvcr sent by functor..
    4. maybe it was not functor you contact?

    thanks alot that solved my problem. problem is number 2!!
    thanks everyone

  11. Hi, im using latest FluxCP... and im using custom theme, but i got problem on CMS,

    gambar.png.eb227a829a58feddc4328a529e13f669.png

    the tittle always say "Current Server Status", when i tried to create pages, its works...

    gambar.png.6adbef4cabccfe09e28ad8fd0e512ceb.png

    and manages pages working well...

    but when i go to path files, or edit,  tittle always "Current Server Status"

    gambar.png.2231d45983bd882a2ff5fddd1964265c.png

     

    maybe someone can help me?. sory for my bad english sir...

  12. //===== rAthena Script =======================================
    //= Euphy's WOE Controller
    //===== By: ==================================================
    //= Euphy
    //===== Current Version: =====================================
    //= 1.5
    //===== Compatible With: =====================================
    //= rAthena Project
    //===== Description: =========================================
    //= A controller for War of Emperium designed for
    //= simplicity and ease of use.
    //= Many concepts taken from ToastOfDoom's script,
    //= and "rewards" function originally by Goddameit.
    //===== Additional Comments: =================================
    //= Be sure to disable the default agit controllers!
    //== npc\guild\agit_controller.txt
    //== npc\guild2\agit_start_se.txt
    //============================================================
    
    // Information NPC
    //============================================================
    poblacion,167,161,4	script	WOE Information	2_BULLETIN_BOARD,{
    	doevent "WOE_CONTROL::OnMenu";
    	end;
    OnAgitStart:
    	while(agitcheck()) {
    		specialeffect 32;
    		sleep 425;
    	}
    	end;
    OnInit:
    	waitingroom "~ WoE Schedule ~",0;
    	end;
    }
    
    // Script Core
    //============================================================
    -	script	WOE_CONTROL	-1,{
    function Disp_Owner; function Add_Zero;
    
    OnInit:
    // -----------------------------------------------------------
    //  Configuration settings.
    // -----------------------------------------------------------
    
    	set .CastleWarp,0;		// 1: Always enable all castle warps. | 0: Warp only to active castles.
    	set .AutoKick,1;		// Automatically kick players from inactive castles during WOE? (1:yes / 0:no)
    	set .NoOwner,1; 		// Automatically kick players from unconquered castles outside of WOE? (1:yes / 0:no)
    	set .ExitWarp,0;		// Warp all players from castles when WOE ends? (1:yes / 0:no)
    	set .GMAccess,99;		// GM level required to access Session Manager.
    
    // -----------------------------------------------------------
    //  Reward options.
    // -----------------------------------------------------------
    //  [1] Enable rewards.
    //  [2] Mail all rewards.
    //      - If not set, players receive items in their inventory.
    //      - Only ONE item can be sent via mail, plus Zeny.
    //      - Note that offline players do NOT receive rewards.
    //  [4] Only reward Guild Masters.
    //      - If not set, all guild members are rewarded.
    //      - If mailing is enabled (option 2), offline Guild Masters WILL receive rewards.
    //  [8] Duplicate IP check.
    //      - Members in a guild with the same IP address are not rewarded.
    //      - If Guild Masters is enabled (option 4), this feature is not used.
    // -----------------------------------------------------------
    
    	// Combine values as needed (e.g. 1|8 = 1+8 = 9).
    	set .Options, 1|4;
    
    	// Rewards per castle.
    	// -- when given directly: <itemID>,<amount>{,<itemID>,<amount>,...}
    	// -- via mail (option 2): <itemID>,<amount>,<Zeny>
    	setarray .Reward[0],6376,2000;
    
    // -----------------------------------------------------------
    //  Constants (leave this section alone).
    // -----------------------------------------------------------
    
    	setarray .Castles$[0],
    		"prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05",
    		"payg_cas01","payg_cas02","payg_cas03","payg_cas04","payg_cas05",
    		"gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05",
    		"aldeg_cas01","aldeg_cas02","aldeg_cas03","aldeg_cas04","aldeg_cas05",
    		"arug_cas01","arug_cas02","arug_cas03","arug_cas04","arug_cas05",
    		"schg_cas01","schg_cas02","schg_cas03","schg_cas04","schg_cas05";
    	setarray .EndLabel$[0],"ar01","ar02","ar03","ar04","ar05","sc01","sc02","sc03","sc04","sc05";
    	setarray .Days$[0],"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday";
    	setarray .Regions$[0],"Prontera","Payon","Geffen","Aldebaran","Arunafeltz","Schwaltzvalt";
    	setarray .Map$[0],"prt_gld","pay_gld","gef_fild13","alde_gld","aru_gld","sch_gld";
    	setarray .MapX[0],134,240,153,111,208,121,295,317,140,204,214,308,143,193,305,48, 95,142,239,264,158,83, 68,299,292,293,288, 97,137, 71;
    	setarray .MapY[0], 65,128,137,240,240,233,116,293,160,266, 75,240,240,278, 87,83,249, 85,242, 90,272,47,155,345,107,100,252,196, 90,315;
    
    // -----------------------------------------------------------
    
    	set .Size, getarraysize($WOE_CONTROL);
    	if (.AutoKick || .NoOwner)
    		for(set [email protected],0; [email protected]<30; set [email protected],[email protected]+1) {
    			setmapflag .Castles$[[email protected]], mf_loadevent;
    			setd "."+.Castles$[[email protected]], [email protected];
    		}
    	if (!agitcheck() && !agitcheck2()) sleep 4000;
    	set .Init,1;
    
    OnMinute00:
    	freeloop(1);
    	if (agitcheck() || agitcheck2()) {
    		for(set [email protected],0; [email protected]<.Size; set [email protected],[email protected]+4)
    			if (gettime(DT_DAYOFWEEK) == $WOE_CONTROL[[email protected]] && gettime(DT_HOUR) == $WOE_CONTROL[[email protected]+2]) {
    			OnWOEEnd:
    				announce "The War Of Emperium is over!",bc_all|bc_woe;
    				AgitEnd; AgitEnd2;
    				sleep 1000;
    				for(set [email protected],0; [email protected]<30; set [email protected],[email protected]+1) {
    					if (.Active[0]&(1<<[email protected])) Disp_Owner(.Castles$[[email protected]],1);
    					if (.ExitWarp) maprespawnguildid .Castles$[[email protected]],0,3;
    				}
    				if ((.Options&1) && .Active[0] && .ForceEnd != 2) callsub OnReward, .Active[0];
    				deletearray .Active[0],2;
    				if (.ForceEnd) { set .ForceEnd,0; end; }
    				break;
    			}
    	}
    	if ((!agitcheck() && !agitcheck2()) || .Init) {
    		if (!agitcheck() && !agitcheck2()) set .Init,0;
    		for(set [email protected],0; [email protected]<.Size; set [email protected],[email protected]+4)
    			if (gettime(DT_DAYOFWEEK) == $WOE_CONTROL[[email protected]] && gettime(DT_HOUR) >= $WOE_CONTROL[[email protected]+1] && gettime(DT_HOUR) < $WOE_CONTROL[[email protected]+2]) {
    				deletearray .Active[0],2;
    				set .Active[0], $WOE_CONTROL[[email protected]+3];
    				if (.Init) { AgitEnd; AgitEnd2; }
    				else announce "The War Of Emperium has begun!",bc_all|bc_woe;
    				sleep 1000;
    				AgitStart; AgitStart2;
    				for(set [email protected],0; [email protected]<30; set [email protected],[email protected]+1) {
    					if (.Active[0]&(1<<[email protected])) {
    						if (!.Init) Disp_Owner(.Castles$[[email protected]],0);
    						set .Active[1], .Active[1] | (1<<(([email protected]/5)+1));
    					} else {
    						if ([email protected]<20) {
    							donpcevent "Agit#"+.Castles$[[email protected]]+"::OnAgitEnd";
    							killmonster .Castles$[[email protected]], "Agit#"+.Castles$[[email protected]]+"::OnAgitBreak";
    						} else {
    							donpcevent "Manager#"+.Castles$[[email protected]]+"::OnAgitEnd2";
    							killmonster .Castles$[[email protected]], "Steward#"+.EndLabel$[[email protected]]+"::OnStartArena";
    						}
    					}
    				}
    				break;
    			}
    	}
    	set .Init,0;
    	end;
    
    function Disp_Owner {
    	set [email protected], getcastledata(getarg(0),1);
    	if ([email protected]) announce "The ["+getcastlename(getarg(0))+"] castle "+((getarg(1))?"has been conquered":"is currently held")+" by the ["+getguildname([email protected])+"] guild.",bc_all|bc_woe;
    	else announce "The ["+getcastlename(getarg(0))+"] castle is currently unoccupied.",bc_all|bc_woe;
    	return;
    }
    function Add_Zero {
    	return ((getarg(0)<10)?"0":"")+getarg(0)+(getarg(1,0)?".":":")+"00";
    }
    
    OnReward:
    	set [email protected]$, ((.Options&4)?"position = 0":"online = 1");
    	if (.Options&2) set [email protected]$,gettimestr("%B %d, %Y",21);
    	freeloop(1);
    	for(set [email protected],0; [email protected]<30; set [email protected],[email protected]+1)
    		if (getarg(0)&(1<<[email protected])) {
    			set [email protected], getcastledata(.Castles$[[email protected]],1);
    			if ([email protected]) continue;
    			set [email protected], query_sql("SELECT account_id,char_id FROM `guild_member` WHERE guild_id = '"[email protected]+"' AND "[email protected]$,[email protected],[email protected]);
    			for(set [email protected],0; [email protected]<[email protected]; set [email protected],[email protected]+1) {
    				if ((.Options&8) && !(.Options&4)) {
    					set [email protected]$, replacestr(getcharip([email protected][[email protected]]),".","a");
    					if (getd("[email protected]_"[email protected]+"_"[email protected]$)) continue;
    					setd "[email protected]_"[email protected]+"_"[email protected]$,1;
    				}
    				if (.Options&2) {
    					query_sql("INSERT INTO `mail` (send_name,dest_id,title,message,nameid,amount,identify,zeny,time) VALUES ("+
    					          "'no-reply',"[email protected][[email protected]]+",'** Siege Reward: "+getcastlename(.Castles$[[email protected]])+" **',"+
    					          "'Brave one,% % Congratulations!% Your guild has successfully occupied% territory in the War of Emperium on% "[email protected]$+".% % % % % [ Your reward is attached. ]',"+
    					          .Reward[0]+","+.Reward[1]+",0,"+.Reward[2]+",UNIX_TIMESTAMP(NOW()))");
    					if (!getd("[email protected]_"[email protected][[email protected]]) && isloggedin([email protected][[email protected]],[email protected][[email protected]])) {
    						setd "[email protected]_"[email protected][[email protected]],1;
    						message rid2name([email protected][[email protected]]),"You've got mail! Please re-login to update your mailing list.";
    					}
    				} else if (isloggedin([email protected][[email protected]])) {
    					for(set [email protected],0; [email protected]<getarraysize(.Reward); set [email protected],[email protected]+2)
    						getitem .Reward[[email protected]], .Reward[[email protected]+1], [email protected][[email protected]];
    					message rid2name([email protected][[email protected]]),"You have been rewarded for conquering "+getcastlename(.Castles$[[email protected]])+".";
    				}
    			}
    		}
    	if (.Options&2) query_sql("UPDATE `mail` SET message = REPLACE(message,'%',CHAR(13)) WHERE send_name = 'no-reply'");
    	return;
    
    OnPCLoadMapEvent:
    	if (!compare(strcharinfo(3),"g_cas")) end;
    	if (((.AutoKick && .Active[0]) || (.NoOwner && !getcastledata(strcharinfo(3),1))) && !(.Active[0]&(1<<getd("."+strcharinfo(3))))) {
    		if (getcharid(2) && getcastledata(strcharinfo(3),1) == getcharid(2)) end;
    		sleep2 500;
    		message strcharinfo(0), getcastlename(strcharinfo(3))+" is currently inactive.";
    		sleep2 1500;
    		if (compare(strcharinfo(3),"g_cas")) warp "SavePoint",0,0;
    	}
    	end;
    
    OnMenu:
    while(1) {
    	mes "[WOE Information]";
    	if (agitcheck() || agitcheck2()) {
    		if (.Active[0]) {
    			for(set [email protected],0; [email protected]<.Size; set [email protected],[email protected]+4)
    				if (gettime(DT_DAYOFWEEK) == $WOE_CONTROL[[email protected]] && gettime(DT_HOUR) >= $WOE_CONTROL[[email protected]+1] && gettime(DT_HOUR) < $WOE_CONTROL[[email protected]+2]) {
    					set [email protected], $WOE_CONTROL[[email protected]+2];
    					break;
    				}
    			mes "The War of Emperium is ^0055FFactive^000000 until ^FF0000"+Add_Zero([email protected])+"^000000 in the following regions:";
    			mes " ";
    			for(set [email protected],0; [email protected]<6; set [email protected],[email protected]+1)
    				if (.Active[1]&(1<<([email protected]+1))) mes " > ^777777"+.Regions$[[email protected]]+"^000000";
    		} else
    			mes "The War of Emperium is ^0055FFactive^000000.";
    	} else {
    		for(set [email protected],0; [email protected]<.Size; set [email protected],[email protected]+4)
    			if ((gettime(DT_DAYOFWEEK) == $WOE_CONTROL[[email protected]] && gettime(DT_HOUR) <= $WOE_CONTROL[[email protected]+1]) || gettime(DT_DAYOFWEEK) < $WOE_CONTROL[[email protected]]) {
    				setarray [email protected][0],$WOE_CONTROL[[email protected]],$WOE_CONTROL[[email protected]+1];
    				break;
    			}
    		if (!getarraysize([email protected]))
    			setarray [email protected][0],$WOE_CONTROL[0],$WOE_CONTROL[1];
    		mes "The War of Emperium is ^777777inactive^000000.";
    		if (.Size) {
    			mes " ";
    			mes "The next session will begin";
    			mes "on ^0055FF"+.Days$[[email protected][0]]+"^000000 at "+Add_Zero([email protected][1])+"^000000.";
    		}
    	}
    	next;
    	switch(select(""+((.CastleWarp || .Active[1])?" ~ Warp to castles...":"")+": ~ Check schedule...: ~ View castle owners...:"+((getgmlevel()<.GMAccess || !getgmlevel())?"":" ~ Manage sessions...")+": ~ ^777777Cancel^000000")) {
    	case 1:
    		if (.CastleWarp) set [email protected]$,"^0055FF";
    		set [email protected]$,"";
    		for(set [email protected],0; [email protected]<6; set [email protected],[email protected]+1) {
    			if (.CastleWarp || .Active[1]&(1<<([email protected]+1)))
    				set [email protected]$, [email protected]$+" ~ "+((.Active[1]&(1<<([email protected]+1)))[email protected]$:"^777777")+.Regions$[[email protected]]+" Castles^000000";
    			set [email protected]$, [email protected]$+":";
    		}
    		set [email protected], select([email protected]$)-1;
    		set [email protected]$,"";
    		for(set [email protected],[email protected]*5; [email protected]<([email protected]*5)+5; set [email protected],[email protected]+1) {
    			if (.CastleWarp || .Active[0]&(1<<[email protected]))
    				set [email protected]$, [email protected]$+" ~ "+((.Active[0]&(1<<[email protected]))[email protected]$:"^777777")+getcastlename(.Castles$[[email protected]])+"^000000";
    			set [email protected]$, [email protected]$+":";
    		}
    		set [email protected], select([email protected]$)-1;
    		warp .Map$[[email protected]],.MapX[([email protected]*5)[email protected]],.MapY[([email protected]*5)[email protected]];
    		close;
    	case 2:
    		mes "[Schedule]";
    		if (.Size) {
    			freeloop(1);
    			for(set [email protected],0; [email protected]<.Size; set [email protected],[email protected]+4) {
    				mes "> ^FF0000"+.Days$[$WOE_CONTROL[[email protected]]]+" ("+Add_Zero($WOE_CONTROL[[email protected]+1])+"-"+Add_Zero($WOE_CONTROL[[email protected]+2])+")^000000";
    				for(set [email protected],0; [email protected]<30; set [email protected],[email protected]+1)
    					if ($WOE_CONTROL[[email protected]+3]&(1<<[email protected])) mes "  ~ "+getcastlename(.Castles$[[email protected]])+" ^777777("+.Castles$[[email protected]]+")^000000";
    				if ([email protected]+4 < .Size) mes " ";
    			}
    			freeloop(0);
    		} else
    			mes "No times are configured.";
    		next;
    		break;
    	case 3:
    		mes "[Castle Ownership]";
    		for(set [email protected],0; [email protected]<6; set [email protected],[email protected]+1) {
    			set [email protected], [email protected]*5;
    			mes "> ^FF0000"+.Regions$[[email protected]]+"^000000";
    			for(set [email protected],[email protected]; [email protected]<([email protected]+5); set [email protected],[email protected]+1) { 
    				set [email protected], getcastledata(.Castles$[[email protected]],1);
    				mes "  ~ "+getcastlename(.Castles$[[email protected]])+": "+(([email protected])?"^0055FF"+getguildname([email protected]):"^777777unoccupied")+"^000000";
    			}
    			if ([email protected] < 5) mes " ";
    		}
    		next;
    		break;
    	case 4:
    	while(1) {
    		mes "[Session Manager]";
    		mes "There are ^0055FF"+(.Size/4)+" session(s)^000000 configured.";
    		mes "What would you like to do?";
    		next;
    		switch(select(" ~ Add a session...: ~ Delete a session...: ~ Reload settings...:"+((agitcheck() || agitcheck2())?" ~ End WOE session...":"")+": ~ ^777777Go back^000000")) {
    		case 1:
    			mes "[New Session]";
    			if (.Size > 127) {
    				mes "You have already reached the maximum of 32 sessions.";
    				next;
    				break;
    			}
    			mes "Select a day.";
    			next;
    			set [email protected], select(" ~ "+implode(.Days$,": ~ "))-1;
    			mes "[New Session]";
    			mes "Select a start time for ^0055FF"+.Days$[[email protected]]+"^000000.";
    			next;
    			set [email protected]$,"";
    			for(set [email protected],0; [email protected]<23; set [email protected],[email protected]+1)
    				set [email protected]$, [email protected]$+" ~ "+Add_Zero([email protected],1)+":";
    			set [email protected], select([email protected]$)-1;
    			mes "[New Session]";
    			mes "Select an end time for ^0055FF"+.Days$[[email protected]]+"^000000.";
    			next;
    			set [email protected]$,"";
    			for(set [email protected],[email protected]+1; [email protected]<24; [email protected],[email protected]+1)
    				set [email protected]$, [email protected]$+" ~ "+Add_Zero([email protected],1)+":";
    			set [email protected], select([email protected]$)[email protected];
    			for(set [email protected],0; [email protected]<.Size; set [email protected],[email protected]+4)
    				if ([email protected] == $WOE_CONTROL[[email protected]] &&
    				   (([email protected] >= $WOE_CONTROL[[email protected]+1] && [email protected] < $WOE_CONTROL[[email protected]+2]) ||
    				    ([email protected] > $WOE_CONTROL[[email protected]+1] && [email protected] <= $WOE_CONTROL[[email protected]+2]) ||
    				    ([email protected] <= $WOE_CONTROL[[email protected]+1] && [email protected] >= $WOE_CONTROL[[email protected]+2]))) {
    					mes "[New Session]";
    					mes "The chosen times overlap with an existing session.";
    					next;
    					set [email protected],1;
    					break;
    				}
    			if ([email protected]) { set [email protected],0; break; }
    			set [email protected],0;
    			while(1) {
    				mes "[New Session]";
    				mes "^0055FF"+.Days$[[email protected]]+" ("+Add_Zero([email protected])+"-"+Add_Zero([email protected])+")^000000";
    				mes " > Castles:";
    				if ([email protected])
    					mes "   ~ ^777777(none selected)^000000";
    				else for(set [email protected],0; [email protected]<30; set [email protected],[email protected]+1)
    					if ([email protected]&(1<<[email protected])) mes "   ~ "+getcastlename(.Castles$[[email protected]])+" ("+.Castles$[[email protected]]+")";
    				next;
    				set [email protected]$,(([email protected])?" ~ ^FF0000Finished...^000000":"")+":";
    				for(set [email protected],0; [email protected]<30; set [email protected],[email protected]+1)
    					set [email protected]$, [email protected]$+" ~ "+(([email protected]&(1<<[email protected]))?"^0055FF":"")+getcastlename(.Castles$[[email protected]])+" ("+.Castles$[[email protected]]+")^000000:";
    				set [email protected], select([email protected]$)-1;
    				if ([email protected])
    					set [email protected], [email protected]^(1<<([email protected]));
    				else {
    					mes "[New Session]";
    					mes "Are you sure?";
    					next;
    					switch(select(" ~ ^0055FFAdd session...^000000: ~ Continue selecting castles...: ~ ^777777Cancel^000000")) {
    					case 1:
    						for(set [email protected],0; [email protected]<.Size; set [email protected],[email protected]+4)
    							if (([email protected] == $WOE_CONTROL[[email protected]] && [email protected] <= $WOE_CONTROL[[email protected]+1]) || [email protected] < $WOE_CONTROL[[email protected]]) {
    								set [email protected],1;
    								break;
    							}
    						if ([email protected]) { set [email protected],1; set [email protected],.Size; }
    						copyarray $WOE_CONTROL[[email protected]+4], $WOE_CONTROL[[email protected]], [email protected];
    						setarray $WOE_CONTROL[[email protected]], [email protected], [email protected], [email protected], [email protected];
    						set .Size, getarraysize($WOE_CONTROL);
    					case 3:
    						mes "[New Session]";
    						mes (([email protected])?"Session added.":"cancelled.");
    						next;
    						set [email protected],1;
    					case 2:
    						break;
    					}
    					if ([email protected]) { set [email protected],0; break; }
    				}
    			}
    			break;
    		case 2:
    			mes "[Remove Session]";
    			if (!.Size) {
    				mes "There are no sessions configured.";
    				next;
    				break;
    			}
    			mes "Select a session to remove.";
    			next;
    			set [email protected]$,"";
    			for(set [email protected],0; [email protected]<.Size; set [email protected],[email protected]+4)
    				set [email protected]$, [email protected]$+" ~ "+.Days$[$WOE_CONTROL[[email protected]]]+" ("+Add_Zero($WOE_CONTROL[[email protected]+1],1)+"-"+Add_Zero($WOE_CONTROL[[email protected]+2],1)+"):";
    			set [email protected]$, [email protected]$+" ~ ^777777Cancel^000000";
    			set [email protected], select([email protected]$)-1;
    			if ([email protected] == (.Size/4)) break;
    			mes "[Remove Session]";
    			mes "Delete ^0055FF"+.Days$[$WOE_CONTROL[[email protected]*4]]+"'s^000000 session?";
    			mes "This action cannot be undone.";
    			next;
    			set [email protected], select(" ~ ^FF0000Delete session...^000000: ~ ^777777Cancel^000000");
    			mes "[Remove Session]";
    			if ([email protected] == 2)
    				mes "cancelled.";
    			else {
    				deletearray $WOE_CONTROL[[email protected]*4],4;
    				set .Size, getarraysize($WOE_CONTROL);
    				mes "Session deleted.";
    			}
    			next;
    			break;
    		case 3:
    			mes "[Reload Settings]";
    			mes "This will trigger all events related to new session configurations, if any.";
    			if (agitcheck() || agitcheck2()) {
    				mes " ";
    				mes "Be aware that this will disrupt the current WOE session.";
    			}
    			next;
    			set [email protected], select(" ~ ^0055FFReload settings...^000000: ~ ^777777Cancel^000000");
    			mes "[Reload Settings]";
    			if ([email protected] == 2) mes "cancelled.";
    			else {
    				set .Init,1;
    				donpcevent "WOE_CONTROL::OnMinute00";
    				mes "Variables have been re-initialized.";
    			}
    			next;
    			break;
    		case 4:
    			mes "[Force Agit End]";
    			if (!agitcheck() && !agitcheck2())  {
    				mes "WOE has already ended.";
    				next;
    				break;
    			}
    			mes "This command will safely execute all AgitEnd events.";
    			mes " ";
    			mes "Kill the current WOE session?";
    			next;
    			set [email protected], select(" ~ ^FF0000End session...^000000:"+((.Options&1)?" ~ ^FF0000End session without rewards...^000000":"")+": ~ ^777777Cancel^000000");
    			mes "[Force Agit End]";
    			if ([email protected] == 3)
    				mes "cancelled.";
    			else {
    				set .ForceEnd, [email protected];
    				donpcevent "WOE_CONTROL::OnWOEEnd";
    				mes "WOE session terminated.";
    			}
    			next;
    			break;
    		case 5:
    			set [email protected],1; break;
    		}
    		if ([email protected]) { set [email protected],0; break; }
    		} break;
    	case 5:
    		close;
    	} }
    }

    I need help. I have tried many things to modify time settings in this script but it seemed i really failed 😞 . someone please help me if you dont mind. i need a half hour time options in the NPC. so for example i can set WoE starts from 20:00 and ends at 21:30.
    Thanks in advance

  13. I really have no idea, since i downgrade my client from 2018 to 2015 some of players experience long loading screen but only on some characters. it doesnt matter what town they visit it always takes about twice longer than usual. everytime changing map / selecting character. it will take about 2 seconds  for the BLACK SCREEN to finish, on normal characters it only takes about 1/2 second.
    Is there any way on how to fix this? Thanks in advance

  14. On 2/20/2020 at 11:25 PM, dev LOOLP said:

    all players? map crash ou cliente crash ?

    only some players. usually it happens when players get kicked out of the castles.
    no map crash. and after it we can just login normally again
    is there any way on how to fix this?

    Thanks for replying @dev LOOLP
     

  15. Can anyone help my analyze this crash log?
    this only happens during War of Emperium, and also happens to some players only.
    Thank you.
     

    Ragnarok has been crashed!
    
    UTC Time:       18/02/2020 14:23:32
    Local Time:     18/02/2020 21:23:32
    EXE version:    2018-06-21
    Gepard version: 2020021002
    
    OS version: Windows 10
    
    0x65e43da6 ----------
    0x65e4323a ----------
    0x65e43825 ----------
    0x65e4357c ----------
    0x008337ae ----------
    0x00830dd4 ----------
    0x00830c6d ----------
    0x004513db ----------
    0x004d3f82 ----------
    0x008378cd ----------
    0x0083907d ----------
    0x004416f3 ----------
    0x0044142f ----------
    0x009449b1 ----------
    0x00935d87 ----------
    
    EAX: 0x0000104d | 0000004173
    ECX: 0x00000042 | 0000000066
    EDX: 0x0077e500 | 0007857408
    EBX: 0x000077e5 | 0000030693
    ESI: 0x00000010 | 0000000016
    EDI: 0x00000000 | 0000000000
    ESP: 0x0019efd0 | 0001699792
    EBP: 0x0019f0b0 | 0001700016
    EIP: 0x65e43da6 | 1709456806
    DR0: 0x00000000 | 0000000000
    DR1: 0x00000000 | 0000000000
    DR2: 0x00000000 | 0000000000
    DR3: 0x00000000 | 0000000000
    DR6: 0x00000000 | 0000000000
    DR7: 0x00000000 | 0000000000
    
    =============================================================================
    
    RST: 0
    SST: 0
    CST: 0
    TCI: 1
    
    TL1: 0
    TL2: 136864
    TL3: 0
    
    =================================== Stack ===================================
    0019efd0:  c8 08 51 06 fc f0 19 00 00 00 00 00 e0 f0 19 00     Q             
    0019efe0:  dc f0 19 00 26 12 51 06 00 00 00 00 00 30 00 00       & Q      0  
    0019eff0:  38 00 03 00 ff ff ff ff dd ff ff ff 02 00 00 00   8               
    0019f000:  05 00 00 00 1e 01 00 00 00 00 00 00 ae da 08 77                  w
    0019f010:  00 00 00 00 e6 b0 09 77 08 09 51 06 42 00 00 00          w  Q B   
    0019f020:  2d db 08 77 c8 08 51 06 27 00 00 00 00 00 00 00   -  w  Q '       
    0019f030:  00 00 00 00 00 00 00 00 06 00 00 00 02 00 00 00                   
    0019f040:  04 00 00 00 0a 00 00 00 2c 00 00 00 5c 00 00 00           ,   \   
    0019f050:  40 00 00 00 0d 00 00 00 03 00 00 00 03 00 00 00   @               
    0019f060:  06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00                   
    0019f070:  00 00 00 00 00 00 00 00 06 00 00 00 0e 00 00 00                   
    0019f080:  20 00 00 00 4a 00 00 00 c0 00 00 00 dc 01 00 00       J           
    0019f090:  f8 03 00 00 fd 07 00 00 fd 0f 00 00 fd 1f 00 00                   
    0019f0a0:  00 40 00 00 00 80 00 00 00 00 01 00 b8 3f 49 bc    @           ?I 
    0019f0b0:  e4 f0 19 00 3a 32 e4 65 c8 08 51 06 e0 f0 19 00       :2 e  Q     
    0019f0c0:  00 00 00 00 00 00 00 00 0d 00 00 00 ae da 08 77                  w
    0019f0d0:  38 d6 00 00 66 31 e4 65 09 00 00 00 38 00 03 00   8   f1 e    8   
    0019f0e0:  38 d6 00 00 40 f1 19 00 25 38 e4 65 50 58 c5 75   8   @   %8 ePX u
    0019f0f0:  38 d6 00 00 80 f2 19 00 69 8b e4 65 ae da 08 77   8       i  e   w
    0019f100:  38 d6 00 00 00 00 00 00 00 00 00 00 38 00 03 00   8           8   
    0019f110:  00 00 00 00 00 00 00 00 c8 08 51 06 40 2e e4 65             Q @. e
    0019f120:  60 2e e4 65 00 00 00 00 00 00 00 00 00 00 00 00   `. e            
    0019f130:  00 00 00 00 b0 5d e5 65 40 00 00 00 58 f2 19 00        ] [email protected]   X   
    0019f140:  58 f2 19 00 7c 35 e4 65 80 f2 19 00 e8 d2 8e 04   X   |5 e        
    0019f150:  4c f3 19 00 ae da 08 77 7e 34 e4 65 ae 37 83 00   L      w~4 e 7  
    INIT: 15 : 14 : 0
    
    VSYNC: 1
    
    LL/LLD: 67/a9
    
    =============================================================================
    
    Loaded GRFs:
    
    [0] data00.grf
    [1] data01.grf
    [2] palettes.grf
    [3] data.grf
    [4] rdata.grf
    
    =============================================================================
    
    Network packet's statistic:
    
    s_bytes: 1 Kbytes
    r_bytes: 192 Kbytes
    
    s_packets ->: 92
    r_packets <-: 9235
    
    00# <- d7013b891e000703000000 [625 ms]
    01# <- fd096000003b891e00e255020058020000020000000000aa0f0d0052064b08000061e038f348004a0503000300000000000500000006000000040000000001104751107488050563000000ffffffffffffffff0000004576616e67656c696f6e [625 ms]
    02# <- 2902e0841e00000000000000000000 [625 ms]
    03# <- 2902e1891e00000000000000000000 [625 ms]
    04# <- cb096e010a0000003f881e003f881e0001 [625 ms]
    05# <- 830971003f881e00013075000030750000010000000000000000000000 [625 ms]
    06# <- 0701d5871e0040008400 [625 ms]
    07# <- 07015e861e004200a200 [625 ms]
    08# <- 8800e1891e0041007400 [625 ms]
    09# <- 2902e1891e00000002000000000000 [625 ms]
    10# <- de012f0035891e00e1891e0050e038f300000000ec020000470000000900010005 [625 ms]
    11# <- 8800f68a1e0042007600 [625 ms]
    12# <- 2902f68a1e00000004000000000000 [625 ms]
    13# <- de012f0035891e00f68a1e0050e038f300000000d0010000730000000900010005 [625 ms]
    14# <- 880029881e0040007400 [625 ms]
    15# <- de012f0035891e0029881e0050e038f300000000e0010000580000000900010005 [625 ms]
    16# <- 9c00e9891e00000000 [625 ms]
    17# <- c808e9891e00e9891e0051e038f30000000000000000970000000000000400000000 [625 ms]
    18# <- 88003b891e0041007500 [625 ms]
    19# <- de012f0035891e003b891e0050e038f300000000f8020000970000000900010005 [625 ms]
    20# <- 880086851e0044007300 [625 ms]
    21# <- de012f0035891e0086851e0050e038f30000000078020000860000000900010005 [625 ms]
    22# <- 9c00e9891e00000000 [625 ms]
    23# <- c808e9891e00e9891e0051e038f30000000000000000d50000000000000400000000 [625 ms]
    24# <- 8800e3891e0043007300 [625 ms]
    25# <- de012f0035891e00e3891e0050e038f300000000f0020000d50000000900010005 [625 ms]
    26# <- 88009f8a1e0040007600 [625 ms]
    27# <- de012f0035891e009f8a1e0050e038f300000000f0020000090000000900010005 [625 ms]
    28# <- 8800e0841e0043007700 [625 ms]
    29# <- de012f0035891e00e0841e0050e038f30000000000020000740000000900010005 [625 ms]
    30# <- 880030881e0044007500 [625 ms]
    
    =============================================================================
    
    00# [ OK ] texture\effect\thunder_ball_f.bmp [1156 ms]
    01# [ OK ] texture\effect\thunder_ball_e.bmp [1156 ms]
    02# [ OK ] texture\effect\thunder_ball_d.bmp [1172 ms]
    03# [ OK ] texture\effect\thunder_ball_c.bmp [1172 ms]
    04# [ OK ] texture\effect\thunder_ball_b.bmp [1172 ms]
    05# [ OK ] texture\effect\thunder_ball_a.bmp [1172 ms]
    06# [ OK ] texture\effect\idun_apple.bmp [1281 ms]
    07# [ OK ] texture\effect\meteorstorm\meteor1.str [2125 ms]
    08# [ OK ] texture\effect\¹ö¼­Å©.str [3484 ms]
    09# [ OK ] texture\effect\explosive_1_128.bmp [3828 ms]
    10# [ OK ] texture\effect\cross_old.bmp [3828 ms]
    11# [ OK ] sprite\ÀÌÆÑÆ®\sight.act [4140 ms]
    12# [ OK ] sprite\ÀÌÆÑÆ®\sight.spr [4140 ms]
    13# [ OK ] sprite\¾Ç¼¼»ç¸®\³²\³²_»çŸ´ÐüÀÎ.spr [4625 ms]
    14# [ OK ] sprite\¾Ç¼¼»ç¸®\³²\³²_»çŸ´ÐüÀÎ.act [4625 ms]
    15# [ OK ] sprite\ÀÌÆÑÆ®\msg.act [4672 ms]
    16# [ OK ] sprite\ÀÌÆÑÆ®\msg.spr [4687 ms]
    17# [ OK ] sprite\ÀÌÆÑÆ®\¾óÀ½¶¯.act [4734 ms]
    18# [ OK ] sprite\ÀÌÆÑÆ®\¾óÀ½¶¯.spr [4734 ms]
    19# [ OK ] texture\effect\suffragium_min.str [4750 ms]
    20# [ OK ] palette\¸Ó¸®\¸Ó¸®7_¿©_5.pal [4922 ms]
    21# [ OK ] sprite\·Îºê\Ÿ¶ôõ»çÀdz¯°³\¿©\ÆÈ¶óµò_¿©.act [4922 ms]
    22# [ OK ] sprite\·Îºê\Ÿ¶ôõ»çÀdz¯°³\¿©\ÆÈ¶óµò_¿©.spr [4922 ms]
    23# [ OK ] imf\Å©·ç¼¼ÀÌ´õ_¿©.imf [4937 ms]
    24# [ OK ] texture\effect\asura16.tga [4937 ms]
    25# [ OK ] texture\effect\asura15.tga [4937 ms]
    26# [ OK ] texture\effect\asura14.tga [4937 ms]
    27# [ OK ] sprite\¾Ç¼¼»ç¸®\¿©\¿©_white_cat.spr [4953 ms]
    28# [ OK ] sprite\¾Ç¼¼»ç¸®\¿©\¿©_white_cat.act [4953 ms]
    29# [ OK ] sprite\¾Ç¼¼»ç¸®\¿©\¿©_°¡¶õ»ç½º°¡µå.spr [4953 ms]
    30# [ OK ] sprite\¾Ç¼¼»ç¸®\¿©\¿©_°¡¶õ»ç½º°¡µå.act [4953 ms]
    
    =============================================================================
    
    00000001 
    00000001 ..\ftwrk.lex
    00000001 D:\RO_HANGOUT\Hang Out Ragnarok\ProhibitionLog.gd
    00000013 savedata\MiniPartyInfo.lua
    
    =============================================================================

     

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.