Jump to content

kalabasa

Members
  • Posts

    478
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by kalabasa

  1. this is my 2nd encounter this kind of errors i get this when i try to play with the src's codes to try out things and recieving errors though i revert it back to the original state  like this

    ========== Build: 11 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========    <---

    the error wont disappear though it is running fine i dont know if there's an impact upon not removing this error below is what i am getting now

    i just want to remove these warning errors when building

    Severity    Code    Description    Project    File    Line    Suppression State
    Warning    C4244    'initializing': conversion from 'double' to 'const int', possible loss of data    map-server    c:\users\user\documents\ra pre-re\rathena\src\map\instance.cpp    728    
    Warning    C4244    'initializing': conversion from 'double' to 'int', possible loss of data    map-server    c:\users\user\documents\ra pre-re\rathena\src\map\instance.cpp    727    
    Warning    C4244    'initializing': conversion from 'double' to 'const int', possible loss of data    map-server    c:\users\user\documents\ra pre-re\rathena\src\map\instance.cpp    727    
    Warning    C4244    'initializing': conversion from 'double' to 'int', possible loss of data    map-server    c:\users\user\documents\ra pre-re\rathena\src\map\instance.cpp    728    
     

  2. im trying to duplicate MvP monsters but when i type the @mi command it will display the duplicated monster mobid instead of the set monsterid

    if i type the @mi command it will show as 1312 original turtle general monsterid instead of 3003 that i set in mob_db.txt

     

    import/mob_db.txt

    3003,TURTLE_GENERAL_HARD,Turtle General,Turtle General,

     

    mob_avail.yml

    Header:
      Type: MOB_AVAIL_DB
      Version: 1
      
    Body:
      - Mob: TURTLE_GENERAL_HARD
        Sprite: TURTLE_GENERAL

     

    but when i did this copying the original data when i type @mi it will show the correct monsterid which 3003

    but it wont display the turtle general sprite and displaying as Archer Skeleton in my case instead of default Poring

     

    3003,TURTLE_GENERAL,Turtle General,Turtle General,

     

    Header:
      Type: MOB_AVAIL_DB
      Version: 1
      
    Body:
      - Mob: TURTLE_GENERAL
        Sprite: TURTLE_GENERAL

     

     

  3. does my copy of rAthena already broken? should i clone again?

    just pull updates from github atm and fix the problem i dont know which file were affected and change marked this as solved

  4. defines_pre.hpp

    #define PACKETVER 20180621

    im using sclientinfo

    data.grf is in priority in my data.ini folder

    i applied this patches

    9 Disable 1rag1 type parameters (Recommended)
    270 Change AchievementList*.lub path
    272 Change Towninfo*.lub path
    273 Change PetEvolutionCln*.lub path
    274 Change Tipbox*.lub path
    18 Skip Service Selection Screen
    275 Change CheckAttendance*.lub path
    277 Change RecommendedQuestInfoList*.lub path
    278 Change PrivateAirplane*.lub path
    23 Enable /who command (Recommended)
    24 Fix Camera Angles (Recommended)
    290 Hide build info in client (Recommended)
    34 Enable /showname (Recommended)
    291 Hide packets from peek (Recommended)
    36 Read msgstringtable.txt (Recommended)
    38 Remove Gravity Ads (Recommended)
    39 Remove Gravity Logo (Recommended)
    40 Restore Login Window (Recommended)
    41 Disable Nagle Algorithm (Recommended)
    44 Translate Client (Recommended)
    46 Use Normal Guild Brackets (Recommended)
    48 Use Plain Text Descriptions (Recommended)
    49 Enable Multiple GRFs (Recommended)
    50 Skip License Screen
    53 Use Ascii on All LangTypes (Recommended)
    64 @ Bug Fix (Recommended)
    65 Load Custom lua file instead of iteminfo*.lub (Recommended)
    73 Remove Hourly Announce (Recommended)
    338 Additional client validation (Recommended)
    84 Remove Serial Display (Recommended)
    90 Enable DNS Support (Recommended)
    97 Cancel to Login Window (Recommended)
    213 Disable Help Message on Login (Recommended)
    244 Disable Cheat Defender Game Guard (Recommended)

     


     

  5. Good Day mates! i am testing this vendor control 1.3 by emistry it says im missing left curly at line 1

    upon checking it has one im also apply the proper tabs

    what's goin on?

     

     

    market,99,104,3	script	Vending Helper#1	757,{  <----------------
    	for (.@i = 1; .@i <= .count; .@i++) {
    		getmapxy(.@map$, .@x, .@y, BL_NPC, "#vend_slot"+.@i);
    		if (!getareausers(.map$, .@x, .@y, .@x, .@y) && .@x > 1 && .@y > 1) {
    			set .@available, .@available + 1;
    			set .@menu$, .@menu$ + "Slot - "+.@i+":";
    		} else {
    			set .@menu$, .@menu$ + ":";
    		}
    	}
    
    	if (!.@available) {
    		mes "Dont have any available slot.";
    	} else if (!getskilllv("MC_VENDING")) {
    		mes "You dont have ^0055FFVending Skill^000000.";
    	} else {
    		mes "Available Slot : "+.@available;
    		mes "Please select a slot to vending.";
    		set .@i, select(.@menu$);
    		getmapxy(.@map$, .@x, .@y, BL_NPC, "#vend_slot"+.@i);
    		if (.@x == 1 || .@y == 1) {
    			mes "This NPC at invalid location...";
    		} else {
    			warp .@map$, .@x, .@y;
    			hideonnpc "#vend_slot"+.@i;
    		}
    	}
    	close;
    
    OnInit:
    	sleep 1000;
    	// Map for vending
    	.map$ = strnpcinfo(4);
    	setcell .map$, 0, 0, 300, 300, cell_novending, 1;
    
    	// x and y horizone ..
    	setarray .x_line, 52, 49, 46, 43, 40;
    	setarray .y_line, 68, 71, 74, 77, 65, 62;
    
    	set .x_line_size, getarraysize(.x_line);
    	set .y_line_size, getarraysize(.y_line);
    	set .count, 1;
    	for (set .@x, 0; .@x < .x_line_size; set .@x, .@x + 1)
    		for (set .@y, 0; .@y < .y_line_size; set .@y, .@y + 1)
    			if (checkcell(.map$, .x_line[.@x], .y_line[.@y], cell_chkpass)) {
    				movenpc "#vend_slot"+.count, .x_line[.@x], .y_line[.@y];
    				setcell .map$, .x_line[.@x], .y_line[.@y], .x_line[.@x], .y_line[.@y], cell_novending, 0;
    				set .count, .count + 1;
    			}
    	npctalk "Vending Spot : "+.count;
    	donpcevent "::OnSetup";
    	end;
    }
    
    -	script	vend_slot	-1, {
    	getmapxy(.@map$, .@x, .@y, BL_NPC);
    	if (!getskilllv("MC_VENDING")) {
    		mes "You dont have ^0055FFVending Skill^000000.";
    	} else if (getareausers(.@map$, .@x, .@y, .@x, .@y)) {
    		mes "Someone already selected this spot.";
    	} else {
    		mes "Spot : ^777777Available^000000";
    		mes "^0055FF[ Vending Area Rules ]^000000";
    		mes "^FF0000 ~ Use proper Shop Name.^000000";
    		mes "^FF0000 ~ Never sell Junk/Gifts.^000000";
    		mes " ";
    		mes "^777777Player will failed to follow these will be punished.^000000";
    		if (select("Select this Spot", "Cancel") == 1) {
    			warp .@map$, .@x, .@y;
    			hideonnpc strnpcinfo(0);
    		}
    	}
    	close;
    
    OnSetup:
    	getmapxy(.@map$, .@x, .@y, BL_NPC);
    	set .@npcname$, strnpcinfo(0);
    	while(.@map$ != "") {
    		if (getareausers(.@map$, .@x, .@y, .@x, .@y)) {
    			hideonnpc .@npcname$;
    		} else {
    			hideoffnpc .@npcname$;
    			// specialeffect 313;
    		}
    		sleep 5000;
    	}
    	end;
    }
    
    // Add more if needed.
    market, 95, 113, 4	duplicate(vend_slot)	#vend_slot1	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot2	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot3	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot4	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot5	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot6	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot7	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot8	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot9	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot10	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot11	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot12	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot13	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot14	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot15	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot16	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot17	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot18	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot19	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot20	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot21	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot22	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot23	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot24	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot25	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot26	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot27	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot28	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot29	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot30	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot31	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot32	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot33	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot34	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot35	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot36	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot37	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot38	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot39	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot40	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot41	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot42	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot43	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot44	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot45	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot46	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot47	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot48	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot49	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot50	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot51	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot52	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot53	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot54	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot55	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot56	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot57	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot58	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot59	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot60	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot61	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot62	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot63	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot64	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot65	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot66	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot67	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot68	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot69	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot70	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot71	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot72	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot73	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot74	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot75	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot76	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot77	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot78	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot79	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot80	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot81	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot82	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot83	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot84	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot85	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot86	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot87	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot88	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot89	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot90	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot91	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot92	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot93	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot94	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot95	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot96	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot97	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot98	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot99	858
    mellina, 1, 1, 4	duplicate(vend_slot)	#vend_slot100	858

     

  6. -    script    guide::guideme    -1,{

    OnInit:
    bindatcmd "guide", strnpcinfo(3) +"::Onguide";
        
    Onguide:
    if(getmapflag(strcharinfo(3),mf_gvg ) || getmapflag(strcharinfo(3),mf_pvp) || getmapflag(strcharinfo(3),mf_gvg_castle)) {
            mes "[ Guide ]";
            mes "this command can only be used on ^FF0000 Towns. ^000000";
            end;

        }
        else {
        mes "[ Guide ]";
        mes "Hello, " + strcharinfo(0) + "!";
        mes "How may I help you?!";
    Main:

     

    i had this script where in you type @guide custom command 

    but i recieving error and debug on console how to fix it?

    Error buildin_strcharinfo fatal error player not attached

    debug: function: strcharinfo (1 parameter):

    debug: Data: number value=3 

    debug source (NPC): guide(invisible/not on a map) 

    debug source (NPC): guide(invisible/not on a map) 

     

  7. can someone give a simple brief explanation how it works and calculates the range of custom items you can put in

    ive read the 2020 guide if you put custom view id as 5000 you can start at ID 3000

    so how does it calculate? and how many custom items it can fill up?

    i follow that guide sometimes i got random gravity error i dont know if its related to this patch

    thanks.

  8. Hi, rAthena. can someone add payment on this costume converter?

    payment = costume ticket

     

     

    // -------------------------------------------------------------------------------
    // 	Script Name : Headgear to Costume converter >> Costume to Headgear converter
    // -------------------------------------------------------------------------------
    // Description :
    // - Allows a user to convert the equipped headgear (on Top, Mid or Low) into a
    //   costume item. It will remove any card and refine of the Item.
    // - Allows a user to restore the equipped costume headgear (on Top, Mid or Low)
    //   into its original form. It will not return any card or refine of the item.
    // -------------------------------------------------------------------------------
    function	script	costume	{
    	.@npc_name$ = getarg(0);
    	disable_items;
    	mes "["+ .@npc_name$ +"]";
    	mes "Here you can convert your headgears into a Costume Headgear or restore to its Original form.";
    	next;
    
    	switch(select("I want to convert.:I want to restore.:No thanks.")) {
    	case 1:
    		setarray .@indices[1], EQI_HEAD_TOP, EQI_HEAD_MID, EQI_HEAD_LOW;
    		for (.@i = 1; .@i<=3; ++.@i) {
    			if (getequipisequiped(.@indices[.@i])) {
    				.@menu$ = .@menu$ + F_getpositionname(.@indices[.@i]) + "-[" + getequipname(.@indices[.@i]) + "]";
    				.@equipped = 1;
    			}
    			.@menu$ = .@menu$ + ":";
    		}
    
    		if (.@equipped == 0) {
    			mes "["+ .@npc_name$ +"]";
    			mes "You need to wear headgears that I can costume...";
    			close;
    		}
    
    		mes "["+ .@npc_name$ +"]";
    		mes "Please select what to convert.";
    		mes "Remember, cards and refine will be removed.";
    		next;
    
    		.@part = .@indices[ select(.@menu$) ];
    		if (!getequipisequiped(.@part)) {
    			mes "["+ .@npc_name$ +"]";
    			mes "You're not wearing anything there...";
    			close;
    		}
    
    		mes "["+ .@npc_name$ +"]";
    		mes "You want to Costume your " + getitemname(getequipid(.@part)) + "?";
    		next;
    
    		if (select("Yes, proceed:No, sorry.") == 2) {
    			mes "["+ .@npc_name$ + "]";
    			mes "Need some time to think about it, huh?";
    			mes "Alright, I can understand.";
    			close;
    		}
    
    		costume .@part; // Convert the Headgear
    
    		mes "["+ .@npc_name$ +"]";
    		mes "Done, enjoy your costume headgear.";
    		close;
    	case 2:
    		setarray .@indices[1], EQI_COSTUME_HEAD_TOP, EQI_COSTUME_HEAD_MID, EQI_COSTUME_HEAD_LOW;
    		for (.@i = 1; .@i<=3; ++.@i) {
    			if (getequipisequiped(.@indices[.@i])) {
    				.@menu$ = .@menu$ + F_getpositionname(.@indices$[.@i]) + "-[" + getequipname(.@indices[.@i]) + "]";
    				.@equipped = 1;
    			}
    			.@menu$ = .@menu$ + ":";
    		}
    
    		if (.@equipped == 0) {
    			mes "["+ .@npc_name$ +"]";
    			mes "You need to wear costumed headgears that I can restore...";
    			close;
    		}
    
    		mes "["+ .@npc_name$ +"]";
    		mes "Please select what to restore.";
    		mes "Remember, I will only restore it back without refine and cards.";
    		next;
    
    		.@part = .@indices[ select(.@menu$) ];
    		if (!getequipisequiped(.@part)) {
    			mes "["+ .@npc_name$ +"]";
    			mes "You're not wearing anything there...";
    			close;
    		}
    
    		if (isequippedcnt(getequipid(.@part)) > 1) {
    			mes "["+ .@npc_name$ +"]";
    			mes "You're wearing too many of the same headgear!";
    			mes "How am I supposed to know which one to restore?";
    			mes "See me when you have one equipped.";
    			close;
    		}
    
    		if (countitem(getequipid(.@part)) > 1) {
    			mes "["+ .@npc_name$ +"]";
    			mes "You have another " + getitemname(getequipid(.@part)) + " with you.";
    			mes "Put it away before restoring.";
    			close;
    		}
    
    		mes "[" + .@npc_name$ + "]";
    		mes "You want to restore your " + getitemname(getequipid(.@part)) + "?";
    		next;
    
    		if (select("Yes, proceed:No, sorry.") == 2) {
    			mes "["+ .@npc_name$ +"]";
    			mes "Need some time to think about it, huh?";
    			mes "Alright, I can understand.";
    			close;
    		}
    
    		// Restore headgear by recreating
    		a = getequipid(.@part);
    		delitem a,1;
    		getitem a,1;
    
    		mes "["+ .@npc_name$ +"]";
    		mes "Done, enjoy your restored headgear.";
    		close;
    	case 3:
    		mes "["+ .@npc_name$ +"]";
    		mes "Very well. Return at once if you seek my services.";
    		close;
    	}
    }
    
    // ---------------------------------------------------------------------------
    // Add more lines to put your npc on different cities (adjust name if desired)
    // ---------------------------------------------------------------------------
    ph_in,129,75,6	script	Costume Clown#1	715,{ callfunc "costume","Costume Clown",0; end; }

     

×
×
  • Create New...