Jump to content

luizragna

Members
  • Content Count

    114
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by luizragna


  1. Hello guys. I'm trying run the roBrowser. but I don't understand anything about Api and js

    i followed the tutorial Getting Started, but which program do I use to run?

    Quote

    Even in this simple example, there are a few things to note:

    • We declare the application as HTML5 using the <!DOCTYPE html> declaration.
    • We include the roBrowser API JavaScript using a script tag.
    • We create a div element named "robrowser" to hold the result.
    • We create a JavaScript object literal to hold a number of properties.
    • We create a JavaScript "RO" object, passing it the properties.
    • We use an event listener to load roBrowser after the page has loaded

    I can use the WampServer?


  2. Hello guys, when i use getunitdata in died mobs, the console shows:

    Quote

    [Warning]: buildin_getunitdata: Error in finding object with given GID 110009625!
    [Debug]: Source (NPC): S-BOSS#PayD04 at pay_dun04 (114,125)

    I'm making a NPC that shows mob HP using command while.


  3. @happles abre o cmd e digita: cd C:/caminhoDaSuaPastaDoEmulador

    exemplo: cd C:\Users\Luiz Victor\Hercules

    Após isso, aperta enter e digita o comando: map-server --load-plugin mapcache --map NomeDoSeuMapa

    Aperta enter e aguarda, se mesmo assim você não conseguir, pode me add no discord que eu explico. DzG Nightmare#5780

     


  4. Cara você pode usar o emulador cronus:

    Forum: https://forum.cronus-emulator.com

    Donwload (Github): https://github.com/Cronus-Emulator 

     

    Mas caso prefira usar o Hercules e editar manualmente:

    (Partindo do princípio que você está usando o emulador no modo renewal)

    Você vai em db/re/mob_db.conf

    e edita o name: "nome do mob"

    exemplo: (Pé Grande)

    Antes:

    	Id: 1060
    	SpriteName: "BIGFOOT"
    	Name: "Bigfoot"
    	Lv: 29

    Depois:

    	Id: 1060
    	SpriteName: "BIGFOOT"
    	Name: "Pé Grande"
    	Lv: 29

    OBS¹: Não altere o sprite name.

    OBS²: Você deve converter o arquivo para ANSI para que o acentos não fiquem bugados.

    Só que essas edições de nome só servem somente para o comando @monster

    Para editar o nome dos monstros spwanados você edita eles na pasta: npc\re\mobs

     


  5. It's a very simple example:

    announcement.sql:

    DROP TABLE IF EXISTS `announcements`;
    CREATE TABLE IF NOT EXISTS `announcements` (
      
      `time` DATETIME NOT NULL DEFAULT '00-00-0000 00:00:00',
      `announcement` VARCHAR(50) NOT NULL DEFAULT '',
    
      PRIMARY KEY (`time`)
    ) ENGINE=MYISAM;

     

    announce.txt:

    prontera,159,180,3	script	Announcer Girl	1_F_MARIA,{
    
    
    set .@announcement$,"Hello "+strcharinfo(PC_NAME)+" from World";
    
    announce(""+.@announcement$+"", bc_all);
    
    query_sql("INSERT INTO `announcements` (announcement,time) VALUES ('"+.@announcement$+"',NOW() )");
    
    end;
    }

     


  6. 59 minutes ago, AnnieRuru said:

    I remember this is client issue though, correct me if I'm wrong ....
    because I remember I read this topic/article before ....
    it just like all those Job_Knight2/Job_Crusader2 is actually tell the client
    sprite change from Job_Knight which is setmount MOUNT_NONE; into Job_Knight2 which is setmount MOUNT_PECO;

    so its the same if you want to make other jobs that can mount pecopeco, has to make more custom job like example Job_Novice2 ... etc etc
    Note the difference between Job_Star_Gladiator and Job_Star_Gladiator2

    so yeah, the only way is to client hexing ...
    erm ... Good luck ~

     

    It was as I imagined, for I searched everywhere.


  7. On 16/05/2018 at 9:56 PM, AnnieRuru said:

    let's see ...

    
    #include "common/hercules.h"
    #include "map/pc.h"
    #include "map/mob.h"
    #include "map/battle.h"
    #include "plugins/HPMHooking.h"
    #include "common/HPMDataCheck.h"
    HPExport struct hplugin_info pinfo = {
    	"Poring invincible",
    	SERVER_TYPE_MAP,
    	"0_0",
    	HPM_VERSION,
    };
    int64 battle_calc_damage_pre(struct block_list **src,struct block_list **bl,struct Damage **d,int64 *damage,uint16 *skill_id,uint16 *skill_lv) {
    	struct block_list *s_bl = *src;
    	if ( (s_bl = battle->get_master(*src)) == NULL ) {
    		s_bl = *src;
    	}
    	if ( s_bl->type == BL_PC && (*bl)->type == BL_MOB ) {
    		TBL_PC *sd = BL_UCAST( BL_PC, s_bl );
    		TBL_MOB *md = BL_UCAST( BL_MOB, *bl );
    		if ( !strcmp( mapindex_id2name(sd->mapindex), "prontera" ) && md->class_ == 1002 ) {
    			hookStop();
    			return 0;
    		}
    	}
    	return 0;
    }
    HPExport void plugin_init (void) {
    	addHookPre( battle, calc_damage, battle_calc_damage_pre );
    }

    still can agi down the mob ... etc
    lazy to do the rest

     


    EDIT: some other answers on rathena forum ...

    NPC_INVINCIBlE = SC_INVINCIBLE ....
    means dealing 1 damage .... not 0 damage though

    It's a plugin?
    What i do after add this plugin?


  8. Hello guys! I'm creating a custom skill that can others jobs can fly.

    But first, i'm edditing the skill "Union of the Sun Moon and Stars" (SG_FUSION)

    doc/script_commands.txt:

    0x008000 Option_Flying

    When i execute the script command:

    setoption(0x008000);

    The character look changes to Star Gladiator flying.

    I tried change the SA sprite to kagerou sprite: (And he works :D)

    screen_Hercules017.jpg

     

    But when i change to other job, he don't work :/

    src/map/pc.h:

    	if (type&OPTION_FLYING && !(p_type&OPTION_FLYING))
    	{
    		//new_look = JOB_STAR_GLADIATOR2; //The original
    		new_look = JOB_ROYAL_GUARD; //My change
    	}

    He changed to RG look, but not fly :/


  9. Hello everyone, How do I make this unit invincible?

     universe,19,40,4	script	Huena#OP	1_F_MARIA,{
    	 
    	 	set .@amount,1;
    		for (.@i = 0; .@i < .@amount; .@i++) {
    	.mobGID = monster ("universe",20,36,"[Teste] Puto",1004,1);
    		setunitdata .mobGID,UDT_LEVEL,7;
    		setunitdata .mobGID,UDT_MAXHP,10;
    		setunitdata .mobGID,UDT_HP,10;
    		
    		}

     


  10. I tried execute: map-server.exe --load-plugin mapcache
    And he show:

    [Fatal Error]: HPM:plugin_load: failed to load 'plugins/mapcache.dll' (error: NÒo foi possÝvel encontrar o m¾dulo especificado.)

     

    The last version of the emulator don't  contain the mapcache to build.deleta.png

×
×
  • Create New...

Important Information

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