Angelmelody
-
Content Count
772 -
Joined
-
Last visited
-
Days Won
23
Posts posted by Angelmelody
-
-
Hello, I would like to suggest adding this command getequipuniqueid into Herc emulator.
Since we had implemented Unique ID system ,but don't have script cmd to get the Unique ID
of equipped equipment,so here's hoping that devs can implement this cmd ,thx
-
why not call a @at char and increase his Max HP for testing?
-
maybe same as this issue
http://herc.ws/board/tracker/issue-8177-some-of-gettimestr-time-format-crash-map-server/
-
add this into the first line of afk.c
#include "common/hercules.h"
-
1.2
- no need to clean too much LOL
- now OnPCUseSkillEvent.conf can use more whitespace
- unsupported inf type will now display which skill ID properly
- fix a bug that inf type friend(16) when cast on self, will spam error message
wow~ nice, but you forgot herc emu dont have OnPCStatCalcEvent
-
someone help me please!!
help me to make mdef won't affect freeze duration/freeze status
and every 40 luk there will be a 10% reduce of freeze duration.
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;
case SC_FREEZE: sc_def = st->mdef*100; sc_def2 = st->luk*10 + SCDEF_LVL_DIFF(bl, src, 99, 10); tick_def = st->luk*25; tick_def2 = status_get_luk(src) * -10; //Caster can increase final duration with luk break;
helllo! thanks for this but i haven't seen any mdef changes
does mdef will still affect the freeze chance/freeze duration?
sorry , I didn't read the topic well. If you want mdef not affect freeze status
you can try to comment out this line 'sc_def = st->mdef*100;' ,
so it should look like
case SC_FREEZE: //sc_def = st->mdef*100; sc_def2 = st->luk*10 + SCDEF_LVL_DIFF(bl, src, 99, 10); tick_def = st->luk*25; tick_def2 = status_get_luk(src) * -10; //Caster can increase final duration with luk break;
-
someone help me please!!
help me to make mdef won't affect freeze duration/freeze status
and every 40 luk there will be a 10% reduce of freeze duration.
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;
case SC_FREEZE: sc_def = st->mdef*100; sc_def2 = st->luk*10 + SCDEF_LVL_DIFF(bl, src, 99, 10); tick_def = st->luk*25; tick_def2 = status_get_luk(src) * -10; //Caster can increase final duration with luk break;
-
Ruru , I recommend you to use this kind of hyperlink which is with a git version
,why so ?it can always keep the correct line after tons of updates
https://github.com/HerculesWS/Hercules/blob/bb3afb0/doc/script_commands.txt#L6105
-
this?
skill_db.txt
405,7,6,1,0,0x1,0,1,1,no,0,0,3,magic,0, PF_SPIDERWEB,Fiber Lock
IndieRO and Mikhail von Hohenheim reacted to this -
An easier method , change your account group from 99 to 100
[Warning]: pc_authok: AnnieRuru (AID:2000000) logged in with unknown group id (100)! kicking...
nope, the server kick me{ Id: 501 AegisName: "Red_Potion" Name: "Red Potion" Type: 0 Buy: 50 Weight: 70 Trade: { override: 99 nodrop: true notrade: true } Script: <" itemheal rand(45,65),0; ">},
weird, I tested my GM99 can drop and trade items, but normal player can'tChange gm level to 100 not group, and it will be bypassed.
in hercules seems player's group cant be changed to 100 , read the 6th post of this thread
seriously ? have you test it ?
my map-server gone crazy with errors
I dont have tested before you tell me there are a lot of warnings(lazy XD)
but tested now and don't have any warnings,server load item_db.conf successfully
-
You can also use Regular Expressions to insert text 'override:99' in item_db.conf
F: (Trade: {.*?rn)
R: 1ttoverride:99rn
F: (Nouse: {.*?rn)
R: 1ttoverride:99rn
-
An easier method , change your account group from 99 to 100
[Warning]: pc_authok: AnnieRuru (AID:2000000) logged in with unknown group id (100)! kicking...
nope, the server kick me{ Id: 501 AegisName: "Red_Potion" Name: "Red Potion" Type: 0 Buy: 50 Weight: 70 Trade: { override: 99 nodrop: true notrade: true } Script: <" itemheal rand(45,65),0; ">},
weird, I tested my GM99 can drop and trade items, but normal player can'tI think that's normal coz 99 group player can by pass that limitation,
if account group cant be changed to 100 and don't wanna edit src,
insert all item the limitation with 'override: 99' is needed
-
-
override: 99
-
Mikhail von Hohenheim reacted to this -
I recommend you learn Map Zone DB ,its better than running a while loop
example, go to the bottom of map_zone_db.conf and add BEFORE the last ) the following:
,{ name: "Custom" disabled_skills: { SA_ABRACADABRA: "PLAYER" } mapflags: ( "noknockback", )}
now go to any npc script file and add this:
yourmapname<tab>mapflag<tab>zone<tab>Customevilpuncker reacted to this -
Yeah, I don't mind looking at community suggestions
Make a suggestion in community suggestion? @@Mysterious is fast on responding those.off topic.. I like the color quotation blocks , why our forum doesn't have those ?
-
Perfect. You can't use @restock in those maps and when you are in those maps the command wont restore a specific item that you chosen before.
But I'm getting this error in console when the command tries to restore the item when you are out of it.
[Debug]: Source (NPC): Restock at prontera (140,140)
https://github.com/dastgir/HPM-Plugins/blob/master/NPC/Restock.txt
prontera,140,140,5 script Restock 999,{
change into
- script Restok -1,{
-
you can use charid2rid CMD to check whether the player is online or not
if(charid2rid(.@char_id[.@i]))dispbottom "....";
Lord Ganja reacted to this -
find and add after
if (!sd) return 0;
if(map_flag_vs(sd->bl.m)) {
clif->message(sd->fd, "command cant be used on pvp/gvg/bg maps");
return 0;
} -
-
nameid = itemdb->searchrandomid(-nameid);
-
maybe the event 'OnMyModDead' wasn't triggered when the monster died
-
@@Angelmelody - Thanks again! Anyway the script doesn't show the last entry if the player is offline..
It was displayed like this:
Top 1 - Points: 1214> Lord GanjaTop 2 - Points: 68> [Offline]Top 3 - Points:45// And it is now blank here// If they player is only the char name is displayed. but if not online, it's just blank
ok updated
.@nb = query_sql("select `name`, r.value, `online` from `char` as c INNER JOIN( select `account_id`, `value` from `acc_reg_num_db` WHERE `key` ='#PK_Points' AND `value` > 0 GROUP BY `account_id` order by `value` desc limit 10) as r on c.account_id = r.account_id order by r.value desc,char_num asc", .@name$, .@value, .@online); if(.@nb) mes "Top "+( ++.@j)+" - Points: "+.@value[.@i]; for( .@i = 0; .@i < .@nb; .@i++ ) { if(.@i ) { if(.@value[.@i] != .@value[.@i-1] ){ if(!.@k){ mes " > [Offline]"; } mes "Top "+(++.@j)+" - Points: "+.@value[.@i]; .@k = 0; } if(!.@k && .@i == (.@nb-1) ) { mes " > [Offline]"; } } if(.@online[.@i]) { mes " > "+ .@name$[.@i]; .@k++; } }
Lord Ganja reacted to this
Stop gaining EXP at Specific Level
in Source Requests
Posted
already exist https://github.com/HerculesWS/Hercules/blob/master/npc/mapflag/night.txt