Jump to content

Dastgir

Script Developers
  • Content Count

    3803
  • Joined

  • Last visited

  • Days Won

    249

Everything posted by Dastgir

  1. switch( select(".........Registro Aleatório (Sem Fila)",".........^0000ccTime Azul^000000..............."+ .@BG_Count1 +"/" + .BG_Max[$BG_Index] + "",".........^ff0033Time Vermelho^000000......."+ .@BG_Count2 +"/" + .BG_Max[$BG_Index] + "",".........Sair da Fila") ) {To switch( select(".........Registro Aleatório (Sem Fila)",".........^0000ccTime Azul^000000..............."+ bg_get_data($@BG_Team1,0) +"/" + .BG_Max[$BG_Index] + "",".........^ff0033Time Vermelho^000000......."+ bg_get_data($@BG_Team2,0) +"/" + .BG_Max[$BG_Index] + "",".........Sair da Fila") ) {
  2. test this you forgot to put a Boolean on each if statement Test this script and check the amount of poring, don't use @reloadscript if you edit the script or else script won't load, restart your server to load the script. // kill 10 monsters gets 1 status point- script PoringKill FAKE_NPC,{OnNPCKillEvent: if ( readparam(bLuk) < 5 ) if ( killedrid == PORING ) { poringkill++; if ( poringkill == 5 ) { statusup2 bLuk, 1; poringkill = 0; } } if ( readparam(bLuk) >= 5 && readparam(bLuk) <= 10 ) if ( killedrid == PORING ) { poringkill++; if ( poringkill == 10 ) { statusup2 bLuk, 1; poringkill = 0; } } if ( readparam(bLuk) >= 10 && readparam(bLuk) <= 15 ) if ( killedrid == PORING ) { poringkill++; if ( poringkill == 15 ) { statusup2 bLuk, 1; poringkill = 0; } } if ( readparam(bLuk) >= 15 && readparam(bLuk) <= 20 ) if ( killedrid == PORING ) { poringkill++; if ( poringkill == 20 ) { statusup2 bLuk, 1; poringkill = 0; } } if ( readparam(bLuk) >= 20 && readparam(bLuk) <= 25 ) if ( killedrid == PORING ) { poringkill++; if ( poringkill == 25 ) { statusup2 bLuk, 1; poringkill = 0; } } if ( readparam(bLuk) >= 30 && readparam(bLuk) <= 40 ) if ( killedrid == PORING ) { poringkill++; if ( poringkill == 40 ) { statusup2 bLuk, 1; poringkill = 0; } } if ( readparam(bLuk) >= 40 && readparam(bLuk) <= 50 ) if ( killedrid == PORING ) { poringkill++; if ( poringkill == 50 ) { statusup2 bLuk, 1; poringkill = 0; } } if ( readparam(bLuk) >= 50 && readparam(bLuk) <= 60 ) if ( killedrid == PORING ) { poringkill++; if ( poringkill == 60 ) { statusup2 bLuk, 1; poringkill = 0; } } if ( readparam(bLuk) >= 60 && readparam(bLuk) <= 70 ) if ( killedrid == PORING ) { poringkill++; if ( poringkill == 70 ) { statusup2 bLuk, 1; poringkill = 0; } } if ( readparam(bLuk) >= 70 && readparam(bLuk) <= 80 ) if ( killedrid == PORING ) { poringkill++; if ( poringkill == 80 ) { statusup2 bLuk, 1; poringkill = 0; } } if ( readparam(bLuk) >= 80 && readparam(bLuk) <= 90 ) if ( killedrid == PORING ) { poringkill++; if ( poringkill == 90 ) { statusup2 bLuk, 1; poringkill = 0; } } if ( readparam(bLuk) >= 90 && readparam(bLuk) <= 99 ) if ( killedrid == PORING ) { poringkill++; if ( poringkill == 100 ) { statusup2 bLuk, 1; poringkill = 0; } } end;} OMG, NO,you increased poringkill several times in 1 kill, only increase it at start and check conditions.... Also poringkill is set to 0 if first condition is met, so it won't give any other stat, Put poringkill=0 on end of line (And last, this is Soo unoptimized, you could use array and make it simpler to manage.)
  3. I moved into source considering one can have multiple knife, and it would fail to satisfy all conditions with scripting aloneWhile with plugin/source, one can add a time variable in item_data and can process each weapon separately...
  4. This can't be done with script alone, need source edits (moved to source request)
  5. Compare items in ALT+E , what's that? @_@Or you meant favorites?
  6. If both are started by initnpctimer Y will get affected with whatever things you do in timers, if both event are on same npc. If its different npc, timer won't be affected (unless you specify so)
  7. https://github.com/dastgir/HPM-Plugins/blob/master/src/plugins/hit-delay.c
  8. 1<<31 (i.e 2147483648, which is limit of int, in which we store the jobmask)1<<32 and 1<<33 are greater than 2.147 bil, thus it gets too big to be used,For allowing more id, change the variable datatype: as Neo Said About Case 17:maybe MAPID_AKATSUKI and MAPID_ANBU have values 17, that's why, change to 18/19Same problem, different reason : You might have some big value for MAPID_SHINOBI
  9. If you are sure its a bug , post them off on bug tracker(Github), and it will be tested and fixed soon. (I personally have not played 3rd job too much, so can't comment anything more)
  10. Seems @@Mysterious is too busy
  11. https://github.com/ROClientSide/Translation/tree/master/data/texture/%C3%80%C2%AF%C3%80%C3%BA%C3%80%C3%8E%C3%85%C3%8D%C3%86%C3%A4%C3%80%C3%8C%C2%BD%C2%BA/ro_menu_icon
  12. [ACCESSORY_IDs.ACCESSORY_Aquaring_Hat] = "aquaring_hat", To [ACCESSORY_IDs.ACCESSORY_Aquaring_Hat] = "_aquaring_hat",
  13. You can't use this plugin in 2014 Hercules.. 2014 plugin were having many limitation..
  14. Bye for the time being

  15. Make sure, You have increased headgear view Id(by using its patch from NEMO) Also the classNum on itemInfo should match with View: in item_db
  16. memmgr changes are not even 1 month old, while SQL db were deprecated from many months(6-9 months)
  17. Wait what, member still uses mob_db from sql? It was deprecated from many months and was removed along with mob_db update
  18. Update RO , open system/itemInfo.lub
  19. Mostly it's a client glitch, check the damages, if its nearby, then you shouldn't worry about, it might be old client bug
  20. if (sd == NULL) return 0; OR nullpo_retr(0,sd);
  21. On pc_dead, add a null check. Probably thats why its a crash, if Easycore was using old version, he probably wouldnt be able to compile plugin, sincw hercules.h was added with the removal of GET_SYMBOL
×
×
  • Create New...

Important Information

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