-
Posts
2,407 -
Joined
-
Last visited
-
Days Won
49
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by Capuche
-
-
Some spots are supposed to spawn monsters endlessly (with a delay of 30 seconds) until the Commander is killed. Did you check if the monsters respawn?
-
if (getequipid(EQI_HAND_R) != -1) breakequip(EQI_HAND_R); end;Shorter
xD
*breakequip <equipment slot>{,<char_id>}; This command will break and unequip whatever is currently equipped in the invoking character's specified equipment slot. For a full list of possible equipment slots see 'getequipid'. This command will return 1 if an item was broken and 0 otherwise.
-
1
-
-
This kind of issue often happens with attachrid command. Avoid attachrid until it gets a fix.
-
-
The monsters of yours instance probably have their own label.
monster "place",60,100,"Poring",1002,1; // call OnNPCKillEvent on monster dead monster "place",60,100,"Poring",1002,1,"NPCNAME::OnLabel"; // call OnLabel on monster dead (not OnNPCKillEvent) -
If you're using a version after https://github.com/rathena/rathena/commit/26720f041a3cd0edbaa975bfc70345a30e9bf706
change
getmapxy( [email protected]$,[email protected],[email protected],0 );to
getmapxy( [email protected]$,[email protected],[email protected],BL_PC ); -
.. and search # for the maps without @ in the original name !
-
Simple note that I merged a version in the main repo while updating eden_iro.txt in https://github.com/rathena/rathena/commit/339e6c67182e5cb344fcd614329f2b7fb048d8bf#diff-ad177424d33f756ef2d34a911a9fb86aR1168
-
*unitskilluseid <GID>,<skill id>,<skill lvl>{,<target id>,<casttime>}; *unitskilluseid <GID>,"<skill name>",<skill lvl>{,<target id>,<casttime>}; *unitskillusepos <GID>,<skill id>,<skill lvl>,<x>,<y>{,<casttime>}; *unitskillusepos <GID>,"<skill name>",<skill lvl>,<x>,<y>{,<casttime>}; This is the replacement of the older commands, these use the same values for GID as the other unit* commands (See 'GID'). Skill ID is the ID of the skill, skill level is the level of the skill. Cast time is the amount of seconds to add or remove from the skill. Use a positive value to add and negative value to subtract. Using 0 or no value will use the default skill cast time. For the position, the x and y are given in the UnitSkillUsePos.
Using 0 or no value will use the default skill cast time.
Read the docs !
-
Copie the auto-spell you want to remove on your combo but put the rates as negative.
For example for amon ra card
4236,Amon_Ra_Card,Amon Ra Card,6,20,,10,,,,,,,,64,,,,,{ bonus bAllStats,1; bonus3 bAutoSpellWhenHit,"PR_KYRIE",10,(30+70*(readparam(bInt)>=99)); },{},{}To remove the auto-spell from another item script the rate "(30+70*(readparam(bInt)>=99))" must be negative
bonus3 bAutoSpellWhenHit,"PR_KYRIE",10,-(30+70*(readparam(bInt)>=99)); -
-
The structure has been changed, MAX_QUEST_DB has been removed and the limit is now ~2m entries (to simplify)
-
maybe :
alberta,97,53,0 script Fabian2 84,{ setarray [email protected]_string_1$[0], "pay_", "moc_", "cmd_"; setarray [email protected]_string_2$[0], "fild", "dun"; setarray [email protected]_string_3$[0], "00", "01", "02"; setarray [email protected]_list_1$[0], "Apple", "Banana", "Orange"; setarray [email protected]_list_2$[0], "Cat", "Dog"; setarray [email protected]_list_3$[0], "Eat the", "Steal the", "Dream of"; [email protected][1] = select( implode([email protected]_list_1$, ":") ) -1; [email protected][2] = select( implode([email protected]_list_2$, ":") ) -1; [email protected][3] = select( implode([email protected]_list_3$, ":") ) -1; mes "Do you really want to go where the " + [email protected]_list_2$[ [email protected][2] ] + " " + [email protected]_list_3$[ [email protected][3] ] + " " + [email protected]_list_1$[ [email protected][1] ] + "?"; next; if (select("No", "Yes") == 1) close; [email protected]_name$ = [email protected]_string_1$[ [email protected][1] ] + [email protected]_string_2$[ [email protected][2] ] + [email protected]_string_3$[ [email protected][3] ]; // a list of available map should be created to prevent console message about unknown map warp [email protected]_name$,0,0; end; }-
1
-
-
Maybe you mean that?
alberta,97,51,0 script Fabian 84,{ [email protected]$ = "hu_fild05"; // word to split [email protected] = 3; // how many words [email protected] = getstrlen([email protected]$); for ( [email protected] = 0; [email protected] < [email protected]; [email protected] += [email protected] ) { if (([email protected] + [email protected]) < [email protected]) [email protected] = [email protected] + [email protected] - 1; else [email protected] = [email protected] - 1; [email protected]$[[email protected]] = substr( [email protected]$, [email protected], [email protected] ); [email protected]++; } // simple shuffle [email protected]_size = [email protected]; for ( [email protected] = 0; [email protected] < [email protected]; [email protected]++ ) { [email protected] = rand([email protected]_size); [email protected]_word$ = [email protected]$[[email protected]]; [email protected]$[[email protected]] = [email protected]$[ [email protected]_size-1 ]; [email protected]$[ [email protected]_size-1 ] = [email protected]_word$; [email protected]_size--; } [email protected]$ = implode( [email protected]$, ":" ); for ( [email protected] = 0; [email protected] < [email protected]; [email protected]++ ) { [email protected] = select([email protected]$) - 1; [email protected]_word$ += [email protected]$[[email protected]]; mes "Word: " + [email protected]_word$; } if ([email protected]_word$ == [email protected]$) { mes "Grat!"; warp [email protected]$,0,0; } close; }-
1
-
-
The last hash https://github.com/rathena/rathena/commit/a548f20c940036a7c05c561c1363cb51a5849922 only go up to level 175. First you need to get the exp from 175 to 185 if they leaked the exp table somewhere or you can grab the exp playing on KRO, then you need to share the result to the community and only after that you need to update the max level on your emulator using https://gist.github.com/cydh/d82a06472f12c4ec7f38ab3de22fe86b
-
7 hours ago, ittiphol said:
this is only sent to user online
On 4/12/2013 at 11:34 PM, Capuche said:Others players get the item when they log in.

Maybe the query of this script need to be updated depending of your server but it will be your homework.
-
The additional damages given by item produced are hard coded. You can start from here : https://github.com/rathena/rathena/blob/7f772c32d3be201861946bb64720c231828465ac/src/map/status.cpp#L3651
-
1
-
-
Do you have a sample script to reproduce the error?
-
I don't see a clean way to force to end a specific npc instance. The easiest way seems to add a check after every 'next' and co.
-
How about https://gist.github.com/Atemo/7b741b940ce324c2fa17b8ccdcd84133/revisions
The random options are randomly given when purchasing in the script btw.
Mark the shop number as random option shop in
// ----------------------------------------------------------- // List of Shop ID using random option system. // ----------------------------------------------------------- Shop_Random_Option(1,2); // shop 1 and 2 are using random option system.Set the option given randomly for each slot in
function get_option_id { // opt slot 1 [email protected][0] = F_Rand( RDMOPT_DAMAGE_PROPERTY_NOTHING_TARGET, RDMOPT_DAMAGE_PROPERTY_POISON_TARGET, RDMOPT_DAMAGE_PROPERTY_UNDEAD_TARGET, RDMOPT_DAMAGE_PROPERTY_DARKNESS_TARGET, RDMOPT_DAMAGE_PROPERTY_TELEKINESIS_TARGET, RDMOPT_DAMAGE_PROPERTY_SAINT_TARGET, RDMOPT_DAMAGE_PROPERTY_FIRE_TARGET, RDMOPT_DAMAGE_PROPERTY_WIND_TARGET, RDMOPT_DAMAGE_PROPERTY_WATER_TARGET, RDMOPT_DAMAGE_PROPERTY_GROUND_TARGET ); // opt slot 2 [email protected][1] = F_Rand( RDMOPT_RACE_DAMAGE_NOTHING, RDMOPT_RACE_DAMAGE_UNDEAD, RDMOPT_RACE_DAMAGE_INSECT, RDMOPT_RACE_DAMAGE_HUMAN, RDMOPT_RACE_DAMAGE_DRAGON, RDMOPT_RACE_DAMAGE_ANGEL, RDMOPT_RACE_DAMAGE_PLANT, RDMOPT_RACE_DAMAGE_DEVIL, RDMOPT_RACE_DAMAGE_ANIMAL, RDMOPT_RACE_DAMAGE_FISHS ); // opt slot 3 // [email protected][2] = // opt slot 4 // [email protected][3] = setarray getarg(0), [email protected][0], [email protected][1], [email protected][2], [email protected][3]; return; }and set the value for each option ID in
// return a random value depending of the option ID function get_option_value { [email protected]_of_optid = getarraysize( getarg(1) ); for ( [email protected] = 0; [email protected] < [email protected]_of_optid; [email protected]++ ) { [email protected] = getelementofarray( getarg(1), [email protected] ); switch([email protected]) { case RDMOPT_DAMAGE_PROPERTY_NOTHING_TARGET: case RDMOPT_DAMAGE_PROPERTY_POISON_TARGET: case RDMOPT_DAMAGE_PROPERTY_UNDEAD_TARGET: case RDMOPT_DAMAGE_PROPERTY_DARKNESS_TARGET: case RDMOPT_DAMAGE_PROPERTY_TELEKINESIS_TARGET: case RDMOPT_DAMAGE_PROPERTY_SAINT_TARGET: case RDMOPT_DAMAGE_PROPERTY_FIRE_TARGET: case RDMOPT_DAMAGE_PROPERTY_WIND_TARGET: case RDMOPT_DAMAGE_PROPERTY_WATER_TARGET: case RDMOPT_DAMAGE_PROPERTY_GROUND_TARGET: [email protected] = rand(1,20); break; case RDMOPT_RACE_DAMAGE_NOTHING: case RDMOPT_RACE_DAMAGE_UNDEAD: case RDMOPT_RACE_DAMAGE_INSECT: case RDMOPT_RACE_DAMAGE_HUMAN: case RDMOPT_RACE_DAMAGE_DRAGON: case RDMOPT_RACE_DAMAGE_ANGEL: case RDMOPT_RACE_DAMAGE_PLANT: case RDMOPT_RACE_DAMAGE_DEVIL: case RDMOPT_RACE_DAMAGE_ANIMAL: case RDMOPT_RACE_DAMAGE_FISHS: [email protected] = rand(1,20); break; } set getelementofarray( getarg(0), [email protected] ), [email protected]; } return; }-
2
-
1
-
1
-
-
delequip could do the work too
*delequip <equipment slot>{,<char_id>}; This command will destroy whatever is currently equipped in the invoking character's specified equipment slot. For a full list of possible equipment slots see 'getequipid'. This command will return 1 if an item was deleted and 0 otherwise.
if (getequipid(EQI_ARMOR) == 2304 && getequiprefinerycnt(EQI_ARMOR) == 7) delequip EQI_ARMOR; -
getmapxy has been updated https://github.com/rathena/rathena/commit/26720f041a3cd0edbaa975bfc70345a30e9bf706
You need to update the script depending of your emulator date
-
1
-
-
You were right https://github.com/rathena/rathena/commit/cc11869a93571f0e0355917ba113d1bd98d42d48
Next time open an issue on GitHub thanks !
-
The title matches the description at least.
izlude,100,100,0 script I need a script that will 56,{ disablenpc "lock the castle doors I wish"; end; } ordeal_1-1,100,150,0 warp lock the castle doors I wish 1,1,ordeal_1-1,128,150-
1
-
1
-
About euphys Quest shop.
in Scripting Support
Posted
https://github.com/rathena/rathena/blob/bdd63022a9c479df833304add9537eca7f39b331/conf/battle/items.conf#L139
set to 0