Jump to content

luizragna

Members
  • Content Count

    114
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by luizragna


  1. (Estou vendo que você é BR, então vou falar português mesmo. Hahah)

    Cria um mob usando comandos de controle de unidade. Vou te dar algumas ideias:

     

    Criando a unidade:

     			.mob[0] = monster ("payon", 159,222, "[DG] Poporing", 1031, 1);
    			setunitdata .mob[0],UDT_LEVEL,12;
    			setunitdata .mob[0],UDT_MAXHP,50000;
    			setunitdata .mob[0],UDT_HP,50000;

    Essa é a unidade .mob[0]  ↑ ↑ ↑

    Para fazê-lá andar você usa o comando:  *unitwalk(<GID>, <x>, <y>)

    exemplo:

    unitwalk(.mob[0], 150, 222;

     

    Então vc pocura os comandos relacionados a unit  em  conf/script_commands.txt

     

    Para as skills você pode usar o comando areamobuseskill


  2. Hello guys. The NPC are using the same variables.

    -	script	Tester	FAKE_NPC,{
    
    if (.ok == 0)
    {
      mes "Hello";
      set .ok,1; // or .ok = 1;
    }
      else
       mes "I already talked to you";
        
      close();
    
    }
    
    prt_sewb1,154,268,4	duplicate(Tester)	Tester#1	84
    prt_sewb1,160,268,4	duplicate(Tester)	Tester#2	84

     

    When i talk a NPC, the other say:  "I already talked to you". So, they uses the same variable [ .ok ]

    how i can change this??


  3. Solved:

    *setnpcdisplay("<npc name>", "<display name>", <class id>, <size>)
    *setnpcdisplay("<npc name>", "<display name>", <class id>)
    *setnpcdisplay("<npc name>", "<display name>")
    *setnpcdisplay("<npc name>", <class id>)
    
    Changes the display name and/or display class of the target NPC.
    Returns 0 is successful, 1 if the NPC does not exist.
    Size is 0 = normal 1 = small 2 = big.

     


  4. 16 hours ago, Habilis said:

    There is a small problem some clients cant display it if inside a folder inside /illust

    But works good if  directly inside /illust

    My client won't

    ex:  /illust/hpbar/0.bmp [won't work]

    ex: /illust/0_hpbar.bmp [Works]

    Yes, the illust folder don't like subfolders

    I improved the topic to avoid problems


  5. Cara procura no youtube que tem uns tutoriais atualizados. (só não mando o link pq nao testei nenhum deles)

    Em relação aos erros de lua files, é incompatibilidade do hexed com os arquivos. pode ser tbm que o hexed esteja diffado com Load LUA from LUB 


  6. Solved! I added this line in the main script:

    	if ( instance_attachmap( "guild_vs3", .@ins, 1, .@ins +"RAID3" ) == "" ) {
    		mes "error : 6";
    		instance_destroy .@ins;
    		close;
    	}

    And to warp:

    warpparty has_instance("guild_vs2"), 0,0, getcharid(CHAR_ID_PARTY), strnpcinfo(4);

     


  7. @Winterfox when i tryied, the console show:

    Quote

    [Debug]: mapindex_name2id: Map "" not found in index list!
    [Debug]: Source (NPC): TesteDG  at 0RAID (0,0)
    [Debug]: pc_setpos: Passed mapindex(0) is invalid!
    [Error]: buildin_warp: moving player 'Sinbad' to "",199,255 failed.
    [Debug]: Source (NPC): TesteDG at 0RAID (0,0)

     


  8. Hello guys, how i can warp the instance for other map?

    I whant that i kill the big foot, the instance warp to guild_vs3

     

    Main Script:

    prontera,156,189,5	script	Raid	1_F_MARIA,{
    	mes "Conquista de três";
    	next;
    	if ( !getcharid(CHAR_ID_PARTY) ) {
    		mes "Você deve formar um grupo para participar.";
    		close;
    	}
    	if ( getpartyleader( getcharid(CHAR_ID_PARTY), 2 ) != getcharid(CHAR_ID_CHAR) ) {
    		mes "Apenas o líder do grupo pode iniciar.";
    		close;
    	}
    	.@origin = getcharid(CHAR_ID_ACCOUNT);
    	getpartymember getcharid(CHAR_ID_PARTY), 1;
    	getpartymember getcharid(CHAR_ID_PARTY), 2;
    	for ( .@i = 0; .@i < $@partymembercount; ++.@i ) {
    		if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) {
    			attachrid $@partymemberaid[.@i];
    			if ( strcharinfo(PC_MAP) == strnpcinfo(NPC_MAP) )
    				.@online++;
    		}
    	}
    	attachrid .@origin;
    	if ( $@partymembercount != .register_min ) {
    		mes "[MvP Ladder Warper]";
    		mes "Você deve formar um grupo de "+ .register_min +" membror para play.";
    		close;
    	}
    	else if ( .@online != .register_min )  {
    		mes "[MvP Ladder Warper]";
    		mes "Seu grupo deve possuír "+ .register_min +" membros online no mapa '"+ strnpcinfo(4) +"'.";
    		close;
    	}
    	if ( ( .@ins = instance_create( "Raid Dungeon", getcharid(CHAR_ID_PARTY), IOT_PARTY ) ) < 0 ) {
    		mes "error : "+ .@ins;
    		close;
    	}
    	if ( instance_attachmap( "guild_vs2", .@ins, 1, .@ins +"RAID" ) == "" ) {
    		mes "error : 5";
    		instance_destroy .@ins;
    		close;
    	}
    	instance_set_timeout 3600, 15, .@ins;
    	instance_init .@ins;
    	instance_attach .@ins;
    	'hue = 1;
    	warpparty has_instance("guild_vs2"), 0,0, getcharid(CHAR_ID_PARTY), strnpcinfo(4);
    	end;
    	
    OnInit:
    	.register_min = 1;
    	end;
    }

     

    Instance Level 1:

    guild_vs2,0,0,0	script	TesteDG	FAKE_NPC,{
    OnInstanceInit:
    
    	monster (("guild_vs2"), 0,0, "Bigfoot.", 1603, 1, instance_npcname( strnpcinfo(NPC_NAME) )+"::OnMobDead");
    	
    	end;
    	
    OnMobDead:
    end;
    	
    OnInit:
    	disablenpc(""+strnpcinfo(NPC_NAME)+"");
    }

     

    Instance Level 2: (how i can warp to here?)

    guild_vs3,0,0,0	script	TesteDG#2	FAKE_NPC,{
    OnInstanceInit:
    
      monster (("guild_vs3"), 0,0, "Lunatic", 1591, 1, instance_npcname( strnpcinfo(NPC_NAME) )+"::OnMobDead");
    
    	end;
      
     OnMobDead:
      end;
    OnInit:
    	disablenpc(""+strnpcinfo(NPC_NAME)+"");
    }

     


  9. Hello guys! How can I turn this individual instance into a party instance? (where only the leader can start)

    job_wiz,119,109,4	script	Guia Solo	8_F_GIRL,{
    
    	if ( has_instance2("dungeon") >= 0 ) {
    //		dispbottom has_instance2("dungeon") +" destroy";
    		instance_destroy has_instance2("dungeon");
    	}
    	if ( ( .@ins = instance_create( ""+strnpcinfo(NPC_NAME)+"", getcharid(CHAR_ID_ACCOUNT), IOT_CHAR ) ) < 0 ) {
    		mes "error : "+ .@ins;
    		close;
    	}
    	if ( !getstrlen( instance_attachmap( "dungeon", .@ins, true, ( getcharid(CHAR_ID_ACCOUNT) )+"INST" ) ) ) {
    		mes "error : 5";
    		instance_destroy .@ins;
    		close;
    	}
    	instance_set_timeout 3600, 15, .@ins;
    	instance_init .@ins;
    	warp has_instance("dungeon"), 69,47;
    	end;
    
    }

     

×
×
  • Create New...

Important Information

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