Jump to content

Timokha

Members
  • Content Count

    48
  • Joined

  • Last visited


Reputation Activity

  1. Like
    Timokha reacted to IndieRO 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
  2. Like
    Timokha reacted to Hyroshima in How to limit random event   
    //Add a call function in item // callfunc "Boxx"; function script Boxx { //Item ID //== setarray .@ItemID[0],1108,2104,5011,2301,2404; setarray .@itemRF[0], 10, 10, 10, 7, 10; //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) < .@itemRF[.@i]) setarray .@equips[getarraysize(.@equips)],.@ItemID[.@i]; //All max refined //== 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; } I haven't tested it, check if it will work as you wanted.
  3. Like
    Timokha 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; }  
  4. Like
    Timokha reacted to Shiro in [Utility] Healing Salve   
    Hello guys, I'm new to Hercules and just want to make a contribution
    A basic function inspired by Healing Salve Potion of Dota 2
    Config:
    while(.healcount < 20){ //Set 20 to number of healing instance you want percentheal 5, 5; //Set 5,5 for HP/SP value heal per instance sleep2(500);//Set 500 to preferred time interval for healing(in milliseconds)
    Script: <" callfunc("HealingSalve"); "> // Input this to your custom item's script
    Download:
    healingsalve.txt
  5. Like
    Timokha reacted to Hyroshima in How to delete value from the array?   
    try like this:
    OnPCDieEvent: if(strcharinfo(3) == MY_EVENT_MAP) { for(set .@i,0; .@i<getarraysize($MY_VARIABLE); set .@i,.@i+1) { if(getcharid(3) == $MY_VARIABLE[.@i]) { deletearray $MY_VARIABLE[.@i],1; dispbottom "Game over."; break; } } } end;  
  6. Like
    Timokha reacted to Aeromesi in Aeromesi's Fast as the Wind Ragnarok Services   
    I have updated my github. For anyone wanting to use my custom instances I'd suggest downloading them from my github for Hercules, the instances are updated to be fully working on latest Hercules servers as of the time of this post.

    https://github.com/Aeromesi/AeromesiCodes

    Also updated installation method and tried to make things a bit easier to understand for beginner developers.


    Updates:
    .mcache files are provided for re/pre-re
    Fixed ArrayShuffle function (Now Ice Titans attack El Dicastes should be working as well as Fiery Fairy Forest)
  7. Like
    Timokha reacted to johnlincon in Ragnarok Offline Newbie Pack 2022 | Make your RO server in less then 5 minutes   
    In this case, it would be via \src\common\console.c
    but for this file is more complicated
  8. Like
    Timokha reacted to johnlincon in Ragnarok Offline Newbie Pack 2022 | Make your RO server in less then 5 minutes   
    To solve this problem on the client. Put these files inside your GRF.
     
    Inside the correct folder of course.
    summoner.zip
    \conf\global\console.conf

     
    In this file you can edit your console.

     
  9. Like
    Timokha reacted to Kuya Jeo in Mass Seller   
    Try to put another condition in this part 
    if( !@inventorylist_equip[.@i] ){ something like this.
    if( !@inventorylist_equip[.@i] && getiteminfo( @inventorylist_id[.@i], ITEMINFO_TYPE ) == IT_ETC){ i really dont test it. maybe just give it a try.
×
×
  • Create New...

Important Information

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