Jump to content

MyNoobScriptz

Members
  • Posts

    75
  • Joined

  • Last visited

Posts posted by MyNoobScriptz

  1. Hello,

    As the title, how can I force pet turn into egg? And then delete egg ?

    Like example : 

    1. Player talk to this npc.. then this NPC will turn his pet into egg.

    2. After turn the pet into egg, npc will delete his egg and giving the item as reward or give other egg as reward.

  2. 6 hours ago, Racaae said:

    Hi

    yuno,165,80,3	script	Entrance Guard#guild	4_M_UNCLEKNIGHT,{
    	mes "[" + strnpcinfo(1) + "]";
    	mes "What do you want?";
    	next;
    	switch(select("Register guild", "Enter area", "Finish conversation")) {
    	case 1:
    		if (!getcharid(2)) {
    			mes "[" + strnpcinfo(1) + "]";
    			mes "You are not in a guild.";
    			close;
    		}
    		if (inarray($registered_guilds, getcharid(2)) >= 0) {
    			mes "[" + strnpcinfo(1) + "]";
    			mes "Your guild registered already.";
    			close;
    		}
    		.@i = getarraysize($registered_guilds);
    		setarray $registered_guilds[.@i], getcharid(2);
    		mes "[" + strnpcinfo(1) + "]";
    		mes "Guild " + strcharinfo(2) + " registered!";
    		mes "Guild members can now enter.";
    		close;
    
    	case 2:
    		if (inarray($registered_guilds, getcharid(2)) < 0) {
    			mes "[" + strnpcinfo(1) + "]";
    			mes "Your guild did not register.";
    			close;
    		}
    		mes "[" + strnpcinfo(1) + "]";
    		mes "You're with the guild " + strcharinfo(2) + ", correct?";
    		mes "I will send you there.";
    		close2;
    		warp "que_qsch05",346,32;
    		end;
    
    	case 3:
    		mes "[" + strnpcinfo(1) + "]";
    		mes F_Bye;
    		close;
    	}		
    }

     

    thank you!!

    but possible to change gm control and put name of guild member to register

    please

  3. //REDUCE HP PLAYER OUT OF ZONE
    prontera,1,1,1	script	AutoReduceHP	HIDDEN_NPC,{
    	end;
    
    OnTimer2000:
    	.@percent = -30;
    	.@size = getareaunits(BL_PC,"prontera",145,83,164,69,.@aid);
    	
    	if (.@size > 0) {
    		for (.@i = 0; .@i < .@size; .@i++) {
    			if (attachrid(.@aid[.@i])) {
    				if (Hp <= MaxHp) {
    					specialeffect2 107;
    					percentheal .@percent, .@percent;
    					if (Hp < 5) {
    						warp "SavePoint",0,0;
    					}
    				}
    				detachrid;
    			}
    		}
    	}
    	initnpctimer;
    	end;
    
    OnInit:
    	initnpctimer;
    	end;
    }

    hi rathena i have script from rathena, but i need to convert script if player out of area hp - 30 % every 2 second

    can anyone help me please

  4. On 9/7/2023 at 6:08 PM, Winterfox said:
    -	script	SKILL_DEMO	FAKE_NPC,{
    	OnInit:
    		monster("prontera", 150, 170, "Helper A", 1002, 1);
    		.@mob_a = $@mobid[0];
    		unitblockmove(.@mob_a, 1);
    
    		getunitdata(.@mob_a, .@mob_a_data);
    		.@pos_x = .@mob_a_data[UMOB_X];
    		.@pos_y = .@mob_a_data[UMOB_Y];
    
    		monster("prontera", 140, 160, "Helper B", 1002, 1);
    		.@mob_b = $@mobid[0];
    
    		while(.@pos_x != .@target_x || .@pos_y != .@target_y) {
    			getunitdata(.@mob_b, .@mob_b_data);
    			.@target_x = .@mob_b_data[UMOB_X];
    			.@target_y = .@mob_b_data[UMOB_Y];
    
    			if(.@pos_x != .@target_x) .@pos_x += (.@pos_x < .@target_x) ? 1 : -1;
    			if(.@pos_y != .@target_y) .@pos_y += (.@pos_y < .@target_y) ? 1 : -1;
    
    			unitskillusepos(.@mob_a, "MG_THUNDERSTORM", 10, .@pos_x, .@pos_y, -5, false, 0, true);
    			sleep(1000);
    		}
    }

     

    Thx it's work!! , if i need to increase 1 cell per skill to 2 cell or 5 cell how i do this ?

  5. Quest.cpp

    	if (this->nodeExists(node, "Drops")) {
    		const auto& drops = node["Drops"];
    
    		for (const auto& dropNode : drops) {
    			uint32 mob_id = 0; // Can be 0 which means all monsters
    
    			if (this->nodeExists(dropNode, "Mob")) {
    				std::string mob_name;

    Quest_db.yml
     

    #   Drops:                 Quest item drop targets. (Default: null)
    #     - Mob                Monster to kill. 0 will apply to all monsters. (Default: 0)
    #       Item               Item to drop.
    #       Count              Amount of items that will drop. Non-stackable items default to 1. (Default: 1)
    #       Rate               Item drop rate. (10000 = 100%)

     

      - Id: 2000
        Title: Jellopykiller
        Drops:
          - Mob: 0
            Item: Jellopy
            Rate: 1500

    Does anyone know how to make all monster drop Jellopy while being quest?

    DOC : say 0 will apply to all monsters. (Default: 0), But got error

×
×
  • Create New...