Jump to content

Angelmelody

Members
  • Content Count

    772
  • Joined

  • Last visited

  • Days Won

    23

Reputation Activity

  1. Upvote
    Angelmelody got a reaction from Helena in Use item type 11 while sitting?   
    try this , hope it work
     
    {
      Id: 501
      AegisName: "Red_Potion"
      Name: "Red Potion"
      Type: 0
      Buy: 10
      KeepAfterUse: true
      Trade: {
      override: 60
      nodrop: true
      notrade: true
      noselltonpc: true
      nomail: true
      noauction: true
      }
      Script: <" itemheal rand(1000,200),0; ">
    },
  2. Upvote
    Angelmelody got a reaction from Lord Ganja in Enchantment System   
    BUILDIN_DEF(successenchant,"ii"),
     
    change into
     
    BUILDIN_DEF(successenchant,"iii"),
  3. Upvote
    Angelmelody reacted to Triedge in How add Arrays to a Array   
    But that does not overwrite the previous value?
     
    Previous value => .@test [4]  = 5
    New Value => .@test [4]  = 6
  4. Upvote
    Angelmelody got a reaction from Jey in Implement addrid Script Command   
    https://github.com/rathena/rathena/commit/6572a9f
     
     
    Many people like this script command,it's pretty useful .
  5. Upvote
    Angelmelody got a reaction from Clare in Convert a Source Code to Hercules   
    ACMD(order){ struct s_mapiterator* count = mapit_getallusers(); struct map_session_data *pl_sd; struct guild* member; int len; memset(atcmd_output, '0', sizeof(atcmd_output)); if(!(member = guild->search(sd->status.guild_id)) || !strstr(member->master,sd->status.name)) { clif->message(sd->fd, "Voce nao e o lider do cla."); return -1; } if(!(strlen(message))) { clif->message(sd->fd, "Voce precisa digitar uma mensagem."); return -1; } sprintf(atcmd_output, "[Lider] %s : %s", sd->status.name, message); len = strlen(atcmd_output); for(pl_sd = (TBL_PC*)mapit->first(count); mapit->exists(count); pl_sd = (TBL_PC*)mapit->next(count)) { if(pl_sd->status.guild_id != sd->status.guild_id) continue; clif->broadcast(&pl_sd->bl, atcmd_output, len, 0x10, SELF); } mapit->free(count); return 0;} ACMD_DEF(order),
  6. Upvote
    Angelmelody got a reaction from Triedge in How add Arrays to a Array   
    you can also use setarray
     
    for example
     
    setarray .@test [0],1,2,3,4,5;
     
    if(Class == Swordman)
    setarray .@test [getarraysize(.@test)-1],6,7,8;

    if(Baselevel > 90)
    setarray .@test [getarraysize(.@test)-1],9,10;
  7. Upvote
    Angelmelody got a reaction from Aurora in Item script: cashmount   
    OnEquipScript: <"if(!hascashmount())setcashmount();">
     OnUnequipScript: <"if(hascashmount())setcashmount();">
  8. Upvote
    Angelmelody got a reaction from Ehwaz in get and set info of mapreg   
    get
    mapreg->readreg( script->add_str("$abc");
     
    set
    mapreg->setreg( script->add_str("$@cde"), 1000 );
  9. Upvote
    Angelmelody got a reaction from Kong in Auraset   
    @@Dastgir
     
      I think the params of  hooking functions  should be pointer instead of normal variable,so
     
     type == SC_HIDING || type == SC_CLOAKING || type == SC_CHASEWALK || ....
     
      would be
     
     *type == SC_HIDING || *type == SC_CLOAKING || *type == SC_CHASEWALK || ...
  10. Upvote
    Angelmelody reacted to malufett in Oboro / Rebellion Quest and Skills   
    well once I got my rebellion in kRO...I already coded it but need to reconfirm some behaviors and formula from kRO...
     

  11. Upvote
    Angelmelody got a reaction from nuna in Hello help me on automatic prize giver for KoE   
    try this
     
    //////THISSSSSS ONEgetguildmember(getcastledata("guild_vs1", 1),2);for(.@i=0;.@i< $@guildmembercount;.@i++) getitem 30206,1,$@guildmemberaid[.@i];//////THISSSSSS ONE
  12. Upvote
    Angelmelody got a reaction from Aeromesi in Hello help me on automatic prize giver for KoE   
    try this
     
    //////THISSSSSS ONEgetguildmember(getcastledata("guild_vs1", 1),2);for(.@i=0;.@i< $@guildmembercount;.@i++) getitem 30206,1,$@guildmemberaid[.@i];//////THISSSSSS ONE
  13. Upvote
    Angelmelody got a reaction from Clare in mob_item_ratio improvement   
    Is there a possilbe to add an additonal flag field which determine the value in next field is fixed drop
    rate or ratio drop rate ?

    Structure looks like this
    ItemID,Flag, fixed/ratio drop rate{,MonsterID}

    For example, If flag was set to 0 ,We can specify ratio drop rate of certain item to a mob or all mob
    or if flag was set to 1 , We can specify fixed drop rate to mob....
     
    909,0,100,1002 // Jellopies from Porings will drop with 1x ratio drop rate.
    909,1,100,1002 // Jellopies from Porings will drop with 0.1 fixed drop rate. (100/1000=0.1)
     
  14. Upvote
    Angelmelody got a reaction from Sasuke Uchiha in how to make all items 4 slot (exccept shield)   
    insert into this line click
    if(id.equip > 0 && id.equip != 32 && id.equip != 136 ) id.slot = 4;
  15. Upvote
    Angelmelody reacted to Emistry in Script Command : setmobdata / getmobdata   
    I believe these 2 commands is a must for Hercules in the near future, at least some similar script command need to be developed and added into the Hercules emulator.
     
    This is because I have seen official server to released some contents that might required the uses of these script command.
    For example:
    Faceworm Nest Memorial Dungeon Toy Factory Memorial Dungeon etc.

     
    There 2 quests I noticed that it required the script to be able to alter the data of the summoned monsters.
     
    for the Toy Factory, I not sure it can be category into the same script command or not, but it's also part of "alter monster data" i guess.
     
     
    previously, the setmodata / getmobdata is implemented through the MobController script, but the MobController script so these setmobdata/getmobdaat was never officially added into the script.
     
     
    I think it's time for Hercules to add these script commands.
     
     
    * I know rAmod/eAmod have a script command for monster that work quite similar for setmobdata() but they dont have getmobdata() I believe.
    So, but I think setmobdata / getmobdata would be better than having a custom monster script command to spawn a monster that have altered information.
     
     
    Extra :
    http://ea.dj-yhn.com/index.php?c=setmobdata
    http://ea.dj-yhn.com/index.php?c=getmobdata
  16. Upvote
    Angelmelody reacted to Haru in Anti WPE - Packet Obfuscation   
    Which is why we have a specific anti-maya-purple-cheat feature in Hercules, that prevents the server from sending the position of hidden or cloaked people altogether.
    Your screenshot shows that you're able to see *yourself*. That's because the client always knows where *you* are (for obvious reasons).
    You should try with enemy units (mobs, or PvP/GvG enemies), and you'll see that - even if you trick your client into thinking that they never hid or cloaked, it still won't show any of their moves.
  17. Upvote
    Angelmelody reacted to Ind in Hercules Ultimate Localization Design   
    .@md_name$ = "Endless Tower";would have to become.@md_name$ = _("Endless Tower");
  18. Upvote
    Angelmelody got a reaction from mrlongshen in MVP Room Problem   
    set .@num, atoi("""+getarg(0)+""");
     
    change to
     
    set .@num, atoi(getarg(0)+"");
  19. Upvote
    Angelmelody reacted to Ai4rei in RO Credentials (ROCred), v1.10.0 - last updated 2017/12/31   
    INI:
    Menu "Action" -> "Add a new resource..." Button "Open file with new resource" -> select your rocred.ini Field "Resource Type": Enter RCDATA Field "Resource Name": Enter CONFIG Field "Resource Language": Enter 0 Button "Add Resource" Menu "File" -> "Save" Skins (ex. background):Menu "Action" -> "Add a new resource..." Button "Open file with new resource" -> select your background bitmap (.bmp) Field "Resource Type" should turn into BITMAP. Field "Resource Name": Enter BGSKIN Field "Resource Language": Enter 0 Button "Add Resource" Menu "File" -> "Save"
  20. Upvote
    Angelmelody got a reaction from evilpuncker in bonus_script by cydh   
    temporary patch for infinite duration when duration set to -1
     
    infinite duration.patch
  21. Upvote
    Angelmelody got a reaction from Yoh Asakura in NoStorage and NoGuildStorage Mapflags   
    you can reference to this topic http://herc.ws/board/topic/8160-storage-block-on-a-map/
  22. Upvote
    Angelmelody got a reaction from 15peaces in storage block on a map   
    you can use bindatcmd command to override the existing command
     
    for example
    - script asdfjkl -1,{ end;OnInit: bindatcmd "storage", strnpcinfo(0)+"::OnAtcommand"; bindatcmd "guildstorage", strnpcinfo(0)+"::OnAtcommand"; bindatcmd "gstorage", strnpcinfo(0)+"::OnAtcommand"; end;OnAtcommand: if( strcharinfo(3) == "YOUR MAP") end; atcommand .@atcmd_command$; end;}
  23. Upvote
    Angelmelody got a reaction from milk in How to covert this with R.E   
    Thanks ,but I wanna create a notepate++ macro to convert old format to herc format
     
    for exmaple I did a  class update macro for this
     
    <Macro name="item_db Class Update" Ctrl="no" Alt="no" Shift="no" Key="0"> <Action type="3" message="1700" wParam="0" lParam="0" sParam="" /> <Action type="3" message="1601" wParam="0" lParam="0" sParam="(0x[a-zA-Z0-9]*),2,([0-9]+)" /> <Action type="3" message="1625" wParam="0" lParam="2" sParam="" /> <Action type="3" message="1602" wParam="0" lParam="0" sParam="1,18,2" /> <Action type="3" message="1702" wParam="0" lParam="768" sParam="" /> <Action type="3" message="1701" wParam="0" lParam="1609" sParam="" /> </Macro> so I think regular expression is my best choice
     
    ok I spend 1 hour to learn basic R.E , finally  I figure out by myslef
     
    1.
    (pc_readglobalreg*[(]*[[a-zA-Z]**),([^,]*))
    1,script->add_str(2))
     
     
    2.
    (pc_setglobalreg[^,]*),([^,]*),([^,]*))
    1, script->add_str(2),3)
     
  24. Upvote
    Angelmelody got a reaction from ρixєℓ in Increasing max values allowed in itemdb   
    item_db.h
    -#define MAX_ITEMDB 0x8000 // 32k array entries in array (the rest goes to the db)
    +#define MAX_ITEMDB 0x10000 // 64k array entries in array (the rest goes to the db)
     
    /src/common/mmo.h
    - short nameid;
    + unsigned short nameid;
     
    here i can use '@item 600001' to create item with id 60001
     
     
     
    -----------------------------------------------------------------
    and more adjust
    mysql card0~ card3 field type change to int
     
    and adjust bonus script param type
    bonus2 bAddMonsterDropItem,n,x
    bonus3 bAddMonsterDropItem,n,x,y;
  25. Upvote
    Angelmelody reacted to Mystery in IND please!   
    I think a lot of people will definitely like what we have planned for them so patience is the key
×
×
  • Create New...

Important Information

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