Jump to content

Dastgir

Script Developers
  • Content Count

    3805
  • Joined

  • Last visited

  • Days Won

    250

Everything posted by Dastgir

  1. Treasure chest are spawned at 00:01 of Server time, so be sure you check server time. also, It only spawns if some guild has captured it.
  2. You can use this if you want, Just please report if you found any bugs Link: http://upaste.me/f07e369360379b8b8 Read the description noted on the paste. Some Variables that should be changed to scope variable(.@) from npc variable(.), else some unexpected behavior can be there (2 GM's using the NPC, and resulting in some other char name and some other guild) .check .gldid .char$ .cgl$ .cgl2$
  3. You need to use msgstring of your client, if you use other clients msgstring, it's most likely that lines won't match, and the client cant find suitable message to display.
  4. Wow, You're a hound. Once you bite you never let go Dastgir. Amazing . Well, I just tested it and once the combination gets complicated it goes into infinite loop. What I had was '30 of 18740', '60 of 18840', '50 of 18940', and '70 of 19040' and map-server gave me an error message saying "infinite loop!" Dast, Can I call you that way? Haha . I am grateful. I am psyched with the first script you built, without "break;". Thank you so much for your passionate help. Great Btw, just in case anyone wants the 2nd type , the infinite error is caused due to many loop >100, which can be prevented by using freeloop command as shown here; .@q = 0; .@qd = 0; freeloop(1); for (.@i = 18660; .@i < 19223; ++.@i) { .@q += countitem(.@i); } freeloop(0); if (.@q < 100) { mes " "; close; } .@q = .@q/100; .@get = .@q; freeloop(1); for (.@i = 18660; .@i < 19223; ++.@i) { if (.@q <= 0) { getitem 19305, .@get; break; } .@qd += countitem(.@i); if (.@qd >= 100) { .@q -= .@qd/100; .@qd -= (.@qd/100)*100; delitem .@i, countitem(.@i)-.@qd; } if (.@q != 0) { delitem .@i, countitem(.@i); } } freeloop(0); mes "Successfully changed"; close;
  5. I guess it's like, if you are going to be hit by critical, it will check then run this bonus chance and you would have 20% chance that the attack would no longer be critical
  6. Alignment mistake(might be CSS), since it's a custom theme, we don't know how it is coded, it might be from CSS or styles hardcoded into php. I suggest to better ask the person from whom you got it, since we don't have any code of this theme to refer to.
  7. You could try this maybe .@q = 0; .@qd = 0; for (.@i = 18660; .@i < 19223; ++.@i) { .@q += countitem(.@i); } if (.@q < 100) { mes " "; close; } .@q = .@q/100; .@get = .@q; for (.@i = 18660; .@i < 19223; ++.@i) { if (.@q <= 0) { getitem 19305, .@get; break; } .@qd += countitem(.@i); if (.@qd >= 100) { .@q -= .@qd/100; .@qd -= (.@qd/100)*100; delitem .@i, countitem(.@i)-.@qd; } if (.@q != 0) { delitem .@i, countitem(.@i); } } mes "Successfully changed"; close;
  8. .@q = 0; .@qd = 0; for (.@i = 18660; .@i < 19223; ++.@i) { .@q += countitem(.@i); } if (.@q < 100) { mes " "; close; } .@q /= 100; .@get = .@q; for (.@i = 18660; .@i < 19223 && .@q != 0; ++.@i) { .@qd_bef = .@qd; .@qd += countitem(.@i); if (.@qd >= 100) { delitem .@i, ((.@qd-.@qd_bef)/100)*100; .@q -= .@qd/100; .@qd -= (.@qd/100)*100; } if (.@q != 0) { delitem .@i, countitem(.@i); } } getitem 19305, .@get; mes "Successfully changed"; close;Haven't tested, (it could have been done in more simpler way, but not having enough time to optimize it more)Edit: for previous script, if you remove "break;" it would consider more than 1 item in quantity of 100's
  9. from what country? I'm from PH and ovh / sys is 220ms here. if you want low ping with ddos protection. pick los angeles.im from ph and using pldt also but i got 270 on ovh and 207 on LA... i tried looking at digital ocean but i cant seem find the right product can you guide me?DO: you need to create droplet
  10. for (.@i = 18660; .@i < 19223; ++.@i) { if (countitem(.@i) < 100) continue; .@j = (countitem(.@i)/100); delitem .@i, 100 * .@j; getitem 19305, .@j; break; } if (.@i == 19223) { mes " "; close; } mes "Successfully changed"; close;
  11. DRUC or DUCR :confused:

  12. Most of the effect file names are hardcoded into client.
  13. Yes, maximum inventory limit is 100. Though configurable at server side but most likely client would not act as expected if it's increased
  14. Admin: pcidentity: describes all job id. Other files in admin folder: describes name(I suppose they are used internally by the client) Spreditinfo(Sprite Edit Info): 2dlayerdir_f: used by robe to define to have big/small/medium sprite according to sprite mentioned in that file. SmallLayerDir,BigLayerDir: those files define the act which should be displayed(layers of robe were defined on _f file), based on the jobs.
  15. char-server.conf: char_ip should be your WAN IP map-server.conf: map_ip should be your WAN IP
  16. Show the server configuration. map-server.conf and all those Mostly, it's would be because wrong IP configuration, or port not forwarded
  17. Each file name self describes what it does... Like accname.lua defines accessory(equip) sprite name, accessoryid.lua defines its sprite id.
  18. Wouldn't it be same as modifying from db? Why not just change values in db?
  19. I am having the same problem, can you please tell me how you fixed it? Configure IP properly on server side
  20. You need to know about reverse engineering and all those stuff, which I say is having high difficulty level. So its not something that everyone can do.
  21. Yeah. Me too love Hercules thats why i didnt switch to rAthena. :DFinally I converted it to Herc. I want to share it but we have rules we cant share if we're not the author.Hercules accepts any kind of contribution, since all the projects of RO are GPL licensed, you are free to modify/Share it , provided that you give proper credit to them. So you don't need to be the author to share it, you just need to provide proper credit of where you have taken the source from... And everything else is fine.
  22. Find if (clif->isdisguised(dst)) { clif->send(&p,sizeof(p),dst,AREA_WOS); p.targetGID = -dst->id; clif->send(&p,sizeof(p),dst,SELF); } else { clif->send(&p,sizeof(p),dst,AREA); } Change to if (clif->isdisguised(dst)) { clif->send(&p,sizeof(p),dst,AREA_WOS); p.targetGID = -dst->id; clif->send(&p,sizeof(p),dst,SELF); } else { if (battle_config.hide_woe_damage && map_flag_gvg2(src->m)) { clif->send(&p,sizeof(p),dst,SELF); p.damage = damage?div:0; p.leftDamage = damage2?div:0; clif->send(&p,sizeof(p),dst,AREA_WOS); } else { clif->send(&p,sizeof(p),dst,AREA); } }
  23. Because the pointer is still uninitialized. Have you called inter_clan_defaults() Function to initialize the pointers?
  24. Personal tip: eAmod is buggy and that one is not updated from long time. I suggest you to use some other emulator
×
×
  • Create New...

Important Information

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