Jump to content

Dastgir

Script Developers
  • Content Count

    3805
  • Joined

  • Last visited

  • Days Won

    250

Everything posted by Dastgir

  1. //= Poring Catcher - Auto Event Script//===== By: =================================================================================//= Washi - www.EarthBound-RO.com//===== Compatible With: ====================================================================//= Any eAthena Version//===== Description: ========================================================================//= Single NPC that starts automatically starts every hour.//===== Additional Comments: ================================================================//= This script is a combenation of the Dice Event by [Mahina]//= and the origonal Poring Catcher Event by [Wild Karrd]//===========================================================================================//= OnMinute - Change this to the minute you would like this script to load. [ LINE 22 ]//= getitem - Change this to the Item ID of your prize. [ LINE 118 ]//===========================================================================================- script Poring#announcer -1,{OnInit: disablenpc "poringevent"; hideonnpc "poringevent"; hideonnpc "Poring Catcher#evnt2"; end;OnMinute27: // SET THE 30 TO THE MINUTE YOU WANT THE EVENT TO START EACH HOUR. announce "Poring Catcher : It's time to play some Poring Catcher!",bc_blue; announce "Poring Catcher : Prize will be Credit.",bc_blue; killmonster "poring_w01","All"; sleep2 10000; announce "Poring Catcher : Please make your way to the centre of Event Area.",bc_blue; sleep2 10000; announce "Poring Catcher : After one minute the portal will close.",bc_blue; sleep2 10000; announce "Poring Catcher : Enter the warp portal now if you want to join.",bc_blue; hideoffnpc "poringevent"; enablenpc "poringevent"; initnpctimer; end;OnTimer30000: announce "Poring Catcher : Last 30 seconds.",bc_blue; sleep2 5000; announce "Poring Catcher : Hurry to the upper Left of dewata if you want to join.",bc_blue; end;OnTimer50000: announce "Poring Catcher : Last 10 seconds.",bc_blue; end;OnTimer55000: announce "Poring Catcher : 5.",bc_blue; end;OnTimer56000: announce "Poring Catcher : 4.",bc_blue; end;OnTimer57000: announce "Poring Catcher : 3.",bc_blue; end;OnTimer58000: announce "Poring Catcher : 2.",bc_blue; end;OnTimer59000: announce "Poring Catcher : 1.",bc_blue; end;OnTimer60000: announce "Poring Catcher : Time's up! Portal will open again in 1 hour.",bc_blue; end;OnTimer61000: disablenpc "poringevent"; hideonnpc "poringevent"; donpcevent "Poring Catcher#evnt2::OnEnable"; stopnpctimer; end; }//--------------------------------------------------florian,95,115,0 warp poringevent 2,2,poring_w01,106,129 //--------------------------------------------------poring_w01,100,127,4 script Poring Catcher#evnt2 715,{//-------------------------------------------------- mes "[Poring Catcher]"; if(poring_evtwin == 1) goto L_poring_evtwin; mes "Please tell me your name"; next; input .@name$; if(.@name$ != strcharinfo(0)) { mes "[Poring Catcher]"; mes "Are you sure thats your character name?"; close; } mes "[Poring Catcher]"; mes "Congrats. You've won."; close2; announce "Poring Catcher : All laugh at, "+.@name$+". - This player tried to cheat the system. Muhahahahaha!",bc_blue; warp "dicastes01",197,184; end;L_poring_evtwin: mes "Please tell me your name"; next; input .@name$; if(.@name$ != strcharinfo(0)) { mes "[Poring Catcher]"; mes "Are you sure thats your character name?"; close; } mes "[Poring Catcher]"; mes "Congrats. You've won."; close2; announce "Poring Catcher : We have a winner, "+.@name$+". - Event Award Won!",0; getitem 7227,2; //set zeny,zeny+1000000; set poring_evtwin,0; warp "dicastes01",197,184; hideonnpc "Poring Catcher#evnt2"; end;OnEnable: mapannounce "poring_w01","Poring Catcher : I will be summoning 100 different poring_evtwins.",0; sleep2 10000; mapannounce "poring_w01","Poring Catcher : Only one of these poring_evtwins is the correct poring_evtwin.",0; sleep2 10000; mapannounce "poring_w01","Poring Catcher : The correct poring_evtwin is called [ poring_evtwin ], all the other poring_evtwins have different names.",0; sleep2 10000; mapannounce "poring_w01","Poring Catcher : Take your time because if you kill the wrong poring_evtwin, your out of the game.",0; sleep2 10000; mapannounce "poring_w01","Poring Catcher : The first player to kill the correct poring_evtwin wins.",0; sleep2 10000; mapannounce "poring_w01","Poring Catcher : That's that.. Now let's play...",0; goto L_Start; end;L_Start: mapannounce "poring_w01","Poring Catcher : 5",0; sleep2 1000; mapannounce "poring_w01","Poring Catcher : 4",0; sleep2 1000; mapannounce "poring_w01","Poring Catcher : 3",0; sleep2 1000; mapannounce "poring_w01","Poring Catcher : 2",0; sleep2 1000; mapannounce "poring_w01","Poring Catcher : 1",0; sleep2 1000; mapannounce "poring_w01","Poring Catcher : Lets Do This!",0; areamonster "poring_w01",84,119,121,90,"Poring",1002,1,"poring_evtwinwin::OnMobKilled"; areamonster "poring_w01",84,119,121,90,"Pouring",1002,10,"poring_evtwinlose::OnMobKilled"; areamonster "poring_w01",84,119,121,90,"Proing",1002,10,"poring_evtwinlose::OnMobKilled"; areamonster "poring_w01",84,119,121,90,"Poiring",1002,10,"poring_evtwinlose::OnMobKilled"; areamonster "poring_w01",84,119,121,90,"Poing",1002,10,"poring_evtwinlose::OnMobKilled"; areamonster "poring_w01",84,119,121,90,"I am not poring_evtwin",1002,5,"poring_evtwinlose::OnMobKilled"; areamonster "poring_w01",84,119,121,90,"Gniriop",1002,1,"poring_evtwinlose::OnMobKilled"; areamonster "poring_w01",84,119,121,90,"Porring",1113,1,"poring_evtwinlose::OnMobKilled"; areamonster "poring_w01",84,119,121,90,"Porinng",1062,1,"poring_evtwinlose::OnMobKilled"; areamonster "poring_w01",84,119,121,90,"Poriiing",1002,10,"poring_evtwinlose::OnMobKilled"; areamonster "poring_w01",84,119,121,90,"Poriing",1002,10,"poring_evtwinlose::OnMobKilled"; areamonster "poring_w01",84,119,121,90,"Porong",1002,10,"poring_evtwinlose::OnMobKilled"; areamonster "poring_w01",84,119,121,90,"P0ring",1002,10,"poring_evtwinlose::OnMobKilled"; areamonster "poring_w01",84,119,121,90,"Por1ng",1002,10,"poring_evtwinlose::OnMobKilled"; areamonster "poring_w01",84,119,121,90,"Porng",1002,1,"poring_evtwinlose::OnMobKilled"; end;}- poring_evtwinwin -1,{OnMobKilled: dispbottom "Poring : Congratulations. You've got me."; set poring_evtwin,1; atcommand "@doommap"; killmonster "poring_w01","All"; mapannounce "poring_w01","Poring Catcher : Come to me and tell me your name.",0; hideoffnpc "Poring Catcher#evnt2"; end;}- script poring_evtwinlose -1,{OnMobKilled: dispbottom "Poring Catcher : Wahaha, your a loser! - I wasnt the correct poring_evtwin."; warp "florian",111,150; end;}// -- Mapflagsporing_w01 mapflag nowarpporing_w01 mapflag nowarptoporing_w01 mapflag noteleportporing_w01 mapflag nosaveporing_w01 mapflag nomemoporing_w01 mapflag nobranchporing_w01 mapflag nolootporing_w01 mapflag noskillporing_w01 mapflag nopenalty Probably problem was Constant interfering with Player Variable
  2. 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") ) {
  3. 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.)
  4. 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...
  5. This can't be done with script alone, need source edits (moved to source request)
  6. Compare items in ALT+E , what's that? @_@Or you meant favorites?
  7. 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)
  8. https://github.com/dastgir/HPM-Plugins/blob/master/src/plugins/hit-delay.c
  9. 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
  10. 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)
  11. Seems @@Mysterious is too busy
  12. 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
  13. [ACCESSORY_IDs.ACCESSORY_Aquaring_Hat] = "aquaring_hat", To [ACCESSORY_IDs.ACCESSORY_Aquaring_Hat] = "_aquaring_hat",
  14. You can't use this plugin in 2014 Hercules.. 2014 plugin were having many limitation..
  15. Bye for the time being

  16. 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
  17. memmgr changes are not even 1 month old, while SQL db were deprecated from many months(6-9 months)
  18. Wait what, member still uses mob_db from sql? It was deprecated from many months and was removed along with mob_db update
  19. Update RO , open system/itemInfo.lub
  20. Mostly it's a client glitch, check the damages, if its nearby, then you shouldn't worry about, it might be old client bug
  21. if (sd == NULL) return 0; OR nullpo_retr(0,sd);
×
×
  • Create New...

Important Information

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