Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 05/19/18 in Posts

  1. 1 point
    AnnieRuru

    CUSTOM ITEM SCRIPT FOR @GO

    assuming you have this https://github.com/HerculesWS/Hercules/blob/stable/npc/mapflag/town.txt prontera,150,185,5 script test 1_F_MARIA,{ input .@map$; if ( getmapusers( .@map$ ) == -1 ) dispbottom "no such map"; else if ( !getmapflag( .@map$, mf_town ) ) dispbottom "not a town"; else atcommand "@go "+ .@map$; // yeah lazy to note down the coordinate, so use atcommand end; }
  2. 1 point
    AnnieRuru

    Annieruru emp BG

    hercules<=>rathena battleground/instance/mob-controller script commands are totally different I also have to admit hercules one are always on the harder side ... this is not funny matter .... just ... well ... see how the script grow in size comparative to rathena ones, and you'll understand why until today I still haven't convert my arathi basin on rathena into hercules http://upaste.me/f08349808ea0ba1b1
  3. 1 point
    similar topic appear in rathena forum prontera,155,180,0 script Test Instance 1_F_MARIA,{ if ( has_instance2("guild_vs2") >= 0 ) { // dispbottom has_instance2("guild_vs2") +" destroy"; instance_destroy has_instance2("guild_vs2"); } if ( ( .@ins = instance_create( "Test Instance", getcharid(CHAR_ID_ACCOUNT), IOT_CHAR ) ) < 0 ) { mes "error : "+ .@ins; close; } if ( !getstrlen( instance_attachmap( "guild_vs2", .@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("guild_vs2"), 49,49; end; } guild_vs2,49,49,5 script test dialog 1_F_MARIA,{ dispbottom strnpcinfo(NPC_MAP); mesf "%d monsters on this map", 'amount; next; select "Destroy"; instance_destroy; end; OnInstanceInit: monster has_instance("guild_vs2"), 49,49, "--ja--", PORING, 10, instance_npcname( strnpcinfo(NPC_NAME) )+"::OnMobDead"; 'amount = 10; end; OnMobDead: --'amount; if ( !'amount ) instance_announce -1, "all monster killed", bc_map; end; } few things noted for hercules ones 1. hercules has more instance related script commands, but also make this more flexible to write once you learn them all a. hercules has *instance_attach script command, make sure this script command is added before trying do anything instance related in the register npc b. hercules has to emulate the map name with *instance_attachmap if the map name doesn't follow the syntax <number>@<5 string limit> 2. hercules instance ID start from 0, rathena instance ID start from 1 a. make sure the instance_announce is set to -1 3. hercules seems cannot *instance_destroy inside the instance map itself ... has to rely on *instance_set_timeout of the timeout value
×
×
  • Create New...

Important Information

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