Jump to content

IndieRO

Members
  • Content Count

    286
  • Joined

  • Last visited

  • Days Won

    13

Reputation Activity

  1. Like
    IndieRO reacted to AnnieRuru in Sample Questlog & Achievement script   
    this has nothing to do with stylist script, nor the showscript script command,
    but rather the *setquestinfo script command
    and I reproduce the problem with this topic, so move the post over here
    https://github.com/HerculesWS/Hercules/issues/2431
    and also can only reproduce with "@reloadscript" so it isn't ... too severe I guess,
    because live server shouldn't use "@reloadscript" at all
  2. Like
    IndieRO reacted to Sephus in The Horizon Project   
    Hey all,
     
    I just came back to Hercules again and I have a great new post for everyone. The topic's original post has been updated with what I have planned in writing and telling the community. Have a good enjoyable read and make sure you join us.
  3. Like
    IndieRO reacted to 4144 in Http support in hercules (merged to hercules)   
    I created pull request with api-server code https://github.com/HerculesWS/Hercules/pull/3198
     
  4. Like
    IndieRO reacted to hendra814 in Nemo patcher   
    update, already found the issue.
    the issue because client need font files
    - SCDream4.otf 
    - SCDream6.otf 
  5. Like
    IndieRO reacted to Judas in HOW TO CONTACT GODAMINT   
    what type of source code mods do you need?
  6. Like
    IndieRO reacted to csnv in csnv webtoken   
    View File csnv webtoken
    NOTE: THIS PLUGIN IS NO LONGER NECESSARY! API SERVER ALREADY MERGED

    Plugin required for generating webtokens for third party applications to serve the required web services for newer clients (2019-06+).
     
     
    Third party applications than can make use of webtokens generated by this plugin:
    https://github.com/csnv/Mindu [Tested]
    https://github.com/secretdataz/athena-web-service [Untested]
     
    Please report any issue in the github page
    https://github.com/csnv/webtoken
     
    Instructions:
    - Import login_webtoken_fields.sql into your SQL database.
    - Apply webtoken.diff to your Hercules server codebase. Alternatively, you may apply this PR: https://github.com/HerculesWS/Hercules/pull/3183
    - Place csnv_webtoken.c in your src/plugins directory and compile.
     
    Now your hercules emulator generates the required webtoken. Pick a webserver application that can make use of it.
    Submitter csnv Submitted 12/30/22 Category Client Resources  
  7. Like
    IndieRO reacted to Bluff in Spring Morocc   
    Hi guys ✋
     
    All my works here: https://discord.gg/fmSbTy3x6h ⭐

    I present to you my new custom Morocc map  ! 😛

    I let you watch the videos below or the screenshots to get an overview of the project  !
     
    🔥Screenshot: https://www.artstation.com/artwork/4XWNg1
     
     
  8. Like
    IndieRO reacted to fiction in Http support in hercules (merged to hercules)   
    Well was pretty easy than i expected doing a donate with a crypto.

    I just used binance to make all the transaction.
     
    Hope can you continue development this features 4144 :]
  9. Like
    IndieRO reacted to Bluff in Christmas Prontera !   
    Hi guys ✋
     
    All my works here: https://discord.gg/fmSbTy3x6h ⭐

    I present to you my new map :  Christmas Prontera ! ❄️

    I let you watch the videos below or the screenshots to get an overview of the project  !
     
     
    🔥Screenshot: 
    https://www.artstation.com/artwork/nEnKko
     
  10. Like
    IndieRO reacted to 4144 in Nemo patcher   
  11. Like
    IndieRO reacted to 4144 in Upcoming hercules feature   
    New feature: Items preview in trader shop
     
    Can be enabled by:
    1. defining ENABLE_OLD_CASHSHOP_PREVIEW_PATCH in core.h or by configure flag --enable-old-cashshop-preview-patch
    2. Then need apply this nemo patch http://nemo.herc.ws/patches/ExtendOldCashShopPreview/
     
    Feature can works only if option in server side enabled and enabled patch in client side. In other case custom shops will be corrupted
     
    For enable this feature need use this pull request https://github.com/HerculesWS/Hercules/pull/3152
     

     
     
  12. Like
    IndieRO reacted to AtlantisRO in Http support in hercules (merged to hercules)   
    Hello.
     
    I just see this post and i have interest in donate for see that features in Hercules. I will see how to donate with bitcoins.
     
    The effort is appreciated, it is unfortunate that there are no more donations to this initiative
     
    Regards.
  13. Like
    IndieRO reacted to Sephus in Random Item Option System?   
    Added in PR - https://github.com/HerculesWS/Hercules/pull/1598
  14. Like
    IndieRO reacted to 4144 in Http support in hercules (merged to hercules)   
    it adding missing features to emulator yes, this is like rathena.
    but it works different, this mean not like rathena.
     
    rathena server very basic and it cant do anything except some http handlers. alternative rathena server integrated to probably map server, this is not the best solution too.
     
     
  15. Like
    IndieRO reacted to 4144 in Http support in hercules (merged to hercules)   
    Some progress update. Complete things:
    Add support for gif guild emblems. Add support for emblems bigger than 64k bytes. Add shared configs support between login/char/map/api. Add configuration with default emotes for new chars.  
  16. Like
    IndieRO got a reaction from Timokha in Special effect on all players at map   
    when you want to give all effect when someone getitem from npc
    just use getunits to get all char ID on map do you want
    and then give all them specialeffect
    See on Script_command.txt and search function getunits
  17. Like
    IndieRO reacted to Hyroshima in How to limit random event   
    I made this model as you explained how it works.
     
    //Add a call function in item // callfunc "Boxx"; function script Boxx { //Item ID //== setarray .@ItemID[0],1108,2104,5011,2301,2404; //check if you still have an item with a refine lower than 10 //== for(set .@i,0; .@i<getarraysize(.@ItemID); set .@i,.@i+1) if((getd("eqi_"+.@ItemID[.@i])-1) < 10) setarray .@equips[getarraysize(.@equips)],.@ItemID[.@i]; //All refined +10 //== if(!getarraysize(.@equips)){ dispbottom "Bye bye."; end; } set .@idx,rand(getarraysize(.@equips)); set .@slot,getiteminfo(.@equips[.@idx],ITEMINFO_LOC); switch(.@slot) { case 2: set .@slot,EQI_HAND_R; break; case 16: set .@slot,EQI_ARMOR; break; case 32: set .@slot,EQI_HAND_L; break; case 64: set .@slot,EQI_SHOES; break; case 256: set .@slot,EQI_HEAD_TOP; break; } if(getd("eqi_"+.@equips[.@idx])) { if(!countitem(.@equips[.@idx])){ dispbottom "Item not found "+getitemname(.@equips[.@idx])+"!"; end; } if(getequipid(.@slot) != .@equips[.@idx]) equip .@equips[.@idx]; successrefitem .@slot; setd "eqi_"+.@equips[.@idx],getd("eqi_"+.@equips[.@idx])+1; } else { setd "eqi_"+.@equips[.@idx],1; getitem .@equips[.@idx],1; } end; }  
  18. Like
    IndieRO reacted to Hyroshima in NPC Teleportador   
    seria isso?
    prontera,151,169,5 script Alquimista Teleport 113,{ if(Class == 5 || Class == 18 || Class == 4019) { dispbottom "class: "+Class+""; mes "Você pode ser teleportado."; next; warp "prontera",150,150; end; } mes "Somente Alquimistas podem usar esse npc."; close; }  
  19. Like
    IndieRO reacted to Ai4rei in Elurair, v2.13.2.354 - last updated 2023/12/31   
    Updated to 2.3.0, adds 3rd party patch server progress limiting and ability to use videos as background.
     

  20. Like
    IndieRO reacted to Hyroshima in Add cooldown dynamically on npcs   
    I made this function for a friend and it can be useful in general. 
    basically allows you to add wait time for something in npc, you can put different times in the same npc using the reference names.
    a utility to put in Global_Functions
     
    //== Function F_SetNpcCD ================================ // Add cooldown to access specific functions of a pc but not limited //== // callfunc "F_SetNpcCD","reference_name",time_in_seconds{,cooldown type}; // Examples: // callfunc("F_SetNpcCD","name_example0",45) // Adds 45 second cooldown at player level // callfunc("F_SetNpcCD","name_example1",85,1) // Adds 1 minute 25 second cooldown at player level // callfunc("F_SetNpcCD","name_example2",120,2) // Adds 2-minute cooldown at account level function script F_SetNpcCD { set .@var$,(countstr(getarg(0)," ")?replacestr(getarg(0)," ","_"):getarg(0)); set .@time,getarg(1); set .@type,getarg(2,0); setd(""+(.@type==2?"#":"")+""+.@var$+"_time",gettimetick(2)+.@time); return; } //== Function F_GetNpcCD ================================ // Check npc access cooldown //== // callfunc "F_GetNpcCD","name_example"{,cooldown type}; // Examples: // callfunc("F_GetNpcCD","name_example0") // returns "NPC Cooldown: 00H:00M:45s (player)" // callfunc("F_GetNpcCD","name_example1",1) // returns "NPC Cooldown: 00H:01M:25s (player)" // callfunc("F_GetNpcCD","name_example2",2) // returns "NPC Cooldown: 00H:02M:00s (account)" function script F_GetNpcCD { set .@var$,(countstr(getarg(0)," ")?replacestr(getarg(0)," ","_"):getarg(0)); set .@type,getarg(1,0); if(gettimetick(2) < getd(""+(.@type==2?"#":"")+""+.@var$+"_time")) { set .@ts,getd(""+(.@type==2?"#":"")+""+.@var$+"_time")-gettimetick(2); set .@h,.@ts/3600; set .@m,(.@ts%3600)/60; set .@s,.@ts%60; dispbottom "NPC Cooldown: "+(.@h<10?"0"+.@h:.@h)+"H:"+(.@m<10?"0"+.@m:.@m)+"M:"+(.@s<10?"0"+.@s:.@s)+"s ("+(.@type==2?"account":"player")+")"; end; } return; }  
  21. Like
    IndieRO reacted to 4144 in Http support in hercules (merged to hercules)   
    Some update on project. now also implemented
    extend plugins support for inter server packets. add support for api to login, char, map packets. protection against different attacks on servers. sample http plugin.  
     
  22. Like
    IndieRO got a reaction from evilpuncker in Http support in hercules (merged to hercules)   
    I'll try to donate this month be waiting
  23. Like
    IndieRO reacted to AnnieRuru in Deprecated Features   
    Related commit: https://github.com/HerculesWS/Hercules/pull/2391
    this is part of *setunitdata script command clean-up
    the UDT_MAPIDXY and UDT_WALKTOXY constant has been deprecated so this script command only dealing with 1 INTEGER value
    now it has been standardize, all (int) has been removed from the documentation
     
    Example 1 : setunitdata UDT_MAPIDXY (old)
    .@mobgid = monster("this", -1,-1, "--ja--", PORING, 1); setunitdata(.@mobgid, UDT_MAPIDXY, "guild_vs2", 50,50); now should be
    .@mobgid = monster("this", -1,-1, "--ja--", PORING, 1); unitwarp(.@mobgid, "guild_vs2", 50,50);  

    Example 2 : getunitdata UDT_MAPIDXY (old)
    .@mobgid = monster("this", -1,-1, "--ja--", PORING, 1); getunitdata(.@mobgid, UDT_MAPIDXY, .@pos); dispbottom(sprintf("%d %d %d", .@pos[0], .@pos[1], .@pos[2])); // apparently we don't have *mapid2name script command ... doesn't matter anymore now should be
    .@mobgid = monster("this", -1,-1, "--ja--", PORING, 1); getmapxy(.@map$, .@x, .@y, UNITTYPE_MOB, .@mobgid); dispbottom(sprintf("%s %d %d", .@map$, .@x, .@y));  

    Example 3 : setunitdata UDT_WALKTOXY (old)
    .@mobgid = monster("this", -1,-1, "--ja--", PORING, 1); setunitdata(.@mobgid, UDT_WALKTOXY, 158,185); now should be
    .@mobgid = monster("this", -1,-1, "--ja--", PORING, 1); unitwalk(.@mobgid, 158, 185);  
  24. Like
    IndieRO reacted to Ridley in Deprecated Features   
    Related commit:
    https://github.com/HerculesWS/Hercules/pull/2566 and present in https://github.com/HerculesWS/Hercules/commits/stable
    getguildinfo()
    getguildname()
    getguildmaster()
    getguildmasterid()

    Script Conversion:
    find npc db -type f -exec sed -i -e "s/getguildname(/getguildinfo(GUILDINFO_NAME, /g" \ -e "s/getguildmaster(/getguildinfo(GUILDINFO_MASTER_NAME, /g" \ -e "s/getguildmasterid(/getguildinfo(GUILDINFO_MASTER_CID, /g" {} + Format and Values:
    *getguildinfo(<info type>{, <guild id>}) *getguildinfo(<info type>{, "<guild name>"}) Valid <info type> are: GUILDINFO_NAME - guild name GUILDINFO_ID - guild id GUILDINFO_LEVEL - current level GUILDINFO_EXP - current exp GUILDINFO_NEXT_EXP - exp required to reach the next level GUILDINFO_SKILL_POINTS - available skill points GUILDINFO_ONLINE - number of online members GUILDINFO_AV_LEVEL - average member level GUILDINFO_MAX_MEMBERS - guild capacity GUILDINFO_MASTER_NAME - name of the guild master GUILDINFO_MASTER_CID - char id of the guild master Example:
    1Old: 
    getguildmaster(getcharid(CHAR_ID_GUILD)) 1New:
    getguildinfo(GUILDINFO_MASTER_NAME, getcharid(CHAR_ID_GUILD)) 2Old:
    getguildname(getcharid(CHAR_ID_GUILD)) 2New:
    getguildinfo(GUILDINFO_NAME, getcharid(CHAR_ID_GUILD))  
  25. Like
    IndieRO reacted to Ridley in Deprecated Features   
    Related commit:
    https://github.com/HerculesWS/Hercules/pull/2398
    This command will return the currently active pet information of the invoking character.
    getpetinfo(<type>)
    petstat(<flag>)
     
     
     
    Types:
    PETINFO_ID - Pet Database ID, stored in `pet` table to distinguish from other pets. PETINFO_CLASS - Pet class ID. (Id field) PETINFO_NAME - Pet Name, return "null" if there's no active pet. PETINFO_INTIMACY - Pet Intimacy level. 1000 is full loyalty. PETINFO_HUNGRY - Pet hungry level. 100 is completely full. PETINFO_RENAME - Pet rename flag. 0 means this pet has not been named yet. PETINFO_GID - Pet Game ID PETINFO_EGGITEM - Pet EggItem PETINFO_FOODITEM - Pet FoodItem PETINFO_ACCESSORYITEM - Pet AccessoryItem PETINFO_ACCESSORYFLAG - return 1 if the pet currently equipping accessory, return 0 otherwise. PETINFO_EVO_EGGID - Pet Evolve EggID PETINFO_AUTOFEED - Pet AutoFeed flag.  
×
×
  • Create New...

Important Information

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