Jump to content

Emistry

Support Leaders
  • Content Count

    526
  • Joined

  • Days Won

    21

Everything posted by Emistry

  1. if( @delay < gettimetick(2) ){ input @megaphone$; announce strcharinfo(0) + ": " + @megaphone$,bc_all,0xFF0000; @delay += 30;}end;
  2. wow..260++ names ... only know a few of the names.. >.<
  3. Assignment / Homework / Examination is killing me for past few week ..and it will still continue for next few week ... >.<

  4. You will always have to query the DB for offline characters if you don't have an id->name cache somewhere. edit: Then you'd have to ask yourself why make something like that vs querying the DB? getcharid(<type>{,"<character name>"}) it would be nice if hercules have time to add the optional char name/id parameter to these script command....it would be very useful .... last time we have a short discussion for adding these optional parameter....but somehow the developer are busy and have no time to start it i guess...
  5. Emistry

    R>Top Brewer

    this cant be done based on the insufficient information of yours... no one know how you store and generate your "TOP 1~3" ...
  6. you can try save the IP address and cooldown into a new SQL table... and your npc will retrieve the cooldown of specific IP from the SQL table ...
  7. getpartymember getcharid(1), 2;for ( set .@i, 0; .@i < $@partymembercount; set .@i, .@i + 1 ) if ( attachrid($@partymemberaid[.@i]) ) { set test, test+1;// do whatever }donpcevent "Survival Waves#Sur::OnWave1";warpparty "guild_vs5", 0,0, getcharid(1);end;
  8. the height of each tab is applied to each other tab for the inventory .... there is no other way for you to solve this large inventory size unless you rename it to "SHORTER" name ....
  9. you can refer this http://rathena.org/wiki/Favorite_tab#Msgstringtable
  10. attach everybody and assign the timer ...
  11. you can do it in different way ... save the time in a variable .... #timer = gettimetick(1) + 180; // account based@timer = gettimetick(1) + 180; // player based ( delete upon logout )timer = gettimetick(1) + 180; // player based ( wont delete upon logout ) or you can use the quest stuff for checking... checkquest( <questid>,PLAYTIME ) there still alot of method to do so .... depend on how you want it to work ...
  12. this is how i use variables... guild_vs5,50,50,4 script Sample 757,{mes "Hello";mes "You've caused monsters to be summoned!";close2;if( .mob_count ){ // Summon all monsters for( .@i = 0; .@i < .monster_size; .@i++ ) monster .map$, 0, 0,"--ja--", .monster[.@i],.monster_amount[.@i], .npc_name$+"::OnWaveKill"; .mob_count = mobcount( .map$,.npc_name$+"::OnWaveKill" ); mapannounce .map$,"There are only "+.mob_count+" left! Good luck!", 0;}end;OnWaveKill:.mob_count--;if( .mob_count ){ mapannounce .map$,"There are only "+.mob_count+" left! Good luck!", 0;}end;OnInit:// Map name.map$ = "guild_vs5";// List of weak monster IDssetarray .monster, 1301, 1297;setarray .monster_amount, 100, 200;.monster_size = getarraysize( .monster );.npc_name$ = strnpcinfo(0);end;}
  13. @mleo nearly 99.99% working xD ( wrong index number ) set .@arrcount,getarraysize( $@monsteridweak );for( set .@i,0; .@i < .@arrcount; set .@i, .@i + 1 ){ monster "this",0,0,"--ja--",$@monsteridweak[.@i],100,strnpcinfo(3)+"::OnWave1";} and actually you dont really need to use a "Global Variable" in your case....
  14. open your item_db.txt find your item...and edit the JOB column ... http://herc.ws/wiki/Custom_Items#Structure remove the crusader bitmask from the item....
  15. why not just simply change your server to use SQL item_db and not the TXT item_db ???
  16. try... http://upaste.me/r/792e1d Case 0: if( BaseLevel >= 50 && BaseLevel <= 69 ){ setarray .@monster$,"Marc","Bongun","Dustiness","Driller","Wootan Fighter"; setarray .@questid,82006,82013,82020,82027,82034; }else if( BaseLevel >= 70 && BaseLevel <= 99 ){ setarray .@monster$,"Karakasa","Grand Peco","Pasana","Metaling","Dancing Dragon","Mavka","Uzhas","Poison Toad","Zombie Prisoner","Clock Tower Manager","Breeze","Bloody Injustice","Wicked Nymph"; setarray .@questid,82045,82052,82258,82065,82071,82079,82086,82093,82100,82107,82114,82121,82128; }else if( BaseLevel >= 100 && BaseLevel <= 125 ){ setarray .@monster$,"Assaulter","Hill Wind","Kobold (Shield & Hammer)","Diabolic","Muscipular","Dullahan","Aunoe","Venatu (Blue)","Hell Poodle","Dimik (Orange)","Plasma (Red)","Cornus","Remover"; setarray .@questid,82138,82145,82151,82159,82166,82171,82180,82187,82194,82201,82208,82215,82222; }else{ setarray .@monster$,"Shelter","Observation","Banshee","Erend","Antler Scaraba"; setarray .@questid,82232,82239,82246,82254,82261; } break;Case 1: if( BaseLevel >= 50 && BaseLevel <= 69 ){ setarray .@monster$,"Beetle King","Alligator","Rice Cake Boy","Jakk","Mantis","Dryad"; setarray .@questid,82000,82007,82014,82021,82028,82035; }else if( BaseLevel >= 70 && BaseLevel <= 99 ){ setarray .@monster$,"Sidewinder","Nine Tails","Argiope","Iara","Comodo","Punk","Raydric Archer","Penomena","Venomous","Permeter","Teddy Bear","Waste Stove","Stapo","The Paper"; setarray .@questid,82039,82046,82266,82059,82066,82073,82080,82087,82094,82101,82108,82115,82122,82129; }else if( BaseLevel >= 100 && BaseLevel <= 125 ){ setarray .@monster$,"Neraid","Quve","Drosera","Phendark","Sting","Deleter (Flying)","Kobold Archer","Ice Titan","Dark Pinguicula","Plasma(Blue)","Plasma (Green)","Gremlin","Owl Baron","Knight of Abyss"; setarray .@questid,82132,82139,82146,82153,82160,82167,82174,82181,82188,82195,82202,82209,82216,82223; }else{ setarray .@monster$,"Vanberk","Centipede","Frus","Acidus","Necromancer","Salamander"; setarray .@questid,82226,82233,82240,82248,82255,82262; } break;Case 2: if( BaseLevel >= 50 && BaseLevel <= 69 ){ setarray .@monster$,"Goblin Archer","Swordfish","Merman","Hunter Fly","Tri-Joint","Dokebi"; setarray .@questid,82001,82008,82015,82022,82029,82036; }else if( BaseLevel >= 70 && BaseLevel <= 99 ){ setarray .@monster$,"Toucan","Marduk","Dark Frame","Evil Druid","Clock","Les","Novus","Miyabi Doll","Siorova","Marionette","Demon Pungus","Enchanted Peach Tree","Roween","Obsidian"; setarray .@questid,82040,82047,82253,82060,82067,82074,82081,82088,82095,82102,82109,82116,82123,82130; }else if( BaseLevel >= 100 && BaseLevel <= 125 ){ setarray .@monster$,"Siroma","Gargoyle","Blazer","Desert Wolf","Fake Angel","Gazeti","Anolian","Aliza","Draco","Raydric","Plasma (Purple)","Centipede Larva","Beholder","Hodremlin"; setarray .@questid,82133,82140,82147,82154,82161,82168,82175,82182,82189,82196,82203,82210,82217,82224; }else{ setarray .@monster$,"Lady Solace","Echio","Agav","Incantation of Morrocc (Ground)","Rawrel","Rake Scaraba"; setarray .@questid,82227,82234,82241,82249,82256,82263; } break;Case 3: if( BaseLevel >= 50 && BaseLevel <= 69 ){ setarray .@monster$,"Greatest General","Minorous","Strouf","Hode","Steam Goblin","Curupira"; setarray .@questid,82009,82016,82023,82030,82037; }else if( BaseLevel >= 70 && BaseLevel <= 99 ){ setarray .@monster$,"Zerom","Tamruan","Parasite","Goat","Wood Goblin","Mi Gao","Stem Worm","Rafflesia","Noxious","Pitman","Skeleton Prisoner","Solider","Anopheles","Tengu"; setarray .@questid,82041,82048,82254,82061,82068,82075,82082,82089,82096,82103,82110,82117,82124,82131; }else if( BaseLevel >= 100 && BaseLevel <= 125 ){ setarray .@monster$,"Dark Priest","Explosion","Kobold (With Mace)","Lava Golem","Anubis","Nightmare Terror","Loli Ruri","Ancient Mimic","Ancient Mummy","Pot Dofle","King Dramoh","Plasma (Yellow)","Flame Skull","Hillslion"; setarray .@questid,82134,82141,82147,82155,82162,82167,82176,82183,82190,82197,82204,82211,82218,82225; }else{ setarray .@monster$,"Ragged Zombie","Ferus (Green)","Tatacho","Whikebain","Armania","Miming"; setarray .@questid,82228,82235,82242,82250,82257,82264; } break;Case 4: if( BaseLevel >= 50 && BaseLevel <= 69 ){ setarray .@monster$,"Mummy","Munak","Golems","Leaf Cat","Horong","Baby Leopard"; setarray .@questid,82003,82010,82017,82024,82031,82038; }else if( BaseLevel >= 70 && BaseLevel <= 99 ){ setarray .@monster$,"Jaguar","Geographer","Wraith","Headless Mule","Sleeper","Kapha","Cendrawasih","Witch","Spring Rabbit","Novus","Red Eruma","Deviruchi","Shinobi"; setarray .@questid,82042,82049,82255,82062,82068,82076,82083,82090,82097,82104,82111,82118,82125,82132; }else if( BaseLevel >= 100 && BaseLevel <= 125 ){ setarray .@monster$,"Heater","Anacondaq","Lude","Disguise","Deleter (Not Flying)","Kobold (With Axe)","Luciola Vespa","Sropho","Nepenthes","Dimik (Grey)","Naga","Succubus","Aqua Elemental"; setarray .@questid,82135,82142,82148,82156,82163,82168,82177,82184,82191,82198,82205,82212,82219; }else{ setarray .@monster$,"Seeker","Skogul","Imp","Incantation of Morrocc","Kavac","Little Fatum"; setarray .@questid,82229,82236,82243,82251,82258,82265; } break;Case 5: if( BaseLevel >= 50 && BaseLevel <= 69 ){ setarray .@monster$,"Metaller","Isis","Sandman","Stone Shooter","Grizzly"; setarray .@questid,82004,82011,82018,82025,82032; }else if( BaseLevel >= 70 && BaseLevel <= 99 ){ setarray .@monster$,"Requiem","Rideword","Orc Archer","Alnoldi","Raydric Archer","Ancient Worm","Mole","Dragon Tail","Firelock Soldier","Wild Ginseng","Elder","Freezer","Evil Cloud Hermit"; setarray .@questid,82043,82050,82256,82063,82069,82077,82084,82091,82098,82105,82112,82119,82126; }else if( BaseLevel >= 100 && BaseLevel <= 125 ){ setarray .@monster$,"Rybio","Alice","Medusa","Carat","Pinguicula","Majoruros","Magmaring","Venatu (Red)","Ancient Mummy","Dimik (Red)","Mini Demon","Wanderer","Retribution"; setarray .@questid,82136,82143,82149,82157,82164,82169,82178,82185,82192,82199,82206,82213,82220; }else{ setarray .@monster$,"Zombie Slaughter","Knocker","Acidus (Gold)","Dolomedes","Kasa"; setarray .@questid,82230,82237,82244,82252,82259; } break;Case 6: if( BaseLevel >= 50 && BaseLevel <= 69 ){ setarray .@monster$,"Green Iguana","Flora","Ghoul","Sohee","Wootan Shooter"; setarray .@questid,82005,82012,82019,82026,82033; }else if( BaseLevel >= 70 && BaseLevel <= 99 ){ setarray .@monster$,"Wooden Golem","Piranha","Petite","Jing Guai","Cramp","Harpy","Porcellio","Hyegun","Alarm","Zipper Bear","Owl Duke","Bloody Butterfly","Evil Cloud Hermit"; setarray .@questid,82044,82051,82257,82064,82070,82078,82085,82092,82099,82106,82113,82120,82127; }else if( BaseLevel >= 100 && BaseLevel <= 125 ){ setarray .@monster$,"Kaho","Galion","Heirozoist","Snowier","Gibbet","Arclouse","Sedora","Venatu (Grey)","Deathword","Dimik (Blue)","Violy","Incubus","Apocalypse"; setarray .@questid,82137,82144,82150,82158,82165,82170,82179,82186,82193,82200,82207,82214,82221; }else{ setarray .@monster$,"Isilla","Ferus (Red)","One Horned Scaraba","Bradium Golem","Ygnizem"; setarray .@questid,82231,82238,82245,82253,82260; } break; set your quest up there ....the quest id is stored into a player variable "monster_quest" .... it can be even shorter than this ... just some simple trick + math calculation ..xD i believe you can try figure it out soon ...
  17. set it here https://github.com/HerculesWS/Hercules/blob/master/db/quest_db.txt the rest.just your lua file for the quests informations...
  18. use the latest version ..... else..change while( 1 ){ to while( .@map$ != "" ){ the error is caused by the floating npc which doesnt have a valid location.
  19. Emistry

    callfunc

    any error and how your script is actually working ? hmm ?
  20. resist potion ...reduct damage taken from certain element but also increase the damage taken from opposite element.. armor element .... simply change your armor to certain element... mega resist potion ...increase the resistance against certain negative statuses...
  21. i think it has changed to this https://github.com/HerculesWS/Hercules/blob/master/db/const.txt#L894 https://github.com/HerculesWS/Hercules/blob/master/db/const.txt#L947
  22. if(query_sql("select `stats` from `login`",.@stats)) try
  23. change OnPCDieEvent:if(.System){ to OnPCDieEvent:if(.System && killerrid > 2000000 ){
  24. bossnia have 4 maps... bossnia_01bossnia_02bossnia_03bossnia_04 the correct script should be OnPCDieEvent:if( compare( strcharinfo(3),"bossnia_" ) ) warp "prontera",155,181;end;
×
×
  • Create New...

Important Information

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