Jump to content

AinsLord

Members
  • Posts

    791
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by AinsLord

  1. ill try this one later thank you again for helping me out very much appreciated
  2. sorry to bump in to this post can i ask how can i put item as a reward for the party who cleared the ET like 1 - 3 random items for whole party drop by NS or automatically transfer to party leaders inv EDIT: i hope there is also for nidhogg nest
  3. im looking for solution for that line if i do really remove that line inactive woe/agit if the player leave the guild they stay in the map instead of being warped back coz they leave the guild while inside the map maybe this part "::OnPCLoadMapEvent" triggers the map event
  4. thanks it works super appreciated now no errors but once a member inside the map leave the guild it doesnt warp back to savepoin example they joined the guild and after entering the map they leave the guild player who leave the guild stays inside the map didnt change the code - script kickmap_guild -1,{ end; OnInit: .map$ = "prt_fild07"; .interval = 1; setmapflag .map$, mf_loadevent; end; OnAgitStart: OnAgitStart2: OnAgitStart3: if (!agitcheck() && !agitcheck2() && !agitcheck3()) end; .@num = getmapunits(BL_PC, .map$, .@name$[0]); freeloop(1); for (.@i = 0; .@i < .@num;.@i++) { message .@name$[.@i], "Agit event has been started, You will be warped to Save Point"; next; message .@name$[.@i], "You can enter again after Agit event"; next; warp "SavePoint", 0, 0, getcharid(0, .@name$[.@i]); } freeloop(0); end; OnPCLoadMapEvent: if (strcharinfo(3) != .map$) end; if (agitcheck() || agitcheck2() || agitcheck3()) end; // Better use constant, constant is made for more readable and can be understood easily //.@gid = getcastledata("prtg_cas01", 1); .@gid = getcastledata("prtg_cas01", CD_GUILD_ID); if (getcharid(2) != .@gid) { mes "YOU ARE NOT ALLOWED HERE, GO BACK!!!!"; next; warp "SavePoint", 0, 0; } // looping timer is bad practice in my opinion on this case // there is an Event emited for agit event. //else { // addtimer (.interval * 1000), strnpcinfo(0)+"::OnPCLoadMapEvent"; //} end; } what seems to be the problem @LoneRanger FIXED it really need this line else { addtimer (.interval * 1000), strnpcinfo(0)+"::OnPCLoadMapEvent"; } if i remove that line if the agit event is inactive and guildmember inside the map leaves the guild that player will stay inside the map with that line inactive agit and player inside the map will be warped back to savepoint already fixed thanks a lott
  5. bumb to my post i made some changes in the script like this - script kickmap_guild -1,{ end; OnInit: .map$ = "prt_fild07"; .interval = 1; setmapflag .map$, mf_loadevent; end; OnAgitStart: OnAgitStart2: OnAgitStart3: if (!agitcheck() && !agitcheck2() && !agitcheck3()) end; .@num = getmapunits(BL_NPC, .map$, .@name$[0]); freeloop(1); for (.@i = 0; .@i < .@num; .@i++) { .@char_id = getcharid(0, .@name$[.@i]); if (.@char_id) { message .@name$[.@i], "Agit event has been started. You will be warped to the Save Point."; warp "SavePoint", 0, 0, .@char_id; } } freeloop(0); end; OnPCLoadMapEvent: if (strcharinfo(3) != .map$) end; if (agitcheck() || agitcheck2() || agitcheck3()) end; // Better use constant, constant is made for more readable and can be understood easily //.@gid = getcastledata("prtg_cas01", 1); .@gid = getcastledata("prtg_cas01", CD_GUILD_ID); if (getcharid(2) != .@gid) { mes "YOU ARE NOT ALLOWED HERE, GO BACK!!!!"; next; warp "SavePoint", 0, 0; } // looping timer is bad practice in my opinion on this case // there is an Event emited for agit event. //else { // addtimer (.interval * 1000), strnpcinfo(0)+"::OnPCLoadMapEvent"; //} end; } i trim down the error to this
  6. i just refresh the website earlier to use the code block btw thanks for the help however this error shows in the console when woe started and guildmember/master is inside the map then 2nd thing example a member leaves the guild and the player is inside the map player is not kicked coz that player is no longer part of the guild EDIT: even without players inside the map that error in console shows
  7. Bump to the post i try to make this script so it actually works with inactive woe and while inside and you leave the guild you will be kicked out also however when the woe/agit is active castle owner can still enter the map i cant make it like whenever woe started no guildmember/master can enter the map and all of the guildmember/master inside will be warped back to savepoint here is the code - script kickmap_guild -1,{ OnInit: .map$ = "prt_fild07"; .interval = 1; setmapflag .map$, mf_loadevent; end; OnPCLoadMapEvent: if (strcharinfo(3) == .map$) { if (!agitcheck() && !agitcheck2() && !agitcheck3()) { .@gid = GetCastleData("prtg_cas01",0); // Castle Map Name and castle data if (getcharid(2) == .@gid){ mes "YOU ARE NOT ALLOWED HERE, GO BACK!!!!"; next; warp "SavePoint",0,0; } else { addtimer (.interval * 1000), strnpcinfo(0)+"::OnPCLoadMapEvent"; } } } end; } and also i have this warning/debug msg i know this is the line .@gid = GetCastleData("prtg_cas01",0); // this line here //if i make it like this no error however even the castle owner cant enter the map .@gid = GetCastleData("prtg_cas01",1); // even castle owner cant enter thanks for the help in advance very much appreciated hope someone can help
  8. so i create a script for a map that can be accessed only for the guild who conquers specific castle i actually did it however i tried to like 1. when agit/woe starts the NPC will tell you that the "Woe is currently active you can't enter now" what is actually happen is the NPC is just unclickable or no response 2. when woe/agit starts all of the guildmembers will be warped to save point what is actually happens is the characters still stay inside the map here is the script if (!agitcheck() && !agitcheck2() && !agitcheck3()) { // Check for agit active mes "Woe is currently active can't enter right now"; // NPC message when woe is active mapwarp .map$, "prontera",149,138; // Map of the savepoint .@gid = GetCastleData("prtg_cas01",1); // Castle Map Name and castle data if (getcharid(2) == .@gid){ mes "You will be warped to Lost Midgard"; next; warp "goldroom.gat",0,0; dispbottom "[Guild Message]: Welcome to Lost Midgard"; } else { mes "[Lost Midgard Guardian]"; mes "Your Guild did not conquer Krimhild Castle"; dispbottom "[Guild Message]: Only Guild who owns Kriemhild can enter here!"; } } end; } thanks in advance i know that there are some codes missing however i just dunno what is it thanks again EDIT: i tried this one it has no errors but players inside the map are no being kicked or warped out if (!agitcheck() && !agitcheck2() && !agitcheck3()) { // Check for agit active mes "Woe is currently active can't enter right now"; // NPC message when woe is active atcommand "@kickall"; // Map of the savepoint .@gid = GetCastleData("prtg_cas01",1); // Castle Map Name and castle data if (getcharid(2) == .@gid){ mes "You will be warped to Lost Midgard"; next; warp "goldroom.gat",0,0; dispbottom "[Guild Message]: Welcome to Lost Midgard"; } else { mes "[Lost Midgard Guardian]"; mes "Your Guild did not conquer Krimhild Castle"; dispbottom "[Guild Message]: Only Guild who owns Kriemhild can enter here!"; } } end; } thanks again
  9. well i dunno if this was requested here but as i remember there is a script that gives specific map for a guild castle holder for ex: castle 1 guild holder have the access for the specific map only guild master/members can enter the map and if the guild member leave the guild while inside the map that player will be teleported back to save point thanks in advance again ?
  10. [Error]: [GuildID: 2 / World: "Servername"] Not found in table i have this kind of error in my console i just changed server name in char_athena.conf then this shows any fix for this? thanks in advance PS: fixed i just relog and reupload the emblem again im using 2021 client
  11. is there like a corrected palettes for 4th jobs? or just modify and edit the palettes that can be download here? thanks in advance
  12. like the image is there like item bonus script with this kind of effect? thanks in advance
  13. hi sir its working fine however when i need to edit the soul_link_db.yml i need to reboot the whole server its not included in reloaditemdb
  14. hi is this possible to enable using a custom script for hourly system? TIA
  15. question po mga sir pwd paba mag install ng VNC viewer kahit may naka install na na Emulator?
  16. so ive been looking here quite a while then i found thi so i followed the steps it actually lead me here got this error wit this code if(sc && sc->data[SC_SPIRIT] && sc->data[SC_SPIRIT]->val2 == SL_SAGE && status_isimmune(bl) && !tsc->data[SC_HERMODE] && rnd()%100 < 70 || status_isimmune(bl) && !(sc && sc->data[SC_SPIRIT] && sc->data[SC_SPIRIT]->val2 == SL_SAGE) ){ if (sd) clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0); break; so i edit it with this code if(sc && tsc->data[SC_SPIRIT] && tsc->data[SC_SPIRIT]->val2 == SL_SAGE && status_isimmune(bl) && !tsc->data[SC_HERMODE] && rnd()%100 < 70 || status_isimmune(bl) && !(sc && tsc->data[SC_SPIRIT] && tsc->data[SC_SPIRIT]->val2 == SL_SAGE) ){ if (sd) clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0); break; and almost the same error so i edit it again with this if(sd && tsc && sd->sc.getSCE(SC_SPIRIT) && sd->sc.getSCE(SC_SPIRIT)->val2 == SL_SAGE && status_isimmune(bl) && !tsc->data[SC_HERMODE] && rnd()%100 < 70 || status_isimmune(bl) && !(sd && tsc && sd->sc.getSCE(SC_SPIRIT) && sd->sc.getSCE(SC_SPIRIT)->val2 == SL_SAGE) ){ if (sd) clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0); break; } got this kind of error probably progress then i try to modify it again with this if(sd && tsc && sd->sc.getSCE(SC_SPIRIT) && sd->sc.getSCE(SC_SPIRIT)->val2 == SL_SAGE && status_isimmune(bl) && !tsc->getSCE(SC_HERMODE) && rnd()%100 < 70 || status_isimmune(bl) && !(sd && tsc && sd->sc.getSCE(SC_SPIRIT) && sd->sc.getSCE(SC_SPIRIT)->val2 == SL_SAGE) ){ if (sd) clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0); break; so this code doesnt have any errors or warning i compiled perfectly i just wanna share this to those who are using latest git of rathena working as of 4/30/2023 git 84bf6b8 dont know where to post this so i post it here in src support thread so here is the complete details in skill.cpp find this struct status_change_entry *tsce; and insert this below just remove the "+" sign + struct status_change *sc = status_get_sc(src); then look for this case SA_DISPELL: Find this line if(status_isimmune(bl)) Change to this if(sd && tsc && sd->sc.getSCE(SC_SPIRIT) && sd->sc.getSCE(SC_SPIRIT)->val2 == SL_SAGE && status_isimmune(bl) && !tsc->getSCE(SC_HERMODE) && rnd()%100 < 70 || status_isimmune(bl) && !(sd && tsc && sd->sc.getSCE(SC_SPIRIT) && sd->sc.getSCE(SC_SPIRIT)->val2 == SL_SAGE) ){ if (sd) clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0); break; then recompile i hope this can help PS: just move my post to the correct thread if i posted in the incorrect one thanks Ymir's Ragnarok Test 2023-04-30 01-19-47.mp4 dont for get to "upvote" if its helps thank you
  17. so i tried to increase the inventory capacity i did diff like 200 cap it shows however it stills carry 100/100 items doesnt exceed to or reach even 101 ive checked src file i dunno what to edit there can i anyone help me? PS: this is the mmo.hpp #if PACKETVER_MAIN_NUM >= 20190522 || PACKETVER_RE_NUM >= 20190508 || PACKETVER_ZERO_NUM >= 20190605 #define MAX_HOTKEYS_DB ((MAX_HOTKEYS) * 2) #else #define MAX_HOTKEYS_DB MAX_HOTKEYS #endif #define MAX_MAP_PER_SERVER 1500 /// Maximum amount of maps available on a server #ifndef INVENTORY_BASE_SIZE #define INVENTORY_BASE_SIZE 150 // Amount of inventory slots each player has #endif #ifndef INVENTORY_EXPANSION_SIZE #if PACKETVER_MAIN_NUM >= 20181031 || PACKETVER_RE_NUM >= 20181031 || PACKETVER_ZERO_NUM >= 20181114 #define INVENTORY_EXPANSION_SIZE 100 // Amount of additional inventory slots a player can have #else #define INVENTORY_EXPANSION_SIZE 0 #endif #endif #ifndef MAX_INVENTORY #define MAX_INVENTORY ( INVENTORY_BASE_SIZE + INVENTORY_EXPANSION_SIZE ) // Maximum items in player inventory (in total) #else #if MAX_INVENTORY < ( INVENTORY_BASE_SIZE + INVENTORY_EXPANSION_SIZE ) #error Your custom MAX_INVENTORY define is too low #endif #endif i tried 150 still cant thanks
  18. i tried to look for a solution regarding this problem seems i can find any tried to copy what in zack file still error any other solution? error in ET instance and Nydhoggur PS: i tried this one still have the same error i did diff my client whit those lub files stil have the same problem thanks in advance
  19. is there a way like to remove the defense bonus when refining an item i tried to check the refine_db.yml and remove the bonus line still got like 1 def bonus for +1 thanks in advance
  20. i see thats why coz im using 20211117 client i dunno if 2022 clients are stable
  21. as the title says so i tried to have like an item link in the description it self <ITEM>Red Potion<INFO>501</INFO></ITEM> like that when i click the link client close what seems to be the problem?
  22. did you @changesex with a dancer or bard class in the account? if yes then that might be the problem what i do on that issue is delete the whole account and create one
  23. is there like source mod or script that works like "reboud shield" of imperial guard which reduce damage receive from devotion? will it be like item bonus script? thanks for answer
×
×
  • Create New...