Jump to content

Script Support

Explore Questions

There are no popular questions to show right now

  1. Endless Tower w/ difficulty

    Asked by Louis T Steinhil,

    0 votes
    2 answers
  2. 0 votes
    1 answer
  3. 0 votes
    0 answers
  4. eden group

    Asked by AirWingLK,

    0 votes
    1 answer
  5. Help in script

    Asked by securao,

    0 votes
    0 answers

1953 questions in this forum

  1. Wrong Forum [ Script Problem ]

    0 votes
    5 answers
  2. stylist bug.

    0 votes
    2 answers
  3. Regarding Stylist

    0 votes
    7 answers
  4. Script error with pict

    0 votes
    2 answers
  5. Advance Stylist

    0 votes
    5 answers
  6. @mum command doesnt work

    0 votes
    6 answers
  7. Quest Board

    0 votes
    0 answers
  8. 0 votes
    1 answer
  9. 0 votes
    3 answers
  10. 0 votes
    15 answers
  11. 0 votes
    0 answers
  12. 0 votes
    6 answers
  13. 0 votes
    1 answer
  14. 0 votes
    2 answers
  15. 0 votes
    2 answers
  16. 0 votes
    2 answers
  17. How to Fix this ERROR?

    0 votes
    2 answers
  18. Missing Ghost?

    0 votes
    2 answers
  19. goldroom party

    0 votes
    1 answer
  20. 0 votes
    0 answers
  21. Official banker?

    0 votes
    9 answers
  22. 0 votes
    3 answers
  23. help on this script

    0 votes
    8 answers
  24. 0 votes
    7 answers
  25. 0 votes
    4 answers
  • Featured Topics

  • Latest Commits

  • Topics

  • Posts

    • I think your options are: 1. Recreate the script command in herc, shouldn't be that hard, I believe this info is available, just need to make a script command to get it     2. Save a dynamic global variable using the instance ID as suffix using setd between instance_create and instance_init. Once the instance starts, you can copy the value from the global variable into an instance variable. Something like that: // create instance .@instanceId = instance_create(...) // Make global var setd(sprintf("$@instance_type_%d", .@instanceId), 1 /* whatever you need to store */); // Init it instance_init(...) // ------ // This is called on instance_init OnInstanceInit: .@varName$ = sprintf("$@instance_type_%d", instance_id()); 'instanceType = getd(.@varName$); setd(.@varName$, 0); // Clean up so you don't mess up future id reuses end;   References: - OnInstanceInit: https://github.com/HerculesWS/Hercules/blob/stable/doc/script_commands.txt#L1151 - instance_create: https://github.com/HerculesWS/Hercules/blob/stable/doc/script_commands.txt#L9730 - instance_init: https://github.com/HerculesWS/Hercules/blob/stable/doc/script_commands.txt#L9793    
    • It always easy to run on linux and compile in linux, I run on ubuntu it works fine Just need to follow guide on repo README
    • Can anyony reupload GRF #3 for pre renewal content?
    • Anyone please help me to locate soulstrike skill str, i want to edit that skill   Thankss
    • Think the closest to have for now is saving the relevant information you want in instance creation.   *instance_create("<instance_name>", <owner_id>{, <owner_type>}) Creates an instance using the name "<instance_name>" for the <owner_id> of <owner_type> (when not provided, defaults to IOT_PARTY). Most instance_* commands are used in conjunction with this command and depend on the ID this command returns. Valid <owner_type> values: - IOT_NONE (0) - <owner_id> can be any arbitrary number. - IOT_CHAR (1) - <owner_id> is account ID. - IOT_PARTY (2) - <owner_id> is party ID. - IOT_GUILD (3) - <owner_id> is guild ID. Example: // Store the Party ID of the invoking character. .@party_id = getcharid(CHAR_ID_PARTY); // Attempt to create an instance using that party ID. .@id = instance_create("Endless Tower", .@party_id); if (.@id == -1) { // Invalid type - not used anymore // ... } else if (.@id == -2) { // Invalid Party ID // ... } else if (.@id == -4) { // Already exists // ... } else if (.@id < 0) { // Unspecified error while queuing instance. // ... } The alternative would be to change the way instance is handled in source code, or implement a plugin to fetch instance info similar on how rAthena does and uses on that script. From what I understood, you want to retrieve the instance level mode by supplying the instance owner id?
  • Download Statistics

    • Files
      457
    • Comments
      154
    • Reviews
      240

    Latest File
    By Hyroshima

    53    0

×
×
  • Create New...

Important Information

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