-
Posts
81 -
Joined
-
Last visited
-
Days Won
1
Community Answers
-
rongmauhong's post in Reset girl with error was marked as the answer
Hi, You have this error because missing 'end' for the 'close2' command, just put 'end' after 'close2' or using 'close3'
Fixed script
test.txt
-
rongmauhong's post in Geffen Magic tournament buff crash my server HELP was marked as the answer
Hi, this crash this crash related to state icon. If you use ROenglishRE from zackdreaver
open
data/luafiles514/lua files/stateicon/stateiconinfo.lub change
StateIconList[EFST_IDs.EFST_GEFFEN_MAGIC1] = { haveTimeLimit = 1, posTimeLimitStr = 3, descript = { { "Increases physical damage against Demihuman monster" }, { "%s", COLOR_TIME } } } StateIconList[EFST_IDs.EFST_GEFFEN_MAGIC2] = { haveTimeLimit = 1, posTimeLimitStr = 3, descript = { { "Increases magical damage against Demihuman monster" }, { "%s", COLOR_TIME } } } StateIconList[EFST_IDs.EFST_GEFFEN_MAGIC3] = { haveTimeLimit = 1, posTimeLimitStr = 3, descript = { { "Reduces damage taken from Demihuman monster" }, { "%s", COLOR_TIME } } } to
StateIconList[EFST_IDs.EFST_GEFFEN_MAGIC1] = { haveTimeLimit = 1, posTimeLimitStr = 2, descript = { { "Increases physical damage against Demihuman monster" }, { "%s", COLOR_TIME } } } StateIconList[EFST_IDs.EFST_GEFFEN_MAGIC2] = { haveTimeLimit = 1, posTimeLimitStr = 2, descript = { { "Increases magical damage against Demihuman monster" }, { "%s", COLOR_TIME } } } StateIconList[EFST_IDs.EFST_GEFFEN_MAGIC3] = { haveTimeLimit = 1, posTimeLimitStr = 2, descript = { { "Reduces damage taken from Demihuman monster" }, { "%s", COLOR_TIME } } }
-
rongmauhong's post in How to make campfire system work? was marked as the answer
Your campfire script used old getmapxy constant, the new is
*getmapxy("<variable for map name>",<variable for x>,<variable for y>{,<type>,"<search value>"})
Type is the type of object to search for:
BL_PC - Character object (default)
BL_NPC - NPC object
BL_PET - Pet object
BL_HOM - Homunculus object
BL_MER - Mercenary object
BL_ELEM - Elemental object
Update all your scripts where it contains getmapxy([email protected]$, [email protected], [email protected], UNITTYPE_***)
You can find out more from https://github.com/rathena/rathena/pull/3890
-
rongmauhong's post in script only third class & base level 175 was marked as the answer
Okay 😄
test.txt
-
rongmauhong's post in Give 2 random Enchant in 1 roll was marked as the answer
Hi, you can find many sample files in folder npc/re/merchants/enchant_**.txt
This is my script that give 3 random enchants in 1 roll.
prontera,156,186,4 script stest 857,{ [email protected] = EQI_ARMOR; [email protected]_to_test = 2302; // Cotton Shirt [1] if (!countitem([email protected]_to_test)) { specialeffect2 EF_STEAL; getitem2 [email protected]_to_test,1,1,7,0,4003,0,0,0; message strcharinfo(0),"You got a Cotton Shirt to test."; end; } if (!getequipisequiped([email protected])) { message strcharinfo(0), "Make sure you're wearing the equipment first."; end; } // Enchant stones setarray [email protected]_slot1[0],4710,4711,4720,4721; //Inteligence1,Inteligence2,Dexterity1,Dexterity2 setarray [email protected]_slot2[0],4711,4720,4721,4740; //Inteligence2,Dexterity1,Dexterity2,Vitality1 setarray [email protected]_slot3[0],4764,4799,4766,4788; //Critical5,HP500,Atk2,Mdef6 // Random [email protected]_1 = [email protected]_slot1[rand(getarraysize([email protected]_slot1))]; [email protected]_2 = [email protected]_slot2[rand(getarraysize([email protected]_slot2))]; [email protected]_3 = [email protected]_slot3[rand(getarraysize([email protected]_slot3))]; // Get current refine to keep refine [email protected]_refine = getequiprefinerycnt([email protected]); // Get current card to keep card setarray [email protected]_card[0], getequipcardid([email protected],0),getequipcardid([email protected],1),getequipcardid([email protected],2),getequipcardid([email protected],3); // Delete item delitem [email protected]_to_test,1; // Cotton Shirt [1] // Can break armor? if (rand(100) < 50) { specialeffect2 EF_SUI_EXPLOSION; message strcharinfo(0),"Oh Shit!"; end; } else { // Effect specialeffect2 EF_REPAIRWEAPON; emotion ET_BEST; // Get a new item getitem2 [email protected]_to_test,1,1,[email protected]_refine,0,[email protected]_card[0],[email protected]_1,[email protected]_2,[email protected]_3; message strcharinfo(0),"Yay!"; } end; } It took me about 15 minutes..., hope it helps you 😄
-
rongmauhong's post in endless cellar error was marked as the answer
Hi, you need to add a new map to map_cache
1. Add these lines below to db/import/map_index.txt
// Endless Cellar [email protected] [email protected] [email protected] [email protected] [email protected] 2. Add these lines below to conf/maps_athena.conf
map: [email protected] map: [email protected] map: [email protected] map: [email protected] map: [email protected] 3. Use Mapcache Editor to add a new map to db/import/map_cache.dat
-
rongmauhong's post in How to move a monster to specified map and coordinates? was marked as the answer
thanks, does this line work?
unitwarp .GID,"prontera",154,176;