Jump to content

Dastgir

Script Developers
  • Content Count

    3803
  • Joined

  • Last visited

  • Days Won

    248

Reputation Activity

  1. Upvote
    Dastgir got a reaction from bWolfie in How to grab variable in src then display in script engine?   
    Not true for @who,@who command uses "count" variable and adds them when a player is found, and then display it with

    StrBuf->Printf(&buf, msg_fd(fd,30), count); // %d players found. Since it's not command that player should have (ideally), and there's some permission to hide from who searches, we do it by count variable here.Edit: you should use the command to show value, or store it in some variable and use another script command to utilise it.
    Else, you can also use temporary global variable

    mapreg->setreg(script->add_str("$@who4count"), count);
  2. Upvote
    Dastgir got a reaction from Thyr in Guide? Setup RO emulator to VPS   
    If it's just for testing and you have windows 10, you can use Ubuntu via WSL.
    https://msdn.microsoft.com/en-us/commandline/wsl/install_guide
  3. Upvote
    Dastgir got a reaction from Like it~* in Ragnarok Index ( RO database on your computer )   
    This is a tool for windows and not integrated to server.So you would need to run this tool, manually enter monster Id and it would give you details
  4. Upvote
    Dastgir got a reaction from meko in Require a certain amount of reputation, posts and time registered to perform Downloads.   
    For me, I don't feel we need any restriction, we are open-source community, putting any restriction will discourage user from using forum and it would give rise to many spam accounts and more importantly, it will lead to increase demand for paid developers and as a result less scripts/mods would be released for free.
  5. Upvote
    Dastgir got a reaction from tedexx in Require a certain amount of reputation, posts and time registered to perform Downloads.   
    For me, I don't feel we need any restriction, we are open-source community, putting any restriction will discourage user from using forum and it would give rise to many spam accounts and more importantly, it will lead to increase demand for paid developers and as a result less scripts/mods would be released for free.
  6. Upvote
    Dastgir reacted to dualityDiscretion in RO Webcomic [FIN]   
    Last year, I launched a RO-themed webcomic which I've been updating weekly. I've been posting it in several forums and someone told me to share it here too, so I thought why not~
     
    This comic follows Joshua, a newb adventurer who just arrived in Rune Midgard, struggling to understand how the world works, with some helping hands guiding him... kinda...
     
    http://tapas.io/series/PORINGS
     
    Been goin for almost a year, 44 strips so far and going strong. Updated every Friday~
  7. Upvote
    Dastgir got a reaction from Shatowolf in Hercules IRC   
    https://discord.gg/ZUzbRSp Blame discord UI for so much confusing...
  8. Upvote
    Dastgir got a reaction from bWolfie in Where can I find the commit for getvariableofpc()   
    https://github.com/HerculesWS/Hercules/commit/03f416eda0b0d1aeef03516863e11916e75660cdIt was fixed later on.
  9. Upvote
    Dastgir got a reaction from Easycore in Hercules IRC   
    https://discord.gg/ZUzbRSp Blame discord UI for so much confusing...
  10. Upvote
    Dastgir got a reaction from vBrenth in Hercules IRC   
    https://discord.gg/ZUzbRSp Blame discord UI for so much confusing...
  11. Upvote
    Dastgir got a reaction from Kubix in Hercules IRC   
    https://discord.gg/ZUzbRSp Blame discord UI for so much confusing...
  12. Upvote
    Dastgir got a reaction from vBrenth in How do you see your client date(version)?   
    OMG, just got to know about this..
  13. Upvote
    Dastgir got a reaction from Easycore in Hercules Battlegrounds   
    New clients don't support emblems in bg map, i requested to Nemo long time ago, and he made a patch for it, check Nemo for that emblem thing
  14. Upvote
    Dastgir got a reaction from Shatowolf in Achievement & Item Link System   
    Well rodex and clan is also on PR, consider waiting some time (week or two)
  15. Upvote
    Dastgir got a reaction from bWolfie in Shop name instead of merchant name for @whosell and @whobuy   
    Whobuy;

    snprintf(output, CHAT_SIZE_MAX, "Price %d | Amount %d | Buyer %s | Map %s[%d,%d]", pl_sd->buyingstore.items[j].price, pl_sd->buyingstore.items[j].amount, pl_sd->status.name, mapindex_id2name(pl_sd->mapindex), pl_sd->bl.x, pl_sd->bl.y); To
    snprintf(output, CHAT_SIZE_MAX, "Price %d | Amount %d | Shop %s | Map %s[%d,%d]", pl_sd->buyingstore.items[j].price, pl_sd->buyingstore.items[j].amount, pl_sd->message, mapindex_id2name(pl_sd->mapindex), pl_sd->bl.x, pl_sd->bl.y); Edit:
    Whosell, change all
    pl_sd->status.name
    to
    pl_sd->message
  16. Upvote
    Dastgir got a reaction from Lulupard in Shop name instead of merchant name for @whosell and @whobuy   
    Whobuy;

    snprintf(output, CHAT_SIZE_MAX, "Price %d | Amount %d | Buyer %s | Map %s[%d,%d]", pl_sd->buyingstore.items[j].price, pl_sd->buyingstore.items[j].amount, pl_sd->status.name, mapindex_id2name(pl_sd->mapindex), pl_sd->bl.x, pl_sd->bl.y); To
    snprintf(output, CHAT_SIZE_MAX, "Price %d | Amount %d | Shop %s | Map %s[%d,%d]", pl_sd->buyingstore.items[j].price, pl_sd->buyingstore.items[j].amount, pl_sd->message, mapindex_id2name(pl_sd->mapindex), pl_sd->bl.x, pl_sd->bl.y); Edit:
    Whosell, change all
    pl_sd->status.name
    to
    pl_sd->message
  17. Upvote
    Dastgir got a reaction from Like it~* in @joinbg and Tribe system / Clan System/Faction System/RACE System   
    No, all new plugins require source code and the one on the post is compiled version(which is not compatible with new hercules, since data has been changed since then...)
  18. Upvote
    Dastgir got a reaction from Like it~* in How to convert to a plugin?   
    3/4/6) https://github.com/dastgir/HPM-Plugins/commit/45b400fb74b38a2530ea33a374d13ccd5c1da501
  19. Upvote
    Dastgir got a reaction from tedexx in Clientinfo: multiple servers   
    You might have diffed with "Skip Service Select" patch
  20. Upvote
    Dastgir got a reaction from master@ragna in modified card remover   
    Afaik, if rental cards are put into the item, the rent time goes off. so there's no way that card remover can retain it because it isn't saved upon card insertion.
    for saving timer for cards would require some (massive?) amount of source editing and as well as saving those on DB, since cards bounded to items are just saved on card column now and no extra row for it.
  21. Upvote
    Dastgir got a reaction from bWolfie in Linux: Map Server crash on @autotrade   
    1) install gdb
    2) run login/char-server normally.
    3) run map-server by typing following commands
    gdb map-server run 4) Reproduce the bug and let the server crash
    5) Check the ssh console, it might show the report
    6) type 'bt full' and show all the output here.
  22. Upvote
    Dastgir got a reaction from bWolfie in Using 'for()', can you repeat text in same line?   
    script_commands.txt have a nice example for it
    - script atcmd_example FAKE_NPC,{ OnInit: bindatcmd("test", strnpcinfo(NPC_NAME_UNIQUE)+"::OnAtcommand"); end; OnAtcommand: // This command expects a character name (that may contain spaces) as // the only parameter. .@name$ = ""; for (.@i = 0; .@i < .@atcmd_numparameters; ++.@i) { .@name$ += (.@i > 0 ? " " : "") + .@atcmd_parameters$[.@i]; } dispbottom("The specified name is: '" + .@name$ + "'"); end; }
  23. Upvote
    Dastgir got a reaction from loki in Linux: Map Server crash on @autotrade   
    1) install gdb
    2) run login/char-server normally.
    3) run map-server by typing following commands
    gdb map-server run 4) Reproduce the bug and let the server crash
    5) Check the ssh console, it might show the report
    6) type 'bt full' and show all the output here.
  24. Upvote
    Dastgir got a reaction from Like it~* in How to rotate event npcs?   
    - script CycleEvent FAKE_NPC,{ OnExecute: if (.current_event >= .max_events) { .current_event = 0; } switch(.current_event) { // if max_events is 10, then .current_event goes from 0 to 9 case 0: donpcevent("Event1::OnEvent"); break; case 1: donpcevent("Event2::OnEvent"); break; case 2: donpcevent("Event3::OnEvent"); break; //.. and so on.. } // Or Use this below method if you really have Event NPC Names as Event1/Event2/Event3/... (Commented) // donpcevent("Event"+ (.current_event + 1) +"::OnEvent"); announce "Event "+ (.current_event+1) +" started.", bc_all; end; OnEnd: // Call CycleEvent::OnEnd when event ends(needs to be manually edited on each event script when end): donpcevent("CycleEvent::OnEnd") ++.current_event; donpcevent(strnpcinf(NPC_NAME) +"::OnExecute") end; OnTimer15000: donpcevent("event 2::OnEventTwo"); stopnpctimer; end; OnInit: .max_events = 10; bindatcmd("startevent", strnpcinfo(NPC_NAME) +"::OnExecute"); end; }
    Hope this helps
  25. Upvote
    Dastgir got a reaction from Like it~* in How to convert to a plugin?   
    Seems interesting.
    I would be interested in doing some of these, though not promising if I would do it.
    1) May be possible
    2) I won't be touching it, it seems possible only with workarounds.
    3) Possible
    4) Possible
    5) Wont be touching it, possible with workaround/ function overload.
    6) Possible.
    7) I Insist keeping that part as source.
     
    But I insist try and learn and do it with Trial and error method
×
×
  • Create New...

Important Information

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