Jump to content

ADMSarah

Members
  • Posts

    146
  • Joined

  • Last visited

Posts posted by ADMSarah

  1. On 3/29/2014 at 1:57 AM, Peopleperson49 said:

    Delete Characters
    This script allows you to delete characters in-game. When used it will ask the player to confirm and then kick them out of the server. When they log back their character and in all variables will be gone forever. It is handy since some of the new clients won't properly delete characters. The map server will get an error that says, "charif_ack_login_req failed - player not online". However all functions work great. I'm working on what error but I think it has to do with the script still going after the player is kicked. If anybody has any ideas let me know.

    Delete_Character.txt Version 1.0

    Delete_Character.txt Version 1.1

    Delete_Character.txt Version 1.2

    Hi... do you have a latest version for this that works on the latest commit?

  2. Greetings,

    I just want to ask, or maybe someone can share a solution where I can reduce all item prices to 1/2 amount when it sells to NPCs. My plan is to reduce all items selling price to 1/2 or even 1/4 to make the zeny economy more interesting and working, not just to get a single item with a higher amount and sell it to make themselves richer.

    Hopefully someone has a solution for this without editing all items 1 by 1.

  3. 9 minutes ago, Questune said:
    lhz_fild01,12,79,0	warp	newra02	1,1,ra_fild09,359,76

    Is not walkable.

    Same goes with

    Quote

    //veins,296,335,0    warp    newve05    1,1,veins,290,342
    //veins,293,342,0    warp    newve06    1,1,veins,275,352
    //veins,278,352,0    warp    newve07    1,1,veins,296,332

    But still a great work!, 🙂 

  4. Hi good day, can someone help me out to make this NPC based on the following:

    • Only guild castle owners can use the NPC, if your guild doesn't occupy any castle(s) you are not allowed to access the NPC.
    • If the player is on the Clan they can not use this NPC.
    • If player doesn't have guild they can not use this NPC.
    Quote

    prontera,146,173,4    script    Hybrid Guild Warper    4_GEFFEN_08,{
        if(!getcharid(2)) end;
        warp "job_thief10",179,27;
        end;

    OnAgitStart:
    OnAgitStart2:
        hideonnpc strnpcinfo(3);
        end;

    OnAgitEnd:
    OnAgitEnd2:
        hideoffnpc strnpcinfo(3);
        end;

    OnInit:
        hideonnpc strnpcinfo(3);
        end;
      }
     

     

  5. To change the item level requirements you need to add new line for:

    Quote

    EquipLevelMin           Minimum required level to equip. (Default: 0)
    EquipLevelMax           Maximum level that can equip. (Default: 0)

    If there's an existing line for that just change the value based on what you want to do.

     

    And yes don't forget to change the iteminfo as well inside the System folder to match your changes. 🙂 

  6. On 7/5/2024 at 5:27 PM, Racaae said:

    Hi, find in \npc\kafras\functions_kafras.txt

    .@menu$ = implode(.@K_Menu0$,":");

    And insert above it:

    	.@s = getarraysize(.@K_Menu0$);
    	.@K_Menu0$[.@s] = .@K_Menu0$[.@s-1];
    	.@K_Menu0$[.@s-1] = "Identify items (100z each)";

     

    Find:

    		else if (.@K_Menu0$[.@j] == "Use Guild Storage") {
    			callfunc "F_KafStor",1,0;
    			next;
    		}

    And insert below it:

    		else if (.@K_Menu0$[.@j] == "Identify items (100z each)") {
    			callfunc "F_KafIdentify";
    			next;
    		}

     

    Also insert this at the end of the file:

    //===================================================
    // Identify Items Function
    //===================================================
    function	script	F_KafIdentify	{
    	.@zeny = 100;
    	.@i = identifyall(false);
    	mes "[Kafra Employee]";
    	mes "The cost for identify each item is " + .@zeny + "z.";
    	if (.@i) {
    		mes "You have " + F_InsertPlural(.@i, "unidentified item") + ".";
    		mes "Are you sure you want to pay ^0000FF" + .@zeny * .@i + "z^000000?";
    		next;
    		if(select("Yes.", "No, I changed my mind.") == 1) {
    			if (Zeny < .@zeny * .@i) {
    				mes "[Kafra Employee]";
    				mes "I'm sorry, but you don't have enough zeny.";
    				return;
    			}
    			Zeny -= .@zeny * .@i;
    			identifyall;
    			mes "[Kafra Employee]";
    			mes "All your items have been identified.";
    			mes "Thank you for using the Kafra Services!";
    		}
    	} else
    		mes "You have no unidentified items in your inventory.";	
    	return;
    }

     

    Or just replace the whole file:functions_kafras.txt

    Maybe I insert the changes into a incorrect locations when I try to get the attached file here its working perfect. Thank you so much mate for the help I didn't realized that

×
×
  • Create New...