Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/15/22 in all areas

  1. @WhiteEagle I've selected the wrong row I saw it yet. It's should of course be: query_sql("SELECT `title_id` FROM `char` WHERE `char_id`="+getcharid(0),.@title_id); Instead of: query_sql("SELECT `char_id` FROM `char` WHERE `char_id`="+getcharid(0),.@title_id); Please let us know if u solved it. Best regards, Rynbef~
    1 point
  2. create a timer , something like this OnInstanceInit://Runs once the instance is created. 'map_gld_dun01$ = instance_mapname("gld_dun01");//save this map name inside the instance 'npc_instance_main_body$ = instance_npcname(strnpcinfo(3));//save this npc name inside the instance monster('map_gld_dun01$,32,36,"--en--",1002,1,'npc_instance_main_body$ + "::OnPoringKilled"); initnpctimer('npc_instance_main_body$); stopnpctimer('npc_instance_main_body$); end; OnPoringKilled: startnpctimer('npc_instance_main_body$); end; OnTimer600000://after 10 minute monster('map_gld_dun01$,32,36,"--en--",1002,1,'npc_instance_main_body$ + "::OnPoringKilled"); setnpctimer(0,'npc_instance_main_body$); stopnpctimer('npc_instance_main_body$); end; or maybe put a sleep delay OnInstanceInit://Runs once the instance is created. 'map_gld_dun01$ = instance_mapname("gld_dun01");//save this map name inside the instance 'npc_instance_main_body$ = instance_npcname(strnpcinfo(3));//save this npc name inside the instance monster('map_gld_dun01$,32,36,"--en--",1002,1,'npc_instance_main_body$ + "::OnPoringKilled"); end; OnPoringKilled: detachrid;//de attach the player from the event. sleep(600000);//sleep for 10 minutes monster('map_gld_dun01$,32,36,"--en--",1002,1,'npc_instance_main_body$ + "::OnPoringKilled"); end;
    1 point
  3. Bards and dancers can use the "Compose" skill to play melody for everyone around them, and in addition a donation box is placed next to them, where other passing players can give zeny's to encourage the street musician to continue his work and feed your family! Musicians cannot open a songwriting area in the same view as each other, so it's your chance to grab the best spot to perform your musics!
    1 point
  4. You need to create the instance body in a new npc with the instance map you can check the instances commands in https://github.com/rathena/rathena/blob/0aa5e93397d3ddfe7a559747b09c16b055da8b24/doc/script_commands.txt#L9248 and instances events in https://github.com/rathena/rathena/blob/0aa5e93397d3ddfe7a559747b09c16b055da8b24/doc/script_commands.txt#L903 so for example you want to spawn 1 poring when the instance starts and respawn it again everytime id die would be like gld_dun01,0,0,0 script #instance_main_body 444,{ end; OnInstanceInit://Runs once the instance is created. 'instance_id = instance_id();//save the instance id 'map_gld_dun01$ = instance_mapname("gld_dun01");//save this map name inside the instance 'npc_instance_main_body$ = instance_npcname(strnpcinfo(3));//save this npc name inside the instance //^ 'var is instance variable , you can call it from any script in that instance. //spawn the monster with a death event monster('map_gld_dun01$,32,36,"--en--",1002,1,'npc_instance_main_body$ + "::OnPoringKilled"); end; OnPoringKilled: //announce that the poring is killed inside all the instance's maps instance_announce('instance_id,"The poring is killed!",0); //spawn the monster again after it's dead. monster('map_gld_dun01$,32,36,"--en--",1002,1,'npc_instance_main_body$ + "::OnPoringKilled"); end; } and to destroy the instance from outside you need to provide the instance id this should work change instance_destroy; to instance_destroy(instance_id(IM_PARTY)); ^this will destroy the party instance that hooked to the player (it's not a good idea to do that without a lot of other checks like party leader , or the instance is the instance you want to destroy not another instance etc)
    1 point
  5. @ErossU need to spawn the monster at the script cuz' an instance is a clear copy of the default map. Only Npcs and mapflags copied to the instance. Instance.txt Rynbef~
    1 point
  6. if (.map$ == strcharinfo(3) && !(agitcheck() || agitcheck2() || agitcheck3()) {
    1 point
  7. - script Sample -1,{ OnInit: .map$ = "prtg_cas01"; setmapflag(.map$, MF_LOADEVENT); end; OnPCLoadMapEvent: if (.map$ == strcharinfo(3) && !(agitcheck() || agitcheck2() || agitcheck3()) { .@castle_guild_id = getcastledata(.map$, CD_GUILD_ID); if (.@castle_guild_id && getcharid(2) != .@castle_guild_id) { mes "You aren't allow to enter this area."; close2; warp "SavePoint", 0, 0; } } end; }
    1 point
  8. Gracias . Para los que vengan por aquí con el mismo problema si no encuentran este archivo en el data de el emulador tienen que abrir el grf y buscar skilltreeview_20180621.lub y cambiarlo por skilltreeview.lub arriba nadie explica que esta dentro del grf
    1 point
  9. Version 1.0.1

    1068 downloads

    Requared the latest kRo data (2019-10-02+)! New maps now don`t crash client. Fixed some 3D models and their position. Thanks Tokei for converting (rsm2 to rsm) models. Textures for models: EP_17.2-textures.grf Include only: fixed maps (rsw) @Balfear fixed models @Tokei
    Free
    1 point
  10. Make it more exciting with this... Edit it by your own needs. It adds chance to get the reward. You can add more according to your needs. // setarray .@reward1, "chance", item id, item amount... setarray .@reward1, 5, 7539, 10; // Item ID 7539 x 10with chance of 5% in getting, You can add more.. setarray .@reward2, 15, 7420, 5; // Item ID 7420 x 5 with chance of 15% in getting, You can add more.. setarray .@reward3, 20, 671, 1; // etc... setarray .@reward4, 25, 672, 1; setarray .@reward5, 30, 673, 1; setarray .@reward7, 100, 673, 1; sleep2 300; set .@r, rand(100); while( .@r >= getd( ".@reward"+ .@i ) ) .@i++; .@rand_index = rand( 1,( getarraysize( getd( ".@reward"+ .@i ) ) -1 )/2 ) *2 -1; getitem getd( ".@reward"+ .@i +"["+ .@rand_index +"]" ), getd( ".@reward"+ .@i +"["+ (.@rand_index +1) +"]" );
    1 point
×
×
  • Create New...