minx123
-
Content Count
283 -
Joined
-
Last visited
Reputation Activity
-
minx123 reacted to Nihad in Help fix this script other one town invasion
"." - A NPC variable. They exist in the NPC and disappear when the server restarts or the NPC is reloaded. Can be accessed from inside the NPC or by calling 'getvariableofnpc'. Function objects can also have .variables which are accessible from inside the function, however 'getvariableofnpc' does NOT work on function objects. In your herc folder look under doc/script_commands.txt line 438 starts the variable explanation. That script is using .mvpid .itemid and so on. Look in that document for a more appropriate way of setting the variable. A lot of people here could just give you the answer but I think you will find it a lot more rewarding if you figure it out your self, just use replace all in notepad++ If you can't figure it out then let us know, if you do figure it out also let us know -
minx123 reacted to han in Help fix this script debug town invasion
i guess that his invek map does exist, but like what dastgir said, the problem is the .town he ddn't change the value of it, it will work if he follows what dastgir recommended to do.
using this script might help u in future when u decided to add extra/more maps less hassle.
//=========== Town Invasion ==========//=========== Version: 1.0 ===========- script towninvasion -1,{OnClock0800:OnClock1400:OnClock2000:OnClock0200: .rand$ = .maps$[rand(getarraysize(.maps$))]; announce "A Boss is destroying our "+.rand$+" city! Help us!",bc_all,0x00FFFF; sleep2 2000; announce "Hurry before it dominate the whole "+.rand$+"!",bc_all,0x00FFFF; sleep2 5000; announce "This monster is quite elusive! So please beat it up!",bc_all,0x00FFFF; monster .rand$,0,0,"Bring it on!",1502,1,"towninvasion::OnInvadeKill"; end;OnInvadeKill: announce "Good job, for keeping our city safe!!",bc_all,0x00FFFF; getitem 7227,10; end;OnInit: setarray .maps$[0],"invek"; // Maps end;} -
minx123 reacted to Winterfox in Not detect MVP Revive or dead
@@minx123
Keep in mind when using mobcount():
This is no bugfix but a slight update for better readability and a conversion to hercules syntax:
http://pastebin.com/pVdpp50y
-
minx123 reacted to Winterfox in item 12622 not funtion
Don't you mean setcashmount; instead of setmounting()? There is no setmounting command on hercules.
-
minx123 reacted to iCORE in item 12622 not funtion
{ Id: 12622 AegisName: "Boarding_Halter" Name: "Halter Lead" Type: 11 Buy: 20 Upper: 63 Script: <" setmounting(); ">}, put it on your ./db/item_db2.conf and use @reloaditemdb in game
-
minx123 reacted to ossi0110 in item 12622 not funtion
you client is to old as far i remember you need 2011+ client
-
minx123 reacted to Z3R0 in koe give reward to all player when click exit npc
It's quite simple actually
if ($koegid) && getcharid(2) == $koegid)
getitem etc...
getitem etc...
is your problem...
IF statements without wrapping { } will only trigger on the NEXT command and anything afterwards is just a normal command...
so players (non guildies) are getting every item EXCEPT the one directly below the IF statement... Wrap the entire getitem contents in { }
if ($koegid && getcharid(2) == $koegid) {
getitem etc...
getitem etc...
getitem etc...
}
-
-
minx123 reacted to Kuya Jeo in how to disable # from gm below 60 and lock item
@@minx123
to disabled #item command use boolean
groups.conf
item: [true,false]
construction of boolean [ @ , # ]
so [ @@True, #false ]
your GM Level 60 you can put permission
can_trade:false
can_trade_bound: false
example :
{ id: 60 name: "Custom GM" level: 60 commands: { /* PUT COMMANDS HERE */ } permissions: { can_trade : false can_trade_bound : false }}, -
minx123 reacted to Kuya Jeo in how to disable buff and Potion in certain map
@@minx123 here
Path : trunk/db/pre/map_zone_db.conf
FIND THIS :
{ name: "Towns" disabled_skills: { AM_CANNIBALIZE: "PLAYER" AM_SPHEREMINE: "PLAYER" CR_CULTIVATION: "PLAYER" BS_GREED: "PLAYER" SC_MANHOLE: "PLAYER" WM_POEMOFNETHERWORLD: "PLAYER" GN_WALLOFTHORN: "PLAYER" } disabled_items: { Greed_Scroll: true }} ADD THIS LINE BELOW :
,{ name: "Custom" disabled_skills: { HP_ASSUMPTIO: "PLAYER" CASH_ASSUMPTIO: "PLAYER" } disabled_items: { Yggdrasilberry: true Seed_Of_Yggdrasil: true }}) the comma is a separator for the next line, don't remove it
Path : trunk/npc/mapflag/zone.txt
PUT THIS LINE OF CODES IN THE BOTTOM
// Custom Zoneama_test mapflag zone Custom
then @warp ama_test then try to use those disabled items and skills
EDIT : by the way, you can use selected items that you disabled but NO EFFECT
-
minx123 reacted to Winterfox in koe give reward to all player when click exit npc
@@minx123
I checked it and the only error i got was that the labels in the goto were named different than the actual labels.
That seems to have slipped because it seems when i checked if the script still compiles, i copied a wrong one..
It is weird you didn't get that before since i didn't even touch the labels before.
Here is the fix i made, maybe it helps you to solve your error also.
//===== eAthena Script ============================================//= King of Emperium Hill//===== By: =======================================================//= AnnieRuru//===== Current Version: ==========================================//= 1.0//===== Compatible With: ==========================================//= hercules 2014-02-18//===== Description: ==============================================//= defends the emperium in the middle of the map until times up//===== Topic =====================================================//= http://herc.ws/board/topic/4495-gvg-king-of-emperium-hill///===== Additional Comments: ======================================//= Finally there is a topic for this !//=================================================================- script KoE -1,{ OnInit: disablenpc "The King#KoE"; disablenpc "Exit#KoE"; bindatcmd "koe", strnpcinfo(0)+"::OnCommand", 99,100; end; OnCommand: if ( compare( .@atcmd_parameters$, "on" ) ) goto L_Start; else if ( compare( .@atcmd_parameters$, "off" ) ) goto L_End; else { dispbottom "type - '@koe on' to start the event"; dispbottom "type - '@koe off' to end the event"; } end; OnClock2200: // everyday 10pm starts L_Start: if ( .start ) end; gvgon "guild_vs1"; announce "The King of Emperium Hill has begun!", bc_all; .start = 1; enablenpc "The King#KoE"; disablenpc "Exit#KoE"; $koegid = 0; donpcevent "::OnRevKoE"; maprespawnguildid "guild_vs1", $koegid, 7; monster "guild_vs1",49,49,"EMPERIUM",1288,1,"KoE::OnEmpDead"; end; OnClock2300: // everyday 11.00pm ends L_End: gvgoff "guild_vs1"; announce "The King of Emperium Hill is over!", bc_all; .start = 0; enablenpc "Exit#KoE"; disablenpc "The King#KoE"; killmonsterall "guild_vs1"; // maprespawnguildid "guild_vs1", $koegid, 6; // uncomment this line to kick non-owner off the map when event ends end; OnEmpDead: $koegid = getcharid(2); announce "The current King of Emperium Hill is the ["+ strcharinfo(2) +"] guild.", bc_all; donpcevent "::OnRevKoE"; maprespawnguildid "guild_vs1", $koegid, 6; sleep 500; if ( .start ) monster "guild_vs1",49,49,"EMPERIUM",1288,1,"KoE::OnEmpDead"; end;}// KoE Entranceinvek,157,161,4 script The King#KoE 58,{ mes "[The King]"; if ( !getcharid(2) ) { mes "You must have a guild to participate in the ^FF0000King of Emperium Hill Tournament^000000."; close; } mes "Hello."; mes "Would you like to participate in the ^FF0000King of Emperium Hill Tournament^000000?"; if ( select ( "Yes", "No" ) == 2 ) close; switch( rand(1,4) ){ case 1: warp "guild_vs1", 50, 88; end; case 2: warp "guild_vs1", 88, 50; end; case 3: warp "guild_vs1", 50, 11; end; case 4: warp "guild_vs1", 11, 50; end; }}// KoE Exitguild_vs1,49,56,5 script Exit#KoE 51,{ mes "[Exit]"; mes "See ya."; close2; warp "Save",0,0; if ( $koegid && getcharid(2) == $koegid ) getitem 7227, 10; // configure prize here getitem 12903,1; getitem 12905,1; getitem 12904,1; getitem 12907,1; getitem 12906,1; getitem 12186,1; getitem 30225,3; end;}// Flagsguild_vs1,49,38,4 script King of Emperium Hill#1::koe_flag 722,{ if ( !$koegid ) end; mes "[King of Emperium Hill]"; mes "The Current King of Emperium Hill is the ["+ getguildname($koegid) +"] guild."; close;//OnInit: // Uncomment this line to make the emblem stay after @reloadscriptOnRevKoE: flagemblem $koegid; end;}guild_vs1,61,49,6 duplicate(koe_flag) King of Emperium Hill#2 722guild_vs1,38,49,2 duplicate(koe_flag) King of Emperium Hill#3 722guild_vs1,49,61,0 duplicate(koe_flag) King of Emperium Hill#4 722invek,160,156,3 duplicate(koe_flag) King of Emperium Hill#5 722guild_vs1 mapflag nobranchguild_vs1 mapflag nomemoguild_vs1 mapflag nopenaltyguild_vs1 mapflag noreturnguild_vs1 mapflag nosave SavePointguild_vs1 mapflag noteleportguild_vs1 mapflag gvg_nopartyguild_vs1 mapflag nowarpguild_vs1 mapflag nowarptoguild_vs1 mapflag guildlock -
minx123 reacted to Oxxy in how to change unfroze from mdef to stat luk
map/status.c(6447-6451):
case SC_FREEZE: sc_def = st->mdef*100; sc_def2 = st->luk*10 + SCDEF_LVL_DIFF(bl, src, 99, 10); tick_def2 = status_get_luk(src) * -10; //Caster can increase final duration with luk break;
Change the
sc_def = st->mdef*100; to
sc_def = st->luk*28; You will have 99% defense from Freeze if you have 355 luk. (355*28 = 9940; 9940/100 = 99.4 = 99%);
for duration after
sc_def = st->mdef*100; add
tick_def = st->luk*25; You will have 71% of time reduction of freeze if you have 355 luk (355 * 25 = 7100, 7100/100 = 71%)
-
minx123 reacted to Emistry in NPC Punching Beg auto respawn when die
this way is better
http://herc.ws/wiki/Permanent_Monster_Spawn
-
minx123 reacted to Dastgir in NPC Punching Beg auto respawn when die
- script Punching Bag -1,{OnInit:monster "invek",143,148,"Punching Bag",1905,1,strnpcinfo(0)+"::OnDummyKill";monster "invek",153,140,"Punching Bag",1905,1,strnpcinfo(0)+"::OnDummyKill2";monster "invek",161,169,"Punching Bag",1905,1,strnpcinfo(0)+"::OnDummyKill3";end;OnDummyKill: monster "invek",143,148,"Punching Bag",1905,1,strnpcinfo(0)+"::OnDummyKill"; end;OnDummyKill2: monster "invek",153,140,"Punching Bag",1905,1,strnpcinfo(0)+"::OnDummyKill2"; end;OnDummyKill3: monster "invek",161,169,"Punching Bag",1905,1,strnpcinfo(0)+"::OnDummyKill3"; end;} You were using wrong npc name, since npc name was having 2/3 at end, but better merge them all into one npc, like shown above.
-
minx123 reacted to Kuya Jeo in how to make skill will gone when upequip custom
you can see the SC of each skills in
trunk/db/sc_config.txt
and don't put the SKILL NAME because it has a corresponding SC for each skills always rely on trunk/db/sc_config.txt
Energy Coat
SC_ENERGYCOAT Improve Concentration
SC_CONCENTRATION for Full Chemical Protection you need to put 1 by 1
SC_PROTECTWEAPONSC_PROTECTSHIELDSC_PROTECTARMORSC_PROTECTHELM -
minx123 reacted to jaBote in how to make skill will gone when upequip custom
All of these are defined as constants on the db/const.txt file of Hercules, along with a lot of other constants used throughout the scripting engine.
-
minx123 reacted to Kuya Jeo in how to make skill will gone when upequip custom
@@minx123
here you go
{ Id: 30259 AegisName: "Spirit_Of_Blue_Soul" Name: "Spirit Of Blue Soul" Type: 5 Buy: 0 Weight: 100 Slots: 1 Loc: 1 Refine: false View: 1719 Trade: { notrade: true noauction: true nodrop: true nogstorage: true nomail: true noselltonpc: true } Script: <" skill HP_ASSUMPTIO,1; bonus2 bSubRace,RC_DemiHuman,10; bonus bLongAtkDef,10; "> OnUnequipScript: <" sc_end SC_ASSUMPTIO; ">}, -
minx123 reacted to Kuya Jeo in remove delay/cooldown on skill bowling bash
trunk/conf/battle/skill.conf
FIND THIS
// Minimum allowed delay for ANY skills after casting (in milliseconds) (Note 1)// Note: Setting this to anything above 0 can stop speedhacks.min_skill_delay_limit: 100 CHANGE TO THIS
// Minimum allowed delay for ANY skills after casting (in milliseconds) (Note 1)// Note: Setting this to anything above 0 can stop speedhacks.min_skill_delay_limit: 0 -
minx123 reacted to Kuya Jeo in how to make only certain map will get point
@@minx123
here check it in my pastebin
http://pastebin.com/VGyrkNq8
-
minx123 reacted to evilpuncker in Help Me remove all skill give effect shake
search for NEMO patcher
-
minx123 reacted to Kuya Jeo in how to fix tarot can dispel FCP
@@minx123
restart your server after applying the changes
-
minx123 reacted to Kuya Jeo in how to fix tarot can dispel FCP
@@minx123
goto sc_config.txt (path : trunk/db/sc_config.txt)
FIND :
SC_PROTECTWEAPON, 28SC_PROTECTSHIELD, 28SC_PROTECTARMOR, 28SC_PROTECTHELM, 28 CHANGE TO
SC_PROTECTWEAPON, 12SC_PROTECTSHIELD, 12SC_PROTECTARMOR, 12SC_PROTECTHELM, 12 -
minx123 reacted to evilpuncker in fix make 10% droprate in lhz mob
use the db/mob_item_ratio.txt file
-
-
minx123 reacted to Dogpatch in fix make 10% droprate in lhz mob
1000 = 1%
10000 = 0.01%? or 0.10%?
If that's the case then the ratio doesn't make sense. Try messing with it. Try 10, 100, 1000, 10000, 10000 and so on and see the difference. Sometimes, you have a better chance fixing things by experimenting.