-
Content Count
526 -
Joined
-
Days Won
21
Posts posted by Emistry
-
-
this is how i use variables...
$variable$$variable
$@variable$@variable
.variable$.variable
.@variable$.@variable
'variable$'variable
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;}
-
@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....
ToiletMaster reacted to this -
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....
-
why not just simply change your server to use SQL item_db and not the TXT item_db ???
-
try...
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 ...
Senos and ToiletMaster reacted to this -
set it here
https://github.com/HerculesWS/Hercules/blob/master/db/quest_db.txt
the rest.just your lua file for the quests informations...
-
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.
-
any error and how your script is actually working ? hmm ?
-
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...
Ragnar Lothbrok reacted to this -
i get stone curse when i use Resist Potion how to fix this one?
i think it has changed to this
https://github.com/HerculesWS/Hercules/blob/master/db/const.txt#L894
i change SC_ARMOR_ELEMENT to SC_ARMORPROPRTY is this correct? no more stone curse effect..
https://github.com/HerculesWS/Hercules/blob/master/db/const.txt#L947
Ragnar Lothbrok reacted to this -
-
change
OnPCDieEvent:if(.System){
to
OnPCDieEvent:if(.System && killerrid > 2000000 ){
-
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;
-
@Via ... aw...how come i never thought that was a custom function .. >.< damn.. i keep search the src ..and doc folder ...and failed...
@ts
you said you get error...what's the error ?
navigation only work in 2011 client and above...
-
does Hercules has this ?? what script command is this ? custom made ? or it's a function in the script ?
F_Navi("[Prontera Guide]");
as far as i know...we only got this..
mes "go to <NAVI>[Hat Maker]<INFO>izlude,131,148,</INFO></NAVI> to make hats";
-
you can create a custom script command to retrieve the group name...
something like this i guess
BUILDIN(getgroupname){ TBL_PC* sd; sd = script_rid2sd(st); script_pushstr( sd,pc_group_id2name( pc_get_group_id( sd ) ) ); return true;}
-
mes .@name$; mes " I can set you up with a Falcon, Cart or Mount for "+ .@price +"z"; next; } // <---------- REMOVE
your script doesnt even gave you the option to get these falcon , cart or mount..
-
-
OnNPCKillEvent:if( killedrid == 1002 ){ dispbottom "You killed a Poring .."; getitem 512,1;}end;
-
I would like to suggest that change the mapindex_name2id debug message to add the npc files or npc name that passed an unknown map...
just like the picture shown above , sometime when you added alot of npcs..or stuff and loaded it in game....suddenly this error shown...
mostly it make you search every single npcs that you added recently since you forget which npcs passed a mapname ??
so i am thinking why dont we add some more useful messages to help other to track the source of the problem ?
maybe adding one of these :
- npc name
- variable
- npc file name
-
change to
soundeffectall "effectef_angelus.wav",0,"prontera"; soundeffectall "effectef_angelus.wav",0,"morocc"; soundeffectall "effectef_angelus.wav",0,"payon"; soundeffectall "effectef_angelus.wav",0,"aldebaran"; soundeffectall "effectef_angelus.wav",0,"geffen"; soundeffectall "effectef_angelus.wav",0,"izlude"; soundeffectall "effectef_angelus.wav",0,"louyang"; soundeffectall "effectef_angelus.wav",0,"eclage"; soundeffectall "effectef_angelus.wav",0,"amatsu"; soundeffectall "effectef_angelus.wav",0,"comodo"; soundeffectall "effectef_angelus.wav",0,"yuno"; soundeffectall "effectef_angelus.wav",0,"alberta"; soundeffectall "effectef_angelus.wav",0,"lighthalzen"; soundeffectall "effectef_angelus.wav",0,"gonryun"; soundeffectall "effectef_angelus.wav",0,"ayothaya"; soundeffectall "effectef_angelus.wav",0,"hugel"; soundeffectall "effectef_angelus.wav",0,"rachel"; soundeffectall "effectef_angelus.wav",0,"sanctum"; soundeffectall "effectef_angelus.wav",0,"sl_mall01"; soundeffectall "effectef_angelus.wav",0,"sl_mall02";
-
// Structure of Database:// MobID,SpriteID{,Equipment}//// 01. MobID Mob ID to change.// 02. SpriteID Mob ID which will be sent to the client instead of MobID.// If 0, the mob becomes unavailable for use.// 03. Equipment Item ID of pet equipment (must be available for pet counterpart, or this will cause problems).//
the mob_db part is totally up to you ...
i am just showing you the way to create a new mob with existing mob sprite without required clientside modifications...
-
just duplicate a new mob_id with all the database /setting you want for the mob...
then edit the sprite at
-
i dont understand what you mean by monster description .. /swt
there is no such description for every monster ....
all you got only monster information or sprite...that's all...
summon monster script
in Script Support
Posted
you can do it in different way ...
save the time in a variable ....
or you can use the quest stuff for checking...
there still alot of method to do so .... depend on how you want it to work ...