-
Posts
10015 -
Joined
-
Days Won
396
Emistry last won the day on April 24
Emistry had the most liked content!
About Emistry
- Birthday January 1
Recent Profile Visitors
74263 profile views
Emistry's Achievements
-
what you need is rewrite the static int buildin_mobcount_sub(struct block_list *bl,va_list ap) into static int buildin_mobcount_by_id_sub(struct block_list *bl,va_list ap) // Added by RoVeRT { unsigned int id = va_arg(ap,unsigned int); struct mob_data *md = ((struct mob_data *)bl); if (md->status.hp > 0 && md->status.class_ == id) return 1; return SCRIPT_CMD_SUCCESS; } script_pushint(st,map_foreachinmap(buildin_mobcount_by_id_sub, id));
-
you basically just pick whatever effect you want and have it apply to the monsters
-
ensure your server have exported this constant to be allowed to use by script engine may try configure the card/enchant equip location rental item are only meant for item itself, not compounding items like enchant/card
-
find the fakeicon(..) script command source mod and implement into your server
-
run the SQL queries at your database engine, HeidiSQL, MySQL Workbench, PhpMyAdmin etc
-
Open Application in windows using NPC script?
Emistry replied to Onairda's topic in Script Discussion
may refer this topic, goddameit did something similar in the past. https://rathena.org/board/topic/62654-send-e-mail-to-someone/ however it only work if the command are executed in same hosting environment -
you can just make the item can only be equipped at right hand position.
-
you aren't using the script which I have updated for you in the earlier post. prontera,146,171,6 script Portal Square 89,{ .@n$ = "[^3355FF Portal Square ^000000]"; .@party_id = getcharid(1); .@p_name$ = getpartyname(.@party_id); .@instance$ = "Portal Square"; if (!.@party_id || getcharid(0) != getpartyleader(.@party_id, 2)) { mes .@n$; mes "In able to enter the Portal Square, you must have a party."; close; } mes .@n$; mes "Portal Square is available everyday for 1 hour and 30 minutes."; mes "Remember, the room and everything inside including boss chamber and other resources, watch out for enemies as well since the room are pk free."; next; switch(select("Enter the Room:Cancel")) { case 1: switch(instance_enter("Portal Square")) { case 3: mes .@n$; mes "You doesn't have a party."; close; case 2: mes .@n$; mes "You can enter the room after making a party."; end; } break; case 2: mes .@n$; mes "Have a nice day then, see you later!."; break; } close; } //================================================================================== //--------|Map Flags|--------------------------------------------------------------- //================================================================================== prt_maze01 mapflag monster_noteleport prt_maze01 mapflag nowarpto prt_maze01 mapflag nomemo prt_maze01 mapflag noteleport prt_maze01 mapflag nosave SavePoint prt_maze01 mapflag nopenalty prt_maze01 mapflag pvp
-
may refer https://github.com/cydh/rathena-wiki/blob/master/%40go_delay_when_hit.md there are also alot topic about adding delay to command upon hit by monsters, search the forum.
-
autobonus "{ if (countitem(512)) delitem 512, 1; else unitstopattack(getcharid(3)); }",1000,1000; something like this ?
-
prontera,146,171,6 script Portal Square 89,{ .@n$ = "[^3355FF Portal Square ^000000]"; .@party_id = getcharid(1); .@p_name$ = getpartyname(.@party_id); .@instance$ = "Portal Square"; if (getcharid(0) != getpartyleader(.@party_id,2)) { mes .@n$; mes "In able to enter the Portal Square, you must have a party."; close } mes .@n$; mes "Portal Square is available everyday for 1 hour and 30 minutes."; mes "Remember, the room and everything inside including boss chamber and other resources, watch out for enemies as well since the room are pk free."; next; switch(select("Enter the Room:Cancel")) { case 1: switch(instance_enter("Portal Square")) { case 3: mes .@n$; mes "You doesn't have a party."; close; case 2: mes .@n$; mes "You can enter the room after making a party."; end; } break; case 2: mes .@n$; mes "Have a nice day then, see you later!."; break; } close; } //================================================================================== //--------|Map Flags|--------------------------------------------------------------- //================================================================================== prt_maze01 mapflag monster_noteleport prt_maze01 mapflag nowarpto prt_maze01 mapflag nomemo prt_maze01 mapflag noteleport prt_maze01 mapflag nosave SavePoint prt_maze01 mapflag nopenalty prt_maze01 mapflag pvp remove unnecessary brackets
-
that's not how bitmask work. dont want it work this way? then change the whole thing, and not to use bitmask. .RewardList = 1|2; // include only reward 1 and 2 using bitmask, this is the way to get reward 1 and 2.
-
ensure your NPC are using the correct shop type. shop cashshop itemshop pointshop marketshop
-
recompile the server after you apply the source modification or downloaded latest rathena version.
-
find these line in mob.cpp // Cap it to 100% drop_rate = min( drop_rate, 10000 ); change to if (sd->state.pvpmode) drop_rate += 100; // final drop rate increment by 1.00% // Cap it to 100% drop_rate = min( drop_rate, 10000 );