Jump to content

Dolphin86

Members
  • Posts

    547
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by Dolphin86

  1. @mrfizi thanks for fast reply, but i still getting these error, its really matter much since it works as it suppose to, but i would love to see clean putty with no error

    Spoiler
    [Error]: buildin_doevent: fatal error ! player not attached!
    [Debug]: Function: doevent (1 parameter):
    [Debug]: Data: string value="Stylist::OnTalk"
    [Debug]: Source (NPC): Adv. Stylist#main at ilyo_kwan (209,124)
    [Debug]: Source (NPC): Adv. Stylist#main is located in: npc/custom/AdvanceStylist4.4.txt
    [Error]: buildin_mes: fatal error ! player not attached!
    [Debug]: Function: mes (1 parameter):
    [Debug]: Data: string value="[Rohayu]"
    [Debug]: Source (NPC): Rohayu at ilyo_kwan (141,121)
    [Debug]: Source (NPC): Rohayu is located in: npc/custom/CustomWarperNPC.txt
    [Error]: buildin_mes: fatal error ! player not attached!
    [Debug]: Function: mes (1 parameter):
    [Debug]: Data: string value="[Nisa]"
    [Debug]: Source (NPC): IlyoKwan#6 at comodo (191,153)
    [Debug]: Source (NPC): IlyoKwan#6 is located in: npc/custom/CustomWarperNPC.txt
    [Error]: buildin_mes: fatal error ! player not attached!
    [Debug]: Function: mes (1 parameter):
    [Debug]: Data: string value="[Cik Wan]"
    [Debug]: Source (NPC): IlyoKwan#4 at alberta (114,62)
    [Debug]: Source (NPC): IlyoKwan#4 is located in: npc/custom/CustomWarperNPC.txt
    [Error]: buildin_mes: fatal error ! player not attached!
    [Debug]: Function: mes (1 parameter):
    [Debug]: Data: string value="[Ilyana]"
    [Debug]: Source (NPC): IlyoKwan at prontera (151,187)
    [Debug]: Source (NPC): IlyoKwan is located in: npc/custom/CustomWarperNPC.txt
    [Error]: buildin_mes: fatal error ! player not attached!
    [Debug]: Function: mes (1 parameter):
    [Debug]: Data: string value="[Rozita]"
    [Debug]: Source (NPC): IlyoKwan#3 at geffen (115,70)
    [Debug]: Source (NPC): IlyoKwan#3 is located in: npc/custom/CustomWarperNPC.txt
    [Error]: buildin_mes: fatal error ! player not attached!
    [Debug]: Function: mes (1 parameter):
    [Debug]: Data: string value="[Atirah]"
    [Debug]: Source (NPC): IlyoKwan#1 at payon (165,105)
    [Debug]: Source (NPC): IlyoKwan#1 is located in: npc/custom/CustomWarperNPC.txt

     

     

  2. as title i did make a simple warper myself, but somehow i got these error in putty, but the npc works fine as it should have

    Spoiler
    [Error]: buildin_doevent: fatal error ! player not attached!
    [Debug]: Function: doevent (1 parameter):
    [Debug]: Data: string value="Stylist::OnTalk"
    [Debug]: Source (NPC): Adv. Stylist#main at ilyo_kwan (209,124)
    [Debug]: Source (NPC): Adv. Stylist#main is located in: npc/custom/AdvanceStylist4.4.txt
    [Error]: buildin_mes: fatal error ! player not attached!
    [Debug]: Function: mes (1 parameter):
    [Debug]: Data: string value="===========[Rohayu]============="
    [Debug]: Source (NPC): Rohayu at ilyo_kwan (141,121)
    [Debug]: Source (NPC): Rohayu is located in: npc/custom/CustomWarperNPC.txt
    [Error]: buildin_mes: fatal error ! player not attached!
    [Debug]: Function: mes (1 parameter):
    [Debug]: Data: string value="===========[Nisa]============="
    [Debug]: Source (NPC): IlyoKwan#6 at comodo (191,153)
    [Debug]: Source (NPC): IlyoKwan#6 is located in: npc/custom/CustomWarperNPC.txt
    [Error]: buildin_mes: fatal error ! player not attached!
    [Debug]: Function: mes (1 parameter):
    [Debug]: Data: string value="===========[Cik Wan]============="
    [Debug]: Source (NPC): IlyoKwan#4 at alberta (114,62)
    [Debug]: Source (NPC): IlyoKwan#4 is located in: npc/custom/CustomWarperNPC.txt
    [Error]: buildin_mes: fatal error ! player not attached!
    [Debug]: Function: mes (1 parameter):
    [Debug]: Data: string value="===========[Ilyana]============="
    [Debug]: Source (NPC): IlyoKwan at prontera (151,187)
    [Debug]: Source (NPC): IlyoKwan is located in: npc/custom/CustomWarperNPC.txt
    [Error]: buildin_mes: fatal error ! player not attached!
    [Debug]: Function: mes (1 parameter):
    [Debug]: Data: string value="===========[Rozita]============="
    [Debug]: Source (NPC): IlyoKwan#3 at geffen (115,70)
    [Debug]: Source (NPC): IlyoKwan#3 is located in: npc/custom/CustomWarperNPC.txt
    [Error]: buildin_mes: fatal error ! player not attached!
    [Debug]: Function: mes (1 parameter):
    [Debug]: Data: string value="===========[Atirah]============="
    [Debug]: Source (NPC): IlyoKwan#1 at payon (165,105)
    [Debug]: Source (NPC): IlyoKwan#1 is located in: npc/custom/CustomWarperNPC.txt
    [Error]: buildin_mes: fatal error ! player not attached!
    [Debug]: Function: mes (1 parameter):
    [Debug]: Data: string value="[Ripped]"
    [Debug]: Source (NPC): Ripped Cabus#GymPass at ilyo_kwan (94,98)
    [Debug]: Source (NPC): Ripped Cabus#GymPass is located in: npc/other/gympass.txt
    [Error]: buildin_mes: fatal error ! player not attached!
    [Debug]: Function: mes (1 parameter):
    [Debug]: Data: string value="===========[Diana]============="
    [Debug]: Source (NPC): IlyoKwan#2 at morocc (158,97)
    [Debug]: Source (NPC): IlyoKwan#2 is located in: npc/custom/CustomWarperNPC.txt
    [Error]: buildin_disableitemuse: fatal error ! player not attached!
    [Debug]: Function: disable_items (no parameters)
    [Debug]: Source (NPC): Wise Old Woman#eAcustom at ilyo_kwan (128,112)
    [Debug]: Source (NPC): Wise Old Woman#eAcustom is located in: npc/custom/card_remover.txt
    [Error]: buildin_mes: fatal error ! player not attached!
    [Debug]: Function: mes (1 parameter):
    [Debug]: Data: string value="===========[Rabiah]============="
    [Debug]: Source (NPC): IlyoKwan#5 at aldebaran (139,119)
    [Debug]: Source (NPC): IlyoKwan#5 is located in: npc/custom/CustomWarperNPC.txt

     

     

    here is the script :

    Spoiler
    //=================================================//
    //=============== ilyo_kwan========================//
    ilyo_kwan,141,121,5	script	Rohayu	113,{
    	OnInit:
    	waitingroom "Warper",0;
    	mes "===========[Rohayu]=============";
    	mes "Hello.";
    	mes "I can warp you to a few selected city for free";
    	next;
    	
    	switch(select("- Prontera:- Payon:- Morocc:- Geffen:- Alberta:- Aldebaran:- Comodo:- Save Here:- Exit"))
    	{
    		case 1:
    			warp "prontera",156,178; // Change this warp coordinates
    			end;
    		case 2:
    			warp "payon",165,59; // Change this warp coordinates
    			end;
    		case 3:
    			warp "morocc",160,85; // Change this warp coordinates
    			end;
    		case 4:
    			warp "geffen",119,67; // Change this warp coordinates
    			end;
    		case 5:
    			warp "alberta",117,57; // Change this warp coordinates
    			end;
    		case 6:
    			warp "aldebaran",141,114; // Change this warp coordinates
    			end;
    		case 7:
    			warp "comodo",196,143; // Change this warp coordinates
    			end;
    		case 8:
    			mes "===========[Rohayu]=============";
    			mes "Ok, your save point had been set to here";
    			savepoint "ilyo_kwan" ,143,106;
    			end;
    		case 9:
    			mes "===========[Rohayu]=============";
    			mes "Well if you need warp just come look for me";
    			close;
    		
    	}
    }
    //================== prontera ============================
    
    prontera,151,187,5	script	IlyoKwan	113,{
    	OnInit:
    	waitingroom "Ilyo Kwan",0;
    	mes "===========[Ilyana]=============";
    	mes "Hello.";
    	mes "I can warp to ilyo_kwan, our main city";
    	next;
    	
    	switch(select("- Warp Me There:- Exit"))
    	{
    		case 1:
    			warp "ilyo_kwan",143,112; // Change this warp coordinates
    			end;
    		case 2:
    			mes "===========[Ilyana]=============";
    			mes "Well if you need warp just come look for me";
    			close;	
    		
    	}
    }
    
    //================ payon =================================
    
    payon,165,105,5	script	IlyoKwan#1	113,{
    
    	OnInit:
    	waitingroom "Ilyo Kwan",0;
    	mes "===========[Atirah]=============";
    	mes "Hello.";
    	mes "I can warp to ilyo_kwan, our main city";
    	next;
    	
    	switch(select("- Warp Me There:- Exit"))
    	{
    		case 1:
    			warp "ilyo_kwan",143,112; // Change this warp coordinates
    			end;
    		case 2:
    			mes "===========[Atirah]=============";
    			mes "Well if you need warp just come look for me";
    			close;	
    		
    	}
    }
    
    //================ morocc =====================
    
    morocc,158,97,5	script	IlyoKwan#2	113,{
    	
    	OnInit:
    	waitingroom "Ilyo Kwan",0;
    	mes "===========[Diana]=============";
    	mes "Hello.";
    	mes "I can warp to ilyo_kwan, our main city";
    	next;
    	
    	switch(select("- Warp Me There:- Exit"))
    	{
    		case 1:
    			warp "ilyo_kwan",143,112; // Change this warp coordinates
    			end;
    		case 2:
    			mes "===========[Diana]=============";
    			mes "Well if you need warp just come look for me";
    			close;	
    		
    	}
    }
    
    //================= Geffen =============================
    
    geffen,115,70,5	script	IlyoKwan#3	113,{
    	
    	OnInit:
    	waitingroom "Ilyo Kwan",0;
    	mes "===========[Rozita]=============";
    	mes "Hello.";
    	mes "I can warp to ilyo_kwan, our main city";
    	next;
    	
    	switch(select("- Warp Me There:- Exit"))
    	{
    		case 1:
    			warp "ilyo_kwan",143,112; // Change this warp coordinates
    			end;
    		case 2:
    			mes "===========[Rozita]=============";
    			mes "Well if you need warp just come look for me";
    			close;	
    		
    	}
    }
    
    //================ Alberta ============================
    alberta,114,62,5	script	IlyoKwan#4	113,{
    	
    	OnInit:
    	waitingroom "Ilyo Kwan",0;
    	mes "===========[Cik Wan]=============";
    	mes "Hello.";
    	mes "I can warp to ilyo_kwan, our main city";
    	next;
    	
    	switch(select("- Warp Me There:- Exit"))
    	{
    		case 1:
    			warp "ilyo_kwan",143,112; // Change this warp coordinates
    			end;
    		case 2:
    			mes "===========[Cik Wan]=============";
    			mes "Well if you need warp just come look for me";
    			close;	
    		
    	}
    }
    
    //================ Aldebaran ============================
    
    aldebaran,139,119,5	script	IlyoKwan#5	113,{
    	
    	OnInit:
    	waitingroom "Ilyo Kwan",0;
    	mes "===========[Rabiah]=============";
    	mes "Hello.";
    	mes "I can warp to ilyo_kwan, our main city";
    	next;
    	
    	switch(select("- Warp Me There:- Exit"))
    	{
    		case 1:
    			warp "ilyo_kwan",143,112; // Change this warp coordinates
    			end;
    		case 2:
    			mes "===========[Rabiah]=============";
    			mes "Well if you need warp just come look for me";
    			close;	
    		
    	}
    }
    
    //================ comodo ==================
    
    comodo,191,153,5	script	IlyoKwan#6	113,{
    	
    	OnInit:
    	waitingroom "Ilyo Kwan",0;
    	mes "===========[Nisa]=============";
    	mes "Hello.";
    	mes "I can warp to ilyo_kwan, our main city";
    	next;
    	
    	switch(select("- Warp Me There:- Exit"))
    	{
    		case 1:
    			warp "ilyo_kwan",143,112; // Change this warp coordinates
    			end;
    		case 2:
    			mes "===========[Nisa]=============";
    			mes "Well if you need warp just come look for me";
    			close;	
    		
    	}
    }

     

    i know its has something to do with the chat box, but have no idea how to fix,

  3. 8 minutes ago, KazumaSatou said:
    -	script	sample_main	-1,{
    	OnPCDieEvent:
    		if (getmapflag(strnpcinfo(3), mf_pvp)) {
    			getmapxy(@map$, @x, @y, BL_PC);
    			callsub(L_DropItem, 969);
    			callsub(L_DropItem, 724);
    			callsub(L_DropItem, 7049);
    		}
    		end;
    		
    	L_DropItem:
    		.@item_id = getarg(0, 0);
    		if (.@item_id) {
    			.@countitem = countitem(.@item_id);
    			delitem .@item_id, .@countitem;
    			makeitem .@item_id, .@countitem, @map$, @x, @y;
    		}
    		return;
    }
    prontera,159,159,4	script	Normal Crystal	1288,{
    	if (countitem(6010)) {
    		.@rate = rand(100);
    		if (.@rate < 1) {
    			.@item_id = 969;
    		}
    		else if (.@rate < 25) {
    			.@item_id = 724;
    		}
    		else if (.@rate < 90) {
    			.@item_id = 7049;
    		}
    		else {
    			// nothing
    		}
    		if (.@item_id) {
    			while(1){
    				if(.mine == .minemax){
    					movenpc strnpcinfo(3), rand(300), rand(300), rand(8);
    					end;
    				}
    				progressbar "GREEN",5;
    				getitem .@item_id, 1;
    				.mine++;
    			}
    		}
    	}
    	end;
    	OnInit:
    		.minemax = 2;
    		while(1){
    			delwaitingroom;
    			waitingroom "Mined ["+.mine+"/"+.minemax+"]",1;
    			sleep 1000;
    		}
    }
    prontera,165,159,4	script	Normal Crystal#1	1288,{
    	if (countitem(6010)) {
    		.@rate = rand(100);
    		if (.@rate < 1) {
    			.@item_id = 969;
    		}
    		else if (.@rate < 25) {
    			.@item_id = 724;
    		}
    		else if (.@rate < 90) {
    			.@item_id = 7049;
    		}
    		else {
    			// nothing
    		}
    		if (.@item_id) {
    			while(1){
    				if(.mine == .minemax){
    					movenpc strnpcinfo(3), rand(300), rand(300), rand(8);
    					end;
    				}
    				progressbar "GREEN",5;
    				getitem .@item_id, 1;
    				.mine++;
    			}
    		}
    	}
    	end;
    	OnInit:
    		.minemax = 2;
    		while(1){
    			delwaitingroom;
    			waitingroom "Mined ["+.mine+"/"+.minemax+"]",1;
    			sleep 1000;
    		}
    }
    //prontera,1,1,4	duplicate(Normal Crystal)	Normal Crystal#2	1288
    //prontera,1,1,4	duplicate(Normal Crystal)	Normal Crystal#3	1288

     

    works like a charm, too bad we dont have mining animations

    ahaha but thanks alot for the help

  4. 10 minutes ago, KazumaSatou said:

    Just replace the spaces with tabs. Sorry  didn't checked it  after pasted in spoiler.

    it works now, thanks but i have to manually keep clicking to the crystal to mine, can u make it auto?

    also instead of plain text to show how many have been farm, i think a chat box would be great or better?

    sorry if its too much  

  5. 11 hours ago, KazumaSatou said:
      Hide contents

    -    script    sample_main    -1,{
        OnPCDieEvent:
            if (getmapflag(strnpcinfo(3), mf_pvp)) {
                getmapxy(@map$, @x, @y, BL_PC);
                callsub(L_DropItem, 969);
                callsub(L_DropItem, 724);
                callsub(L_DropItem, 7049);
            }
            end;
            
        L_DropItem:
            [email protected]_id = getarg(0, 0);
            if ([email protected]_id) {
                [email protected] = countitem([email protected]_id);
                delitem [email protected]_id, [email protected];
                makeitem [email protected]_id, [email protected], @map$, @x, @y;
            }
            return;
    }
    ein_dun03,170,227,4    script    Normal Crystal    1288,{
        if (countitem(6010)) {
            [email protected] = rand(100);
            if ([email protected] < 1) {
                [email protected]_id = 969;
            }
            else if ([email protected] < 25) {
                [email protected]_id = 724;
            }
            else if ([email protected] < 90) {
                [email protected]_id = 7049;
            }
            else {
                // nothing
            }
            if ([email protected]_id) {
                showscript "Mined ["+.mine+"/"+.minemax+"]",self;
                progressbar "GREEN",5;
                getitem [email protected]_id, 1;
                .mine++;
                if(.mine == .minemax)
                    movenpc strnpcinfo(3), rand(300), rand(300), rand(8);
                    
            }
        }
        end;
        OnInit:
            .minemax = 100;
            while(1){
                sleep 1000;
                showscript "Mined ["+.mine+"/"+.minemax+"]";
            }
    }
    ein_dun03,207,267,4    script    Normal Crystal#1    1288,{
        if (countitem(6010)) {
            [email protected] = rand(100);
            if ([email protected] < 1) {
                [email protected]_id = 969;
            }
            else if ([email protected] < 25) {
                [email protected]_id = 724;
            }
            else if ([email protected] < 90) {
                [email protected]_id = 7049;
            }
            else {
                // nothing
            }
            if ([email protected]_id) {
                showscript "Mined ["+.mine+"/"+.minemax+"]",self;
                progressbar "GREEN",5;
                getitem [email protected]_id, 1;
                .mine++;
                if(.mine == .minemax)
                    movenpc strnpcinfo(3), rand(300), rand(300), rand(8);
                    
            }
        }
        end;
        OnInit:
            .minemax = 100;
            while(1){
                sleep 1000;
                showscript "Mined ["+.mine+"/"+.minemax+"]";
            }
    }
    //prontera,1,1,4    duplicate(Normal Crystal)    Normal Crystal#2    1288
    //prontera,1,1,4    duplicate(Normal Crystal)    Normal Crystal#3    1288

    Just copy and paste the whole crystal for duplicates to prevent shared mine count.
    Once you reload script, the mine counts will reset.
    I also added *showscript to show the current count of mines. Refreshes every second.
    Once the total mine reached maximum mine, the crystal will automatically teleports.
    Hopefully helped you.

    bump some error @KazumaSatou

    [Error]: npc_parsesrcfile: Unknown syntax in file 'npc/custom/shard.txt', line '1'. Stopping...
     * w1=-    script    sample_main    -1,{
     * w2=
     * w3=
     * w4=

     

  6. just to be clear i did not wrote these script @Emistry did back few years, i need some improvement for this script below are the details.

    1. Player can mine from the same spot/npc for maximum of 100 times

    2. Each time have 5sec waiting time gap and player will get random item drop from this spot for each 5sec wait u can just follow as the script there for random drop chance

    3. Player can cancel mining anytime they please, and the mined count will stay the same ( example if player have mine for 20 times, it will be 20/100 )

    4. Next player who mined at the used mine will continue the count ( 20/100 ) once it reach the max 100/100 the npc/spot will be removed, and new spot will be spawn after 3mins on random location ( walkable area )

    5. If possible add mining progress bar animation or just plain text

    6. Its a PvP map, so when the miner dead by pvp the count stay as describe in part 4.

    Thank you soo much, for you effort and time
    script:

    Spoiler

     

    -	script	sample_main	-1,{
    	OnPCDieEvent:
    		if (getmapflag(strnpcinfo(3), mf_pvp)) {
    			getmapxy(@map$, @x, @y, BL_PC);
    			callsub(L_DropItem, 969);
    			callsub(L_DropItem, 724);
    			callsub(L_DropItem, 7049);
    		}
    		end;
    		
    	L_DropItem:
    		.@item_id = getarg(0, 0);
    		if (.@item_id) {
    			.@countitem = countitem(.@item_id);
    			delitem .@item_id, .@countitem;
    			makeitem .@item_id, .@countitem, @map$, @x, @y;
    		}
    		return;
    }
    ein_dun03,170,227,4	script	Normal Crystal	1288,{
    	if (countitem(6010)) {
    		.@rate = rand(100);
    		if (.@rate < 1) {
    			.@item_id = 969;
    		}
    		else if (.@rate < 25) {
    			.@item_id = 724;
    		}
    		else if (.@rate < 90) {
    			.@item_id = 7049;
    		}
    		else {
    			// nothing
    		}
    		if (.@item_id) {
    			getitem .@item_id, 1;
    			movenpc strnpcinfo(3), rand(300), rand(300), rand(8); 
    		}
    	}
    	end;
    }
    ein_dun03,207,267,4	duplicate(Normal Crystal)	Normal Crystal#1	1288
    //prontera,1,1,4	duplicate(Normal Crystal)	Normal Crystal#2	1288
    //prontera,1,1,4	duplicate(Normal Crystal)	Normal Crystal#3	1288

     

     

  7. 8 minutes ago, ryukazuna said:

    humm, i use ESET NOD32(Paid License) and not detect anything. i mean im sure its 100% safe. but it's up to you then 1652060392_Screenshot(20).thumb.png.9f0c3b1d5d6680e3d4056f5a90157206.png

     

     

    oke soo i have use that again with my antivirus disable, soo i have all the bmp file, can someone tell me the correct directory that i should put them in?

    data/ ??/ ??? 

  8. 5 minutes ago, Poring King said:

    Open the data that has been extracted to your GRF .. you will find the data that has been made or split into a lot of piece for login and loading-screen.bg

    well i did that, and try open with my grf editor and the grf editor keep getting error and after that i cant open any grf files, which i had to reinstall it all over again, and yet i cant open those grf

    Untitled.png

  9. hye, i has been awhile since the last time i run ro server, and i have forgot most how to setup, here is my recent problem,

    if i have send this on wrong sections please move it to the correct section,

    error1.png

    i have uploaded the map file to data\texture\À¯ÀúÀÎÅÍÆäÀ̽º\map\ilyo_kwan.bmp

    and use thor patcher and the file end up to here after patch

    error2.png

    can someone point me how to fix this

  10. hye i would like to request an addon for flux cp (marketplace) where player can use in game npc to register an item to sell them on market place, it would be more efficient to sell and buy items just by browsing the marketplace at fluxcp

    thanks for your time, for more details you may send me a massage in my inbox thanks

  11. As title, can someone create a script that reward player 1k zeny for each 10 base level player gain?

    example

    player get lvl 10 base get reward 1000zeny

    player get lvl 20 base get reward 1000zeny

    and so on, reward are automatic every time they reach certain mile stone, also add notice to player chat log 

    example : Congratulation you have reach milestone base level 10, you gained 1000z, next mile stone is base level 20

  12. 2 hours ago, Patskie said:

    Change all getitem to Zeny

    Zeny += <amount>;

     

    did not work

    Spoiler
    
    -	script	milestone	-1,{
       
        OnPCBaseLvUpEvent:
            if (BaseLevel == 90 && #lv_milestone_90 < 3) {
                #lv_milestone_90++;
                getitem 607, 15;
                getitem 610, 15;
                getitem 616, 1;
                dispbottom "You gained reward for level 90.";
            }
            else if (BaseLevel == 70 && #lv_milestone_70 < 3) {
                #lv_milestone_70++;
                getitem 607, 10;
                getitem 610, 10;
                dispbottom "You gained reward for level 70.";
            }
            else if (BaseLevel == 50 && #lv_milestone_50 < 3) {
                #lv_milestone_50++;
                getitem 607, 5;
                getitem 610, 5;
                dispbottom "You gained reward for level 50.";
            }
    		else if (BaseLevel == 10 && #lv_milestone_10 < 3) {
                #lv_milestone_10++;
                Zeny += 1000;
                dispbottom "You gained reward 1000zeny for level 10 milestone.";
            }
    	
            end;
     
    }

     

     

  13. hye can someone tell me how to change the reward from item to zeny?

    
    -	script	milestone	-1,{
       
        OnPCBaseLvUpEvent:
            if (BaseLevel == 90 && #lv_milestone_90 < 3) {
                #lv_milestone_90++;
                getitem 607, 15;
                getitem 610, 15;
                getitem 616, 1;
                dispbottom "You gained reward for level 90.";
            }
            else if (BaseLevel == 70 && #lv_milestone_70 < 3) {
                #lv_milestone_70++;
                getitem 607, 10;
                getitem 610, 10;
                dispbottom "You gained reward for level 70.";
            }
            else if (BaseLevel == 50 && #lv_milestone_50 < 3) {
                #lv_milestone_50++;
                getitem 607, 5;
                getitem 610, 5;
                dispbottom "You gained reward for level 50.";
            }
    		else if (BaseLevel == 10 && #lv_milestone_10 < 3) {
                #lv_milestone_10++;
                getitem 1205, 1;
                dispbottom "You gained reward Cutter [4] for level 10 milestone.";
            }
    	
            end;
     
    }

     

  14. hye i need some help to configure attendant feature, bump to some error while trying to use it, my server are define PRERE only

    fail1.png

     

    what i have don was edit 

     

    conf/groups.conf

    Spoiler
    /*
    
    Player groups configuration file
    ---------------------------------
    
    This file defines "player groups" and their privileges.
    
    Each group has its id and name, lists of available commands and other 
    permissions, and a list of other groups it inherits from.
    
    
    Group settings
    --------------
    <id>
    Unique group number. The only required field.
    
    <name>
    Any string. If empty, defaults to "Group <id>". It is used in several @who 
    commands.
    
    <level>
    Equivalent of GM level, which was used in revisions before r15572. You can 
    set it to any number, but usually it's between 0 (default) and 99. Members of 
    groups with lower level can not perform some actions/commands (like @kick) on 
    members of groups with higher level. It is what script command getgmlevel() 
    returns. Group level can also be used to override trade restrictions 
    (db/item_trade.txt).
    
    <commands>
    A group of settings
    	<command name> : <bool>
    or
    	<commandname> : [ <bool>, <bool> ]
    First boolean value is for atcommand, second one for charcommand. If set to 
    true, group can use command. If only atcommand value is provided, false is 
    assumed for charcommand. If a command name is not included, false is assumed for 
    both atcommand and charcommand.
    For a full list of available commands, see: doc/atcommands.txt.
    Command names must not be aliases.
    
    <log_commands>
    Boolean value. If true then all commands used by the group will be logged to 
    atcommandlog. If setting is omitted in a group definition, false is assumed.
    Requires 'log_commands' to be enabled in 'conf/log_athena.conf'.
    
    <permissions>
    A group of settings
    	<permission> : <bool>
    If a permission is not included, false is assumed.
    For a full list of available permissions, see: doc/permissions.txt
    
    <inherit>
    A list of group names that given group will inherit commands and permissions 
    from. Group names are case-sensitive.
    
    Inheritance results
    -------------------
    Both multiple inheritance (Group 2 -> Group 1 and Group 3 -> Group 1) and
    recursive inheritance (Group 3 -> Group 2 -> Group 1) are allowed.
    
    Inheritance rules should not create cycles (eg Group 1 inherits from Group 2, 
    and Group inherits from Group 1 at the same time). Configuration with cycles is 
    considered faulty and can't be processed fully by server.
    
    Command or permission is inherited ONLY if it's not already defined for the 
    group.
    If group inherits from multiple groups, and the same command or permission is 
    defined for more than one of these groups, it's undefined which one will be 
    inherited.
    
    Syntax
    ------
    This config file uses libconfig syntax: 
    http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
    
    
    Upgrading from revisions before r15572
    -------------------------------------
    http://rathena.org/board/index.php?showtopic=58877
    */
    
    groups: (
    {
    	id: 0 /* group 0 is the default group for every new account */
    	name: "Player"
    	level: 0
    	inherit: ( /*empty list*/ )
    	commands: {
    		changedress: true
    		resurrect: true
    		help: true
    		rates: true
    		uptime: true
    		showdelay: true
    		exp: true
    		mobinfo: true
    		iteminfo: true
    		whodrops: true
    		time: true
    		jailtime: true
    		hominfo: true
    		homstats: true
    		showexp: true
    		showzeny: true
    		autoloot: true
    		alootid: true
    		autoloottype: true
    		commands: true
    	}
    	log_commands: true
    	permissions: {
    		/* without this basic permissions regular players could not 
    		trade or party */
    		can_trade: true
    		can_party: true
    		attendance: true
    	}
    },
    {
    	id: 1
    	name: "Super Player"
    	inherit: ( "Player" ) /* can do everything Players can and more */
    	level: 0
    	commands: {
    		/* informational commands */
    		commands: true
    		charcommands: true
    		help: true
    		rates: true
    		uptime: true
    		showdelay: true
    		exp: true
    		mobinfo: true
    		iteminfo: true
    		whodrops: true
    		time: true
    		jailtime: true
    		hominfo: true
    		homstats: true
    		showexp: true
    		showzeny: true
    		whereis: true
    		/* feature commands */
    		refresh: true
    		noask: true
    		noks: true
    		autoloot: true
    		alootid: true
    		autoloottype: true
    		autotrade: true
    		request: true
    		go: true
    		breakguild: true
    		channel: true
    		langtype: true
    	}
    	log_commands: true
    	permissions: {
    		attendance: true
    	}
    },
    {
    	id: 2
    	name: "Support"
    	inherit: ( "Super Player" )
    	level: 1
    	commands: {
    		version: true
    		where: false
    		jumpto: true
    		who: true
    		who2: true
    		who3: true
    		whomap: true
    		whomap2: true
    		whomap3: true
    		users: true
    		broadcast: true
    		localbroadcast: true
    		kick: true
    		recall: true
    		jail: true
    		jailfor: true
    		fakename: true
    		disguise: true
    	}
    	log_commands: true
    	permissions: {
    		receive_requests: true
    		view_equipment: true
    		attendance: true
    	}
    },
    {
    	id: 3
    	name: "Script Manager"
    	inherit: ( "Support" )
    	level: 1
    	commands: {
    		tonpc: true
    		hidenpc: true
    		shownpc: true
    		loadnpc: true
    		unloadnpc: true
    		npcmove: true
    		addwarp: true
    	}
    	log_commands: true
    	permissions: {
    		any_warp: true
    		attendance: true
    	}
    },
    {
    	id: 4
    	name: "Event Manager"
    	inherit: ( "Support" )
    	level: 1
    	commands: {
    		monster: true
    		monstersmall: true
    		monsterbig: true
    		killmonster2: true
    		cleanarea: true
    		cleanmap: true
    		item: [true, true]
    		zeny: [true, true]
    		disguise: [true, true]
    		undisguise: [true, true]
    		size: [true, true]
    		raise: true
    		raisemap: true
    		day: true
    		night: true
    		skillon: true
    		skilloff: true
    		pvpon: true
    		pvpoff: true
    		gvgon: true
    		gvgoff: true
    		allowks: true
    		me: true
    		marry: true
    		divorce: true
    		refreshall: true
    	}
    	log_commands: true
    	permissions: {
    		can_trade: false
    		any_warp: true
    		attendance: true
    	}
    },
    {
    	id: 5
    	name: "VIP"
    	inherit: ( "Player" ) /* can do everything Players can */
    	level: 0
    	commands: {
    		rates: true
    		who: true
    	}
    	permissions: {
    		/* no permissions by default */
    	}
    },
    {
    	id: 10
    	name: "Law Enforcement"
    	inherit: ( "Support" )
    	level: 2
    	commands: {
    		hide: true
    		follow: true
    		kick: true
    		disguise: true
    		fakename: true
    		option: true
    		speed: true
    		warp: true
    		kill: true
    		recall: true
    		ban: true
    		block: true
    		jail: true
    		jailfor: true
    		mute: true
    		storagelist: true
    		cartlist: true
    		itemlist: true
    		stats: true
    	}
    	log_commands: true
    	permissions: {
    		join_chat: true
    		kick_chat: true
    		hide_session: true
    		who_display_aid: true
    		hack_info: true
    		any_warp: true
    		view_hpmeter: true
    		attendance: true
    	}
    },
    {
    	id: 99
    	name: "Admin"
    	level: 99
    	inherit: ( "Support", "Law Enforcement" )
    	commands: {
    		/* not necessary due to all_commands: true */
    	}
    	log_commands: true
    	permissions: {
    		can_trade: true
    		can_party: true
    		command_enable: true
    		all_skill: false
    		all_equipment: false
    		skill_unconditional: false
    		use_check: true
    		use_changemaptype: true
    		all_commands: true
    		channel_admin: true
    		can_trade_bounded: true
    		item_unconditional: false
    		bypass_stat_onclone: true
    		bypass_max_stat: true
    		attendance: true
    		/* all_permission: true */
    	}
    }
    )

     

    db/import/attendance.yml

    Spoiler
    # This file is a part of rAthena.
    #   Copyright(C) 2019 rAthena Development Team
    #   https://rathena.org - https://github.com/rathena
    #
    # This program is free software: you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation, either version 3 of the License, or
    # (at your option) any later version.
    #
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    # GNU General Public License for more details.
    #
    # You should have received a copy of the GNU General Public License
    # along with this program. If not, see <http://www.gnu.org/licenses/>.
    #
    ###########################################################################
    # Attendance Database
    ###########################################################################
    #
    # Attendance Settings
    #
    ###########################################################################
    # - Start                   Start date.
    #   End                     End date.
    #   Rewards:                List of rewards for each day.
    #     - Day                 Reward day.
    #       ItemId              Item ID.
    ###########################################################################
    
    Header:
      Type: ATTENDANCE_DB
      Version: 1
    
    Attendance:
      - Start: 20200517
        End: 20200531
        Rewards:
          - Day: 1
            ItemId: 22979
          - Day: 2
            ItemId: 6316
          - Day: 3
            ItemId: 12265
            Amount: 5
          - Day: 4
            ItemId: 23047
            Amount: 5
          - Day: 5
            ItemId: 23038
          - Day: 6
            ItemId: 23043
          - Day: 7
            ItemId: 23340
            Amount: 3
          - Day: 8
            ItemId: 12516
            Amount: 5
          - Day: 9
            ItemId: 23307
            Amount: 5
          - Day: 10
            ItemId: 12610
          - Day: 11
            ItemId: 14533
            Amount: 2
          - Day: 12
            ItemId: 23012
            Amount: 3
          - Day: 13
            ItemId: 23048
            Amount: 5
          - Day: 14
            ItemId: 12264
            Amount: 5

     

     

    Client Side : System/CheckAttendance.lub

    Spoiler
    Config = {	
    	StartDate = 20200517,
    	EndDate = 20200531
    }
    
    Reward = {
    	{ 1, 22979, 1 }, 
    	{ 2, 6316, 1 }, 
    	{ 3, 12265, 5 }, 
    	{ 4, 23047, 5 }, 
    	{ 5, 23038, 1 }, 
    	{ 6, 23043, 1 }, 
    	{ 7, 23340, 3 }, 
    	{ 8, 12516, 5 }, 
    	{ 9, 23307, 5 }, 
    	{ 10, 23899, 3 }, 
    	{ 11, 14533, 2 }, 
    	{ 12, 23012, 3 }, 
    	{ 13, 23048, 5 }, 
    	{ 14, 12264, 5 }
    }
    
    function main()
    	result, msg = InsertCheckAttendanceConfig(Config.EvendOnOff, Config.StartDate, Config.EndDate)
    	if not result then
    		return false, msg
    	end
    	for k, rewardtbl in pairs(Reward) do
    		result, msg = InsertCheckAttendanceReward(rewardtbl[1], rewardtbl[2], rewardtbl[3])
    		if not result then
    			return false, msg
    		end
    	end
    	return true, "success"
    end

     

     

    please guide me?

  15. as title i was trying to upload my backup sql to phpmyadmin, got this error

     No data was received to import. Either no file name was submitted, or the file size exceeded the maximum size permitted by your PHP configuration. See FAQ 1.16.

    i did some google and it state i need to edit php.ini to max the file size, but where is the php.ini file?

×
×
  • Create New...

Important Information

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