-
Posts
582 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by AinsLord
-
i think this one is for database it self on phpmyadmin im actually looking for db.txt to YAML item converter if there is but yea thanks this will also help me
-
is there like converter for old item db format to new item db? i want to create a custom item on new item db yaml but the output files or itemdb is still the old format thanks in advance
-
trying to use emistry refine callfunc item/NPC
AinsLord replied to AinsLord's question in Scripting Support
where do i put or insert this? -
thanks a lot
-
i just wanted like gvg/woe/koe maps as you can see the mapflags are gvg/gvgdungeon/gvgcastle but it works on PVP kindly elaborate what you mean reproduce new MF is it custom mapflag or what? thanks for replying
-
just a quick question if i want the stone to be placed on 3slot /* item_db.txt // replace with your own custom id. 501,Red_Potion,Red Potion,11,50,,70,,,,,0xFFFFFFFF,63,2,,,,,,{ callfunc( "F_DiabloEnchant",501,909 ); },{},{} // Example Bonus 909,Jellopy,Jellopy,3,6,,10,,,,,,,,,,,,,{ [email protected] = getequippedon(); if ([email protected] & 16) { bonus bVit,100; } if ([email protected] & 256) { bonus bInt,100; } if ([email protected] & 64) { bonus bAgi,100; } },{},{} */ // usage: // callfunc( "F_DiabloEnchant",<delete item id>,<bonus item id> ); function script F_DiabloEnchant { [email protected] = getarg( 0,0 ); [email protected] = getarg( 1,0 ); if ( [email protected] && [email protected] ) { for ( [email protected] = EQI_HEAD_TOP; [email protected] < EQI_ACC_R; [email protected]++ ) { [email protected]_itemid = getequipid( [email protected] ); [email protected]$ = [email protected]$ + ( [email protected]_itemid == -1 ? "": getitemname( [email protected]_itemid ) ) + ":"; } [email protected] = select( [email protected]$ ); [email protected]_itemid = getequipid( [email protected] ); [email protected]_refine = getequiprefinerycnt( [email protected] ); for ( [email protected] = 0; [email protected] < 4; [email protected]++ ) [email protected][[email protected]] = getequipcardid( [email protected],[email protected] ); if ( [email protected][0] && [email protected][0] < 4001 ) { mes "Signed Item can't be enchanted."; } // else if ( [email protected][3] ) { // mes "This item has been enchanted. Cant enchant twice."; // } else { delequip [email protected]; delitem [email protected],1; [email protected][3] = [email protected]; getitem2 [email protected]_itemid,1,1,[email protected]_refine,0,[email protected][0],[email protected][1],[email protected][2],[email protected][3]; // equip2 [email protected]_itemid,[email protected]_refine,0,[email protected][0],[email protected][1],[email protected][2],[email protected][3]; specialeffect2 154; message strcharinfo(0),"Enchant Success!"; } close; } return; } is this the part i need to edit? [email protected][3] = [email protected]; this one is like once you put stone it cannot be enchant again correct? // else if ( [email protected][3] ) { // mes "This item has been enchanted. Cant enchant twice."; // } this part may i know whats the use? // equip2 [email protected]_itemid,[email protected]_refine,0,[email protected][0],[email protected][1],[email protected][2],[email protected][3]; thanks in advance PS: Got error on custom script
-
thanks i ll try this one when i came back home PS: @DorekoNekoThis codes still heals 777 case PR_SANCTUARY: hp = (skill_lv > 6) ? 777 : skill_lv * 100; if (target->type == BL_MOB && target->id == MOBID_EMPERIUM) { hp = 1; } case PR_SANCTUARY: hp = (skill_lv > 6) ? 777 : skill_lv * 100; if (target->id == MOBID_EMPERIUM) { hp = 1; } i tried this code case PR_SANCTUARY: hp = (skill_lv > 6) ? 777 : skill_lv * 100; if (target->type == BL_MOB && target->id == MOBID_EMPERIUM); hp = 1; break; case PR_SANCTUARY: hp = (skill_lv > 6) ? 777 : skill_lv * 100; if (target->id == MOBID_EMPERIUM); hp = 1; break; it heals 1 but it also heals 1 on players
-
i was trying to do some src edit for sanctuary heal on emp that can only be "1" but i got this kind of error i tried the src edit i found here case PR_SANCTUARY: hp = (skill_lv>6)?777:skill_lv*100; if (dstmd->class_ == MOBID_EMPERIUM) hp = 1; break; thanks in advance
-
so i was trying to do the nidhoggurs quest but in some point the quest doesnt go thru on the part of these quest tried to walk pass no pop up message so i tried to search regarding no need to do the quest just talk to the gate and the nest will be open up i found this link i tried it but seems doesnt work is there any other way to enable this nidhoggurs nest without doing those chain quest? thanks for the help
-
so i have this script works with GVG/WOE function script UpperWoe1 { if ( getmapflag( strcharinfo(3), mf_gvg || getmapflag( strcharinfo(3), mf_gvg_castle || getmapflag( strcharinfo(3), mf_gvg_dungeon ) ) ) ) { bonus bMaxHPrate,15; bonus2 bMagicAddRace,RC_Player,5; bonus2 bAddRace,RC_Player,10; bonus2 bSubRace,RC_Player,7; } } but it also works on PVP map or turbo room anyone can help me with this? thanks in advance
-
hi i just wondering 100% stun resist on my server still has a chance to stun isnt it suppose to be resistant already since you got 100% all in all card/equips? thanks in advance PS : dunno which thread i should post this so i posted it on general support
-
hi miss @Emistry it seems i do have problem with your refine item/useable thanks for helping
-
it seems selection dont show up heres the script //--- Bitmasks ---- // 1 - Top Headgear // 2 - Armor // 4 - Left Hand // 8 - Right Hand // 16 - Garment // 32 - Shoes // 64 - Left Accessory // 128 - Right Accessory // 256 - Middle Headgear // 512 - Lower Headgear // .....callfunc( "RefineFunc",<itemID>,<Amount>,<BitMasks>,<MinRefine>,<MaxRefine>,<CheckEquip>,<RefineMode>,<Percent> ); // 1. itemID -> Item that will be used during Refine. // 2. Amount -> Amount of Required Items. // 3. BitMask -> Refer to above bitmask table. // 4. MinRefine -> Required Min Refine to use. // 5. MaxRefine -> What is the Max Refine. [ Can Bypass Default Server Max Refine ] // 6. CheckEquip -> Check Equipments is Refineable or not. [ 0 = Disable / 1 = Enable ] // 7. RefineMode -> +1 / Max Refine. [ 0 = +1 Refine / 1 = Max Refine ] // 8. Percent -> Rate of Success to refine current Equipment. // Notes : You can Customize it according to whatever way you want. // Different NPCs / Items with Different Settings. // It will consume the items that you defined to Refine the Equipments according to your Settings. //----------- If used this as Item Script ----------- // Example : Red Potion with 100% Refine Rate // 501,Red_Potion,Red Potion,11,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc( "RefineFunc",501,1,63,0,10,1,0,100 ); },{},{} // Change Item Type to 11 and Amount Required to 1 ( Advised ) //----------- If used this as NPC Script ------------ // Example : 90% Success Rate Refiner. // turbo_room,108,112,5 script Refiner 757,{ // callfunc( "RefineFunc",3036,1,8,8,10,1,1,100); // } function script RefineFunc { for( set [email protected],1; [email protected] <= 10; set [email protected],[email protected] + 1 ) set [email protected]$,[email protected]$ + (( getarg(2) & pow( 2,([email protected] ) ) && getequiprefinerycnt( [email protected] ) >= getarg(3) && getequiprefinerycnt( [email protected] ) < getarg(4) && getequipisequiped( [email protected]) )?"^FF0000+"+getequiprefinerycnt( [email protected] )+" ^0000FF"+getequipname( [email protected] )+" "+( getitemslots( getequipid( [email protected] ) )?"["+getitemslots( getequipid( [email protected] ) )+"]":"" )+"^000000":"" )+":"; set [email protected],select( [email protected]$ ); mes "Required ^FF0000"+getarg(1)+" x "+getitemname( getarg(0) )+"^000000"; if( getarg(5) == 1 && !getequipisenableref( [email protected] ) ) mes "I cant refine this items. Because it is ^FF0000Un-Refineable^000000."; else{ if( select( "^FF0000Refine^000000:Cancel" ) == 2 ) close; if( countitem( getarg(0) ) < getarg(1) ) close; delitem getarg(0),getarg(1); if( rand(100) < getarg(7) ){ if( getarg(6) ) while( getequiprefinerycnt( [email protected] ) < getarg(4) ) successrefitem ( [email protected] ); else successrefitem ( [email protected] ); mes "You have refined : "; mes "^FF0000+"+getequiprefinerycnt( [email protected] )+" ^0000FF"+getequipname( [email protected] )+"^000000"; }else{ failedrefitem ( [email protected] ); mes "Sorry, Failed in Refine and Equipment...Destroyed."; } } close; } this is the selection window im using it as an useable item 3036,+9_Weapon_Refine_Deed,+9 Weapon Refine Deed,11,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc( "RefineFunc",3036,1,8,8,10,1,1,100); },{},{} thanks for the help @Emistry
-
will this still works with the latest rev?
-
Solved found it on PetEvolutionCln.lub
-
so the material list on pet evo and on pet evo window list is different this is on pet evo windown mats list - Target: ANGELING ItemRequirements: - Item: Yellow_Potion Amount: 20 - Item: Spirit_Chain Amount: 1 - Item: White_Herb Amount: 50 - Item: Jellopy Amount: 200 this is on Pet DB i need to have those materials before i can evolve my pet but the only items will disappear is the materials on pet_db not on the pet evo window thanks for the help PS: dunno which thread should i post this topic so i posted it here at general thread
-
Utility: Costume Enchantments - Custom idRO Klasik based
AinsLord replied to Cydh's topic in Utility Script Releases
Hi sir @Cydh just wondering by opening a 2nd/duplicate NPC for garment 3rd slot enchant why its not selecting the costume on the list perhaps all the costumes that are equip are able to enchant even its not on the list? // - The NPC will enchants costume on inventory, so it's // impossible to keep the current costume info, cannot // make multiple enchants. // - For multiple enchant slots, read the documentation // below - script cCostumeEnchant#Enchanter -1,{ [email protected]$ = charat(strnpcinfo(2),3); [email protected]$ = ".data"[email protected]$+""; [email protected]$ = strnpcinfo(1); [email protected]$ = getd([email protected]$+"locname$"); [email protected]$ = charat(strnpcinfo(2),5); mes "["[email protected]$+"]"; mes "Hi "+strcharinfo(0)+", I'm "[email protected]$; next; mes "["[email protected]$+"]"; mes "I have ability to maximize"; mes "your "[email protected]$+" Costume."; next; mes "["[email protected]$+"]"; mes "I need a costume "[email protected]$+" and "[email protected]$+" enchant stone"; mes "to begin the process"; next; mes "["[email protected]$+"]"; mes "You need to know that my ability"; mes "only for "[email protected]$+" costume"; mes "that you have in inventory."; next; mes "["[email protected]$+"]"; mes "That's why, in this process"; mes "also affected to similar"; mes "costumes in your inventory."; mes "So, just place ^0000CCONE COSTUME^000000"; mes "that you want to enchant"; mes "in your inventory"; next; mes "["[email protected]$+"]"; mes "I don't take the responsibility"; mes " if you put more many costumes"; mes "in your inventory."; next; mes "["[email protected]$+"]"; mes "Now, choose the stone"; mes "that you have"; next; [email protected] = select(getd([email protected]$+"groupmenu$")) - 1; [email protected] = [email protected]*2; [email protected]$ = getd([email protected]$+"group$["[email protected]+"]"); [email protected]$ = getd([email protected]$+"group$["+([email protected]+1)+"]"); // Stone selection next; mes "["[email protected]$+"]"; mes "Choose the "[email protected]$+" stone that you have"; next; [email protected]$ = [email protected]$+"stones_"[email protected]$+"$"; [email protected]$ = ""; for ([email protected] = 0; [email protected] < getarraysize(getd(""[email protected]$+"")); [email protected]+=2) { if ([email protected]) [email protected]$ = [email protected]$+":"; [email protected]$ = [email protected]$+"[^0000CC"+countitem(atoi(getd(""[email protected]$+"["+([email protected])+"]")))+"^000000] "+getd(""[email protected]$+"["+([email protected]+1)+"]")+""; } [email protected] = select([email protected]$) - 1; [email protected] = [email protected] * 2; [email protected] = atoi(getd(""[email protected]$+"["+([email protected])+"]")); [email protected]$ = getd(""[email protected]$+"["+([email protected]+1)+"]"); [email protected]$ = [email protected]$+"costumes$"; setarray [email protected][0],0,0,0,0; [email protected] = 0; disable_items; pcblockskill 0,true; if ([email protected]$ == "") { // Costume selection next; mes "["[email protected]$+"]"; mes "Choose the costume that"; mes "will be enchanted using "[email protected]$+""; [email protected]$ = ""; for ([email protected] = 0; [email protected] < getarraysize(getd([email protected]$)); [email protected]+=2) { if ([email protected]) [email protected]$ = [email protected]$+":"; [email protected] = atoi(getd([email protected]$+"["+([email protected])+"]")); [email protected]$ = [email protected]$+""+getd([email protected]$+"["+([email protected]+1)+"]")+" ("+(countitem([email protected])-isequipped([email protected]))+")"; } [email protected] = select([email protected]$) - 1; [email protected] = [email protected] * 2; [email protected] = atoi(getd([email protected]$+"["[email protected]+"]")); [email protected]$ = getd([email protected]$+"["+([email protected]+1)+"]"); if ((countitem([email protected]) - isequipped([email protected])) < 1 || countitem([email protected]) < 1) { next; mes "["[email protected]$+"]"; mes "I said, you need bring"; mes "the costume and stone needed"; mes "for this process."; close; } } else { // Check equipped costume. Additional feature by me of course, Cydh! [email protected] = getd([email protected]$+"eqiLoc"); [email protected] = getequipid([email protected]); if ([email protected] == -1 || countitem([email protected]) < 1 || countitem([email protected]) != 1) { next; mes "["[email protected]$+"]"; mes "You hvae to wear the "[email protected]$+" costume"; mes "dan bring the stone needed"; next; mes "["[email protected]$+"]"; mes "^0000CCPlease put somewhere else"; mes "the similar costumes in your inventory^000000"; close; } if (countitem([email protected]) != 1) { next; mes "["[email protected]$+"]"; mes "^0000CCPlease put somewhere else"; mes "the similar costumes in your inventory^000000"; close; } [email protected] = getarraysize(getd([email protected]$))/2; [email protected] = [email protected]/2; for ([email protected] = 0; [email protected] < [email protected]; [email protected]+=2) { if ([email protected] == atoi(getd([email protected]$+"["[email protected]+"]"))) break; } if ([email protected] == [email protected]) { next; mes "["[email protected]$+"]"; mes "I don't recognized"; mes "the costume you wear"; close; } [email protected][0] = getequipcardid([email protected],0); [email protected][1] = getequipcardid([email protected],1); [email protected][2] = getequipcardid([email protected],2); [email protected][3] = getequipcardid([email protected],3); [email protected] = getequiprefinerycnt([email protected]); } next; mes "["[email protected]$+"]"; mes "^ff0000- Important -^000000 before"; mes "enchanting this costume"; next; mes "["[email protected]$+"]"; mes "^ff0000If the costume had been enchanted"; mes "with other stone and this process"; mes "is success, the previous stone"; mes "will be replaced with this"; mes "new stone effect^000000"; next; mes "["[email protected]$+"]"; mes "Continue?"; next; if (select("Of course!","I doubt now") == 2) { next; mes "["[email protected]$+"]"; mes "OK, let's us meet again."; mes "See you."; close; } next; mes "["[email protected]$+"]"; mes "I will enchant "[email protected]$+""; mes "with a "[email protected]$+""; next; specialeffect2 EF_REPAIRWEAPON; progressbar "ffffff",3; if (countitem([email protected]) > 0 && countitem([email protected]) > 0) { delitem [email protected],1; if (rand(1,100) < 85) { specialeffect2 EF_PHARMACY_FAIL; mes "["[email protected]$+"]"; mes "Oopps, I failed. Sorry"; close; } delitem [email protected],1; specialeffect2 EF_PHARMACY_OK; mes "["[email protected]$+"]"; mes "Great! It's done"; if ([email protected]$ == "") [email protected][3] = [email protected]; else [email protected][atoi([email protected]$)] = [email protected]; getitem2 [email protected],1,1,[email protected],0,[email protected][0],[email protected][1],[email protected][2],[email protected][3]; } close; OnInit: [email protected]$ = strnpcinfo(2); if ([email protected]$ == "Enchanter") end; [email protected]$ = charat([email protected]$,3); /** * Stone groups **/ setarray [email protected]$[0] ,"atk","ATK Stone" ,"matk","MATK Stone" ,"hp","HP Stone" ,"sp","SP Stone"; /** * Upper costumes **/ if ([email protected]$ == "0") { [email protected]$ = "Upper"; [email protected] = EQI_COSTUME_HEAD_TOP; // Costumes setarray [email protected]$[0],"19936","C Knit Cap of Water" ,"19762","C Happy Peach Proof" ,"31179","C Wolf Masquerade" ,"19935","C Hunting Cap of Gust"; // ,"19992","C Chilling Breathe"; // Stones setarray [email protected]_str$[0],"38000","STR1 Stone","38031","STR2 Stone","38032","STR3 Stone"; setarray [email protected]_agi$[0],"38002","AGI1 Stone","38027","AGI2 Stone","38028","AGI3 Stone"; setarray [email protected]_int$[0],"38001","INT1 Stone","38029","INT2 Stone","38030","INT3 Stone"; setarray [email protected]_vit$[0],"38004","VIT1 Stone","38023","VIT2 Stone","38024","VIT3 Stone"; setarray [email protected]_dex$[0],"38003","DEX1 Stone","38025","DEX2 Stone","38026","DEX3Stone"; setarray [email protected]_luk$[0],"38005","LUK1 Stone","38021","LUK2 Stone","38022","LUK3 Stone"; setarray [email protected]_atk$[0],"38006","ATK1 Stone","38019","ATK2 Stone","38020","ATK3 Stone"; setarray [email protected]_matk$[0],"38007","MATK1 Stone","38017","MATK2 Stone","38018","MATK3 Stone"; setarray [email protected]_hp$[0],"38011","HP1 Stone","38012","HP2 Stone","38013","HP3 Stone"; setarray [email protected]_sp$[0],"38014","SP1 Stone","38015","SP2 Stone","38016","SP3 Stone"; // setarray [email protected]_sp$[0],"6644","SP1 Stone","25440","SP2 Stone","25420","SP3 Stone"; // setarray [email protected]_sp$[0],"6645","SP1 Stone","25440","SP2 Stone","25420","SP3 Stone"; } /** * Middle costumes **/ else if ([email protected]$ == "1") { [email protected]$ = "Middle"; [email protected] = EQI_COSTUME_HEAD_MID; // Costumes setarray [email protected]$[0],"20005","C Sigrun Wings" ,"31118","C Assassin Mask" ,"19139","C Orbs of Survival" ,"20132","C Vicious Mind Aura" // ,"20010","Costume Rainbow Wing Ears" // ,"31380","C Crow" // ,"18914","Costume Servant Devilring" // ,"20325","C Little Mermaid" // ,"20492","C. Whistle" // ,"20440","Costume Tone of Gold Orb" // ,"19805","Costume Taboo Cursed Scroll" // ,"20405","Costume Eremes Scarf" ,"20399","C Crow Tengu Mask"; // Stones setarray [email protected]_str$[0],"38000","STR1 Stone","38031","STR2 Stone","38032","STR3 Stone"; setarray [email protected]_agi$[0],"38002","AGI1 Stone","38027","AGI2 Stone","38028","AGI3 Stone"; setarray [email protected]_int$[0],"38001","INT1 Stone","38029","INT2 Stone","38030","INT3 Stone"; setarray [email protected]_vit$[0],"38004","VIT1 Stone","38023","VIT2 Stone","38024","VIT3 Stone"; setarray [email protected]_dex$[0],"38003","DEX1 Stone","38025","DEX2 Stone","38026","DEX3Stone"; setarray [email protected]_luk$[0],"38005","LUK1 Stone","38021","LUK2 Stone","38022","LUK3 Stone"; setarray [email protected]_atk$[0],"38006","ATK1 Stone","38019","ATK2 Stone","38020","ATK3 Stone"; setarray [email protected]_matk$[0],"38007","MATK1 Stone","38017","MATK2 Stone","38018","MATK3 Stone"; setarray [email protected]_hp$[0],"38011","HP1 Stone","38012","HP2 Stone","38013","HP3 Stone"; setarray [email protected]_sp$[0],"38014","SP1 Stone","38015","SP2 Stone","38016","SP3 Stone"; } /** * Lower costumes **/ else if ([email protected]$ == "2") { [email protected]$ = "Lower"; [email protected] = EQI_COSTUME_HEAD_LOW; // Costumes setarray [email protected]$[0] ,"30082","C Blue Electric Aura" ,"30083","C Orange Electric Aura" ,"30084","C Purple Electric Aura" ,"30085","C Red Electric Aura" ,"30109","C D-Blue Electric Aura" ,"30110","C D-Orange Electric Aura" ,"30111","C D-Purple Electric Aura" ,"30112","C D-Red Electric Aura" ,"31181","C Necklace Rosary" ,"19992","C Chilling Breath" ,"31134","C Talkative Parrot" ,"3000","C Angeling Wings" ,"3001","C Arctic Wings" ,"3003","C Demon Wings" ,"3005","C Gargoyle Wings" ,"3006","C Icarus Wings" ,"3007","C Phoenix Wings" ,"3002","C Black Butterfly Wings"; ; // Additional ASPD Stone setarray [email protected]$[getarraysize([email protected]$)],"aspd","ASPD Stone" ,"str","STR Stone" ,"agi","AGI Stone" ,"int","INT Stone" ,"vit","VIT Stone" ,"dex","DEX Stone" ,"luk","LUK Stone"; // Stones setarray [email protected]_str$[0],"38000","STR1 Stone","38031","STR2 Stone","38032","STR3 Stone"; setarray [email protected]_agi$[0],"38002","AGI1 Stone","38027","AGI2 Stone","38028","AGI3 Stone"; setarray [email protected]_int$[0],"38001","INT1 Stone","38029","INT2 Stone","38030","INT3 Stone"; setarray [email protected]_vit$[0],"38004","VIT1 Stone","38023","VIT2 Stone","38024","VIT3 Stone"; setarray [email protected]_dex$[0],"38003","DEX1 Stone","38025","DEX2 Stone","38026","DEX3Stone"; setarray [email protected]_luk$[0],"38005","LUK1 Stone","38021","LUK2 Stone","38022","LUK3 Stone"; setarray [email protected]_atk$[0],"38006","ATK1 Stone","38019","ATK2 Stone","38020","ATK3 Stone"; setarray [email protected]_matk$[0],"38007","MATK1 Stone","38017","MATK2 Stone","38018","MATK3 Stone"; setarray [email protected]_hp$[0],"38011","HP1 Stone","38012","HP2 Stone","38013","HP3 Stone"; setarray [email protected]_sp$[0],"38014","SP1 Stone","38015","SP2 Stone","38016","SP3 Stone"; setarray [email protected]_aspd$[0],"38033","ASPD1 Stone","38034","ASPD2 Stone","38035","ASPD3 Stone"; } /** * Garment costumes **/ else if ([email protected]$ == "3") { [email protected]$ = "Garment"; [email protected] = EQI_COSTUME_GARMENT; // Costumes setarray [email protected]$[0],"20830","C Wings of Seraph" ,"20762","C Great Devil Wing" ,"20510","C Wigs of Dagger" ,"30018","C Wings of Butterfly" ,"30020","C Wings Of Monarch" ,"30021","C Wings of Phoenix" ,"30105","C Gungnir" ,"30107","C Mjolnir" ,"30106","C Laevateinn" ,"30108","C Sumbrandr" ,"30022","C Wings of Profane"; // Additional ASPD Stone setarray [email protected]$[getarraysize([email protected]$)],"aspd","ASPD Stone" ,"str","STR Stone" ,"agi","AGI Stone" ,"int","INT Stone" ,"vit","VIT Stone" ,"dex","DEX Stone" ,"luk","LUK Stone"; // Stones setarray [email protected]_str$[0],"38000","STR1 Stone","38031","STR2 Stone","38032","STR3 Stone"; setarray [email protected]_agi$[0],"38002","AGI1 Stone","38027","AGI2 Stone","38028","AGI3 Stone"; setarray [email protected]_int$[0],"38001","INT1 Stone","38029","INT2 Stone","38030","INT3 Stone"; setarray [email protected]_vit$[0],"38004","VIT1 Stone","38023","VIT2 Stone","38024","VIT3 Stone"; setarray [email protected]_dex$[0],"38003","DEX1 Stone","38025","DEX2 Stone","38026","DEX3Stone"; setarray [email protected]_luk$[0],"38005","LUK1 Stone","38021","LUK2 Stone","38022","LUK3 Stone"; setarray [email protected]_atk$[0],"38006","ATK1 Stone","38019","ATK2 Stone","38020","ATK3 Stone"; setarray [email protected]_matk$[0],"38007","MATK1 Stone","38017","MATK2 Stone","38018","MATK3 Stone"; setarray [email protected]_hp$[0],"38011","HP1 Stone","38012","HP2 Stone","38013","HP3 Stone"; setarray [email protected]_sp$[0],"38014","SP1 Stone","38015","SP2 Stone","38016","SP3 Stone"; setarray [email protected]_aspd$[0],"38033","ASPD1 Stone","38034","ASPD2 Stone","38035","ASPD3 Stone"; } /** * DO NOT CHANGE THIS CODE BELOW IF YOU KNOW WHAT YOU ARE DOING * This is my style to load on init instead recall and redefining in every NPC is being used **/ [email protected]$ = ".data"[email protected]$+""; setd([email protected]$+"locname$",[email protected]$); setd([email protected]$+"eqiLoc",[email protected]); [email protected]$ = ""; for ([email protected] = 0; [email protected] < getarraysize([email protected]$); [email protected]+=2) { if ([email protected]) { [email protected]$ = [email protected]$+":"; } [email protected]$ = [email protected]$+""[email protected]$[[email protected]+1]+""; setd([email protected]$+"group$["+([email protected])+"]",[email protected]$[[email protected]]); setd([email protected]$+"group$["+([email protected]+1)+"]",[email protected]$[[email protected]+1]); } setd([email protected]$+"groupmenu$",[email protected]$); for ([email protected] = 0; [email protected] < getarraysize([email protected]$); [email protected]+=2) { setd([email protected]$+"costumes$["+([email protected])+"]",[email protected]$[[email protected]]); setd([email protected]$+"costumes$["+([email protected]+1)+"]",[email protected]$[[email protected]+1]); } for ([email protected] = 0; [email protected] < getarraysize([email protected]_str$); [email protected]+=2) { setd([email protected]$+"stones_str$["+([email protected])+"]",[email protected]_str$[[email protected]]); setd([email protected]$+"stones_str$["+([email protected]+1)+"]",[email protected]_str$[[email protected]+1]); } for ([email protected] = 0; [email protected] < getarraysize([email protected]_agi$); [email protected]+=2) { setd([email protected]$+"stones_agi$["+([email protected])+"]",[email protected]_agi$[[email protected]]); setd([email protected]$+"stones_agi$["+([email protected]+1)+"]",[email protected]_agi$[[email protected]+1]); } for ([email protected] = 0; [email protected] < getarraysize([email protected]_vit$); [email protected]+=2) { setd([email protected]$+"stones_vit$["+([email protected])+"]",[email protected]_vit$[[email protected]]); setd([email protected]$+"stones_vit$["+([email protected]+1)+"]",[email protected]_vit$[[email protected]+1]); } for ([email protected] = 0; [email protected] < getarraysize([email protected]_int$); [email protected]+=2) { setd([email protected]$+"stones_int$["+([email protected])+"]",[email protected]_int$[[email protected]]); setd([email protected]$+"stones_int$["+([email protected]+1)+"]",[email protected]_int$[[email protected]+1]); } for ([email protected] = 0; [email protected] < getarraysize([email protected]_dex$); [email protected]+=2) { setd([email protected]$+"stones_dex$["+([email protected])+"]",[email protected]_dex$[[email protected]]); setd([email protected]$+"stones_dex$["+([email protected]+1)+"]",[email protected]_dex$[[email protected]+1]); } for ([email protected] = 0; [email protected] < getarraysize([email protected]_luk$); [email protected]+=2) { setd([email protected]$+"stones_luk$["+([email protected])+"]",[email protected]_luk$[[email protected]]); setd([email protected]$+"stones_luk$["+([email protected]+1)+"]",[email protected]_luk$[[email protected]+1]); } for ([email protected] = 0; [email protected] < getarraysize([email protected]_atk$); [email protected]+=2) { setd([email protected]$+"stones_atk$["+([email protected])+"]",[email protected]_atk$[[email protected]]); setd([email protected]$+"stones_atk$["+([email protected]+1)+"]",[email protected]_atk$[[email protected]+1]); } for ([email protected] = 0; [email protected] < getarraysize([email protected]_matk$); [email protected]+=2) { setd([email protected]$+"stones_matk$["+([email protected])+"]",[email protected]_matk$[[email protected]]); setd([email protected]$+"stones_matk$["+([email protected]+1)+"]",[email protected]_matk$[[email protected]+1]); } for ([email protected] = 0; [email protected] < getarraysize([email protected]_hp$); [email protected]+=2) { setd([email protected]$+"stones_hp$["+([email protected])+"]",[email protected]_hp$[[email protected]]); setd([email protected]$+"stones_hp$["+([email protected]+1)+"]",[email protected]_hp$[[email protected]+1]); } for ([email protected] = 0; [email protected] < getarraysize([email protected]_sp$); [email protected]+=2) { setd([email protected]$+"stones_sp$["+([email protected])+"]",[email protected]_sp$[[email protected]]); setd([email protected]$+"stones_sp$["+([email protected]+1)+"]",[email protected]_sp$[[email protected]+1]); } for ([email protected] = 0; [email protected] < getarraysize([email protected]_aspd$); [email protected]+=2) { setd([email protected]$+"stones_aspd$["+([email protected])+"]",[email protected]_aspd$[[email protected]]); setd([email protected]$+"stones_aspd$["+([email protected]+1)+"]",[email protected]_aspd$[[email protected]+1]); } end; } same goes for the upper/lower/mid costumes im still trying to figure it out but i notice this line } if ([email protected] == [email protected]) { next; mes "["[email protected]$+"]"; mes "I don't recognized"; mes "the costume you wear"; close; its not event showing on the NPC dialogue i think this line will tell if the costume equipped is listed or not thanks a lot for the help -
anyone knows how to fix this kind of issue? i have checked some information on how to fixed but seems i cant find any solution anyone knows where or how to fix it? PS : sorry dunno where to post this kind of concern so i posted it here on src supp thanks in advance
-
ok sir ill try this one later on Hi @Origami thanks a lot for the help got something to add for this feature can be the barricade cant attack by the owner of the emp? thanks again Bump still figuring out how these barricades cant be attack by the owner of the emperium //===== Hercules Script =========================================== //= King of Emperium Hill //===== By: ======================================================= //= AnnieRuru //===== Current Version: ========================================== //= 1.2 //===== Compatible With: ========================================== //= hercules & rathena 2018-04-08 //===== Description: ============================================== //= defends the emperium in the middle of the map until times up //===== Topic ===================================================== //= http://hercules.ws/board/topic/4495-gvg-king-of-emperium-hill/ //===== Additional Comments: ====================================== //= Finally there is a topic for this ! //================================================================= - script KoE FAKE_NPC,{ OnInit: disablenpc "The King#KoE"; disablenpc "The King#Lou"; disablenpc "The King#Alde"; disablenpc "The King#LHZ"; disablenpc "The King#Prt"; disablenpc "The King#Hug"; disablenpc "Exit#KoE"; bindatcmd "koe", strnpcinfo(0)+"::OnCommand", 99,100; end; OnCommand: if ( compare( [email protected]_parameters$, "on" ) ) goto L_start; else if ( compare( [email protected]_parameters$, "off" ) ) goto L_end; else { dispbottom "type - '@koe on' to start the event"; dispbottom "type - '@koe off' to end the event"; } end; L_start: OnSun2000: // everyday 8pm starts if ( .start ) end; gvgon "koe"; announce "The King of Emperium Hill has begun!", bc_all; .start = true; enablenpc "The King#KoE"; enablenpc "The King#Lou"; enablenpc "The King#Alde"; enablenpc "The King#LHZ"; enablenpc "The King#Prt"; enablenpc "The King#Hug"; disablenpc "Exit#KoE"; $koegid = 0; donpcevent "::OnRevKoE"; maprespawnguildid "koe", $koegid, 3; killmonster "koe", "KoE::OnEmpDead"; monster "koe",49,49, "EMPERIUM", 1288, 1, "KoE::OnEmpDead"; monster "koe",45,51,"Barricade",1905,1,"KoEbarricade::OnBarDead1"; monster "koe",45,48,"Barricade",1905,1,"KoEbarricade::OnBarDead1"; end; L_end: OnSun2100: // everyday 8:30pm ends gvgoff "koe"; announce "The King of Emperium Hill is over!", bc_all; .start = 0; enablenpc "Exit#KoE"; disablenpc "The King#KoE"; disablenpc "The King#Lou"; disablenpc "The King#Alde"; disablenpc "The King#LHZ"; disablenpc "The King#Prt"; disablenpc "The King#Hug"; killmonster "koe", "KoE::OnEmpDead"; maprespawnguildid "koe", $koegid, 2; // 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 "koe", $koegid, 2; killmonster "koe", "KoE::OnEmpDead"; sleep 500; if ( .start ) monster "koe",50,50, "EMPERIUM", 1288, 1, "KoE::OnEmpDead"; monster "koe",45,51,"Barricade",1905,1, "KoEbarricade::OnBarDead1"; // Tried to put it here monster "koe",45,48,"Barricade",1905,1, "KoEbarricade::OnBarDead1"; // Tried to put it here sleep 3000; donpcevent "KoEbarricade::OnInit"; end; } // KoE Entrance alexandria,165,143,3 script The King#KoE 1_M_MERCHANT,{ 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; if ( !getvariableofnpc( .start, "KoE" ) ) close; switch( rand(1,4) ){ case 1: warp "koe", 14, 17; end; case 2: warp "koe", 14, 84; end; case 3: warp "koe", 85, 84; end; case 4: warp "koe", 85, 16; end; } } // KoE Exit koe,49,56,5 script Exit#KoE 1_M_BARD,{ mes "[Exit]"; mes "See ya."; close2; warp "Save",0,0; if ( getcharid(2) == $koegid && getguildmaster(getcharid(2)) == strcharinfo(0) ) getitem 36028, 10; getitem 7227, 50; getitem 37001, 5; // configure prize here - Poring Coin end; } // Flags koe,25,74,5 script King of Emperium Hill#1::koe_flag GUILD_FLAG,{ 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 @reloadscript OnRevKoE: flagemblem $koegid; end; } koe,39,40,3 duplicate(koe_flag) King of Emperium Hill#2 GUILD_FLAG koe,39,59,1 duplicate(koe_flag) King of Emperium Hill#3 GUILD_FLAG koe,60,59,7 duplicate(koe_flag) King of Emperium Hill#4 GUILD_FLAG koe,60,40,5 duplicate(koe_flag) King of Emperium Hill#5 GUILD_FLAG koe,74,74,3 duplicate(koe_flag) King of Emperium Hill#6 GUILD_FLAG koe,75,24,1 duplicate(koe_flag) King of Emperium Hill#7 GUILD_FLAG koe,26,24,7 duplicate(koe_flag) King of Emperium Hill#8 GUILD_FLAG hugel,101,144,3 duplicate(The King#KoE) The King#Hug 1_M_MERCHANT louyang,212,101,5 duplicate(The King#KoE) The King#Lou 1_M_MERCHANT aldebaran,133,113,5 duplicate(The King#KoE) The King#Alde 1_M_MERCHANT lighthalzen,154,105,5 duplicate(The King#KoE) The King#LHZ 1_M_MERCHANT prontera,163,317,6,3 duplicate(The King#KoE) The King#Prt 1_M_MERCHANT //alexandria,165,143,3 duplicate(The King#KoE) The King#Alex 1_M_MERCHANT koe mapflag nobranch koe mapflag nomemo koe mapflag nopenalty koe mapflag noreturn koe mapflag nosave SavePoint koe mapflag noteleport //koe mapflag gvg_noparty koe mapflag nowarp koe mapflag nowarpto koe mapflag guildlock koe mapflag noicewall i did try to put it here OnEmpDead: $koegid = getcharid(2); announce "The current King of Emperium Hill is the ["+ strcharinfo(2) +"] guild.", bc_all; donpcevent "::OnRevKoE"; maprespawnguildid "koe", $koegid, 2; killmonster "koe", "KoE::OnEmpDead"; sleep 500; if ( .start ) monster "koe",50,50, "EMPERIUM", 1288, 1, "KoE::OnEmpDead"; monster "koe",45,51,"Barricade",1905,1, "KoEbarricade::OnBarDead1"; monster "koe",45,48,"Barricade",1905,1, "KoEbarricade::OnBarDead1"; sleep 3000; donpcevent "KoEbarricade::OnInit"; end; } still the barricade can be attack by the owner of the KoE/Emp
-
where should i put this on the script of barricades or koe script?
-
sure im actually using ms. annies script //===== Hercules Script =========================================== //= King of Emperium Hill //===== By: ======================================================= //= AnnieRuru //===== Current Version: ========================================== //= 1.2 //===== Compatible With: ========================================== //= hercules & rathena 2018-04-08 //===== Description: ============================================== //= defends the emperium in the middle of the map until times up //===== Topic ===================================================== //= http://hercules.ws/board/topic/4495-gvg-king-of-emperium-hill/ //===== Additional Comments: ====================================== //= Finally there is a topic for this ! //================================================================= - script KoE FAKE_NPC,{ OnInit: disablenpc "The King#KoE"; disablenpc "The King#Lou"; disablenpc "The King#Alde"; disablenpc "The King#LHZ"; disablenpc "The King#Prt"; disablenpc "The King#Hug"; disablenpc "Exit#KoE"; bindatcmd "koe", strnpcinfo(0)+"::OnCommand", 99,100; end; OnCommand: if ( compare( [email protected]_parameters$, "on" ) ) goto L_start; else if ( compare( [email protected]_parameters$, "off" ) ) goto L_end; else { dispbottom "type - '@koe on' to start the event"; dispbottom "type - '@koe off' to end the event"; } end; L_start: OnSun2000: // everyday 8pm starts if ( .start ) end; gvgon "koe"; announce "The King of Emperium Hill has begun!", bc_all; .start = true; enablenpc "The King#KoE"; enablenpc "The King#Lou"; enablenpc "The King#Alde"; enablenpc "The King#LHZ"; enablenpc "The King#Prt"; enablenpc "The King#Hug"; disablenpc "Exit#KoE"; $koegid = 0; donpcevent "::OnRevKoE"; maprespawnguildid "koe", $koegid, 3; killmonster "koe", "KoE::OnEmpDead"; monster "koe",49,49, "EMPERIUM", 1288, 1, "KoE::OnEmpDead"; end; L_end: OnSun2100: // everyday 8:30pm ends gvgoff "koe"; announce "The King of Emperium Hill is over!", bc_all; .start = 0; enablenpc "Exit#KoE"; disablenpc "The King#KoE"; disablenpc "The King#Lou"; disablenpc "The King#Alde"; disablenpc "The King#LHZ"; disablenpc "The King#Prt"; disablenpc "The King#Hug"; killmonster "koe", "KoE::OnEmpDead"; maprespawnguildid "koe", $koegid, 2; // 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 "koe", $koegid, 2; killmonster "koe", "KoE::OnEmpDead"; sleep 500; if ( .start ) monster "koe",50,50, "EMPERIUM", 1288, 1, "KoE::OnEmpDead"; end; } // KoE Entrance alexandria,165,143,3 script The King#KoE 1_M_MERCHANT,{ 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; if ( !getvariableofnpc( .start, "KoE" ) ) close; switch( rand(1,4) ){ case 1: warp "koe", 14, 17; end; case 2: warp "koe", 14, 84; end; case 3: warp "koe", 85, 84; end; case 4: warp "koe", 85, 16; end; } } // KoE Exit koe,49,56,5 script Exit#KoE 1_M_BARD,{ mes "[Exit]"; mes "See ya."; close2; warp "Save",0,0; if ( getcharid(2) == $koegid ) getitem 36028, 10; getitem 7227, 50; getitem 37001, 5; // configure prize here - Poring Coin end; } // Flags koe,25,74,5 script King of Emperium Hill#1::koe_flag GUILD_FLAG,{ 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 @reloadscript OnRevKoE: flagemblem $koegid; end; } koe,39,40,3 duplicate(koe_flag) King of Emperium Hill#2 GUILD_FLAG koe,39,59,1 duplicate(koe_flag) King of Emperium Hill#3 GUILD_FLAG koe,60,59,7 duplicate(koe_flag) King of Emperium Hill#4 GUILD_FLAG koe,60,40,5 duplicate(koe_flag) King of Emperium Hill#5 GUILD_FLAG koe,74,74,3 duplicate(koe_flag) King of Emperium Hill#6 GUILD_FLAG koe,75,24,1 duplicate(koe_flag) King of Emperium Hill#7 GUILD_FLAG koe,26,24,7 duplicate(koe_flag) King of Emperium Hill#8 GUILD_FLAG hugel,101,144,3 duplicate(The King#KoE) The King#Hug 1_M_MERCHANT louyang,212,101,5 duplicate(The King#KoE) The King#Lou 1_M_MERCHANT aldebaran,133,113,5 duplicate(The King#KoE) The King#Alde 1_M_MERCHANT lighthalzen,154,105,5 duplicate(The King#KoE) The King#LHZ 1_M_MERCHANT prontera,163,317,6,3 duplicate(The King#KoE) The King#Prt 1_M_MERCHANT //alexandria,165,143,3 duplicate(The King#KoE) The King#Alex 1_M_MERCHANT koe mapflag nobranch koe mapflag nomemo koe mapflag nopenalty koe mapflag noreturn koe mapflag nosave SavePoint koe mapflag noteleport //koe mapflag gvg_noparty koe mapflag nowarp koe mapflag nowarpto koe mapflag guildlock koe mapflag noicewall here it is sir @Origami
-
welp im trying to add barricade on my koe it seems working just fine no errors on console but its not enough for me after killing the emperium the killed barricades will spawn in 3sec or 5secs with map announcement here is the script - script KoEbarricade 78,{ OnInit: setcell "koe",45,53,45,46,cell_walkable,0; //non walkable monster "koe",45,51,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead1"; monster "koe",45,48,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead1"; setcell "koe",53,54,46,54,cell_walkable,0; //non walkable monster "koe",51,54,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead2"; monster "koe",48,54,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead2"; setcell "koe",54,46,54,53,cell_walkable,0; //non walkable monster "koe",54,48,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead3"; monster "koe",54,51,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead3"; setcell "koe",46,45,53,45,cell_walkable,0; //non walkable monster "koe",48,45,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead4"; monster "koe",51,45,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead4"; end; OnBarDead1: setcell "koe",45,53,45,46,cell_walkable,1; OnBarDead2: setcell "koe",53,54,46,54,cell_walkable,1; OnBarDead3: setcell "koe",54,46,54,53,cell_walkable,1; OnBarDead4: setcell "koe",46,45,53,45,cell_walkable,1; end; } PS: do i need to merge this script on my KoE script? thanks in advance
-
@Haruka Mayumi hi i was trying to do this but it seem im having some trouble @arthurcunha mind sharing how you did it?
-
welcome
-
you can check this line here to remove the mr.smile NPC just put comment the line and do @reloadscript https://github.com/rathena/rathena/blob/master/npc/scripts_athena.conf#L243