Jump to content

iamkevin

Members
  • Posts

    101
  • Joined

  • Last visited

Everything posted by iamkevin

  1. I modified my server to allow single strip to be used on player under FCP buff, i also enabled FCP to be used on players with Strip status to remove the strip status using this script: // Full Chemical Protection case CR_FULLPROTECTION: /* 3-2-17 Modified to Enable FCP even without EQ { unsigned int equip[] = {EQP_WEAPON, EQP_SHIELD, EQP_ARMOR, EQP_HEAD_TOP}; int i_eqp, s = 0, skilltime = skill_get_time(skill_id,skill_lv); for (i_eqp = 0; i_eqp < 4; i_eqp++) { if( bl->type != BL_PC || ( dstsd && pc_checkequip(dstsd,equip[i_eqp]) < 0 ) ) continue; sc_start(src,bl,(sc_type)(SC_CP_WEAPON + i_eqp),100,skill_lv,skilltime); s++; } Replaced with: */ { // unsigned int equip[] = {EQP_WEAPON, EQP_SHIELD, EQP_ARMOR, EQP_HEAD_TOP}; int i_eqp, s = 0, skilltime = skill_get_time(skill_id,skill_lv); for (i_eqp = 0; i_eqp < 4; i_eqp++) { if( bl->type != BL_PC ) continue; if(tsc->data[SC_STRIPWEAPON + i_eqp]) status_change_end(bl, (sc_type)(SC_STRIPWEAPON + i_eqp), -1 ); sc_start(src,bl,(sc_type)(SC_CP_WEAPON + i_eqp),100,skill_lv,skilltime); s++; } //3-2-17 if( sd && !s ){ clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0); map_freeblock_unlock(); // Don't consume item requirements return 0; } clif_skill_nodamage(src,bl,skill_id,skill_lv,1); } break; the problem is: - I cant re - equip any item once my strip status is replaced by FCP status how to fix this? thanks!
  2. Solved! i forgot to make a swapfile! thanks for reminding me of RAM XD
  3. I think i forgot to make a swapfile for my vps..
  4. I just bought a 512mb from digitalocean, this server im using is just for test server only i dont have players for it
  5. [Status]: Map-server connected to char-server 'Server'. [Status]: Map Server is now online. [Info]: Received Fame List of '0' characters. [Status]: Map-server #0 has disconnected. after i set my server online this is what happens.. im using the latest rathena git
  6. Bump? any script where we can make use of existing sql points to be used in buying to a shop? Bump any idea on how to make a shop for this sql querries? help
  7. not working, i also modified this: function updatePoints { set .@account_id,getarg(0); set .@usedPoints,getarg(1); -- query_sql("UPDATE `guild_points` SET points=(woe_points-"+.@usedPoints+") WHERE guild_id='"+.@guild_id+"'"); ++ query_sql("UPDATE `guild` SET points=(woe_points-"+.@usedPoints+") WHERE guild_id='"+.@guild_id+"'"); return; } function getPoints { set .@account_id,getarg(0); -- query_sql("SELECT `woe_points` FROM `guild_points` WHERE guild_id="+.@guild_id+" LIMIT 1",.@points); ++ query_sql("SELECT `woe_points` FROM `guild` WHERE guild_id="+.@guild_id+" LIMIT 1",.@points); if(getarraysize(.@points)==0) I was able to run the script without errors.. and i changed the items and categories but it just shows Blank in the category selection same as through when checking available points.. PS: i am using same script as for vote4points. thank you for the effort.. lets fix this XD none at this moment yet. still waiting for someone to help me with this XD
  8. Thanks for your reply but will this work since it is an sql added points? How to make a sql querry shop for this WoE Point System to be used in purchasing items? thank you
  9. Bump for this topic, how can we make a shop and appoint only the guild master to use the points and buy items in the shop?
  10. im using r22356 and my players is asking me why does the Star Gladiator skill which is Hatred cant be used in Emperium? i believe you can use Hatred on Emperium but in my server it always shoes Skill Failed. i tested it, memoed the place and still cant do hatred on emperium// any help with this? thank you in advance
  11. How to make this make a player need to pay using an item to summon a monster? How to set the time per mob? for example you want to summon lhz monster but you need to wait 4hours while the others be like 60mins, 1 and half hour, and 2 hour, etc? can be like this? thank you setarray .@MVP[0],1511,1785,1039,1874,2068,2253,1272,1719,1046,1389,1112,1115,1418; setarray .@MVPtimeMinute,60,50,40,30,20; setarray .@MBSS[0],1630; setarray .@MBSStimeMinute,60,50,40,30,20;
  12. the code which i inserted is now included. thank you
  13. Hi rAthena, I made some tweak in my pc.c to enable the use of Parrying Skill when under the soul link. i duplicated the script for the soul link of barddancer in the pc_calc_skilltree, and then made a modified script for my SL == STAR and successfully it works. This is the code which I duplicated and inserted in my PC.C for( i = 0; i < MAX_SKILL; i++ ) { uint16 skill_id = 0; // Restore original level of skills after deleting earned skills. if( sd->status.skill[i].flag != SKILL_FLAG_PERMANENT && sd->status.skill[i].flag != SKILL_FLAG_PERM_GRANTED && sd->status.skill[i].flag != SKILL_FLAG_PLAGIARIZED ) { sd->status.skill[i].lv = (sd->status.skill[i].flag == SKILL_FLAG_TEMPORARY) ? 0 : sd->status.skill[i].flag - SKILL_FLAG_REPLACED_LV_0; sd->status.skill[i].flag = SKILL_FLAG_PERMANENT; } //Enable Bard/Dancer spirit linked skills. if (!(skill_id = skill_idx2id(i)) || skill_id < DC_HUMMING || skill_id > DC_SERVICEFORYOU) continue; if( &sd->sc && sd->sc.count && sd->sc.data[SC_SPIRIT] && sd->sc.data[SC_SPIRIT]->val2 == SL_BARDDANCER ) { //Link Dancer skills to bard. if( sd->status.sex ) { if( sd->status.skill[i-8].lv < 10 ) continue; sd->status.skill[i].id = skill_id; sd->status.skill[i].lv = sd->status.skill[i-8].lv; // Set the level to the same as the linking skill sd->status.skill[i].flag = SKILL_FLAG_TEMPORARY; // Tag it as a non-savable, non-uppable, bonus skill } //Link Bard skills to dancer. else { if( sd->status.skill[i].lv < 10 ) continue; sd->status.skill[i-8].id = skill_id - 8; sd->status.skill[i-8].lv = sd->status.skill[i].lv; // Set the level to the same as the linking skill sd->status.skill[i-8].flag = SKILL_FLAG_TEMPORARY; // Tag it as a non-savable, non-uppable, bonus skill } } } + for( i = 0; i < MAX_SKILL; i++ ) { + uint16 skill_id = 0; + + if( sd->status.skill[i].flag != SKILL_FLAG_PERMANENT && sd->status.skill[i].flag != SKILL_FLAG_PERM_GRANTED && sd->status.skill[i].flag != SKILL_FLAG_PLAGIARIZED ) { + sd->status.skill[i].lv = (sd->status.skill[i].flag == SKILL_FLAG_TEMPORARY) ? 0 : sd->status.skill[i].flag - SKILL_FLAG_REPLACED_LV_0; + sd->status.skill[i].flag = SKILL_FLAG_PERMANENT; + } + + if (!(skill_id = skill_idx2id(i)) || skill_id < LK_PARRYING || skill_id > LK_PARRYING) + continue; + + if( &sd->sc && sd->sc.count && sd->sc.data[SC_SPIRIT] && sd->sc.data[SC_SPIRIT]->val2 == SL_STAR ) { + //enable LK_Parrying to SG class + sd->status.skill[i].id = skill_id; + sd->status.skill[i].lv = 10; + sd->status.skill[i].flag = SKILL_FLAG_TEMPORARY; // Tag it as a non-savable, non-uppable, bonus skill + } + } the problem now is that: 1. the union skill and some other skill of my SG doesnt save meaning when the player logs out the skills goes back to no skillpoints. 2. The bonus skills given to bard or dancer when soul linked is present in the Misc tab but cant be used or learned.
  14. I am using that script sir the latest one.. the refiner works fine but the card remover doesnt
  15. Hi i am currently testing some basic npc's in rA and i found a bug in this NPC it doesnt show the correct value of the item this is my screenshot and this is the npc script, i didnt do anything //===== rAthena Script ======================================= //= Card Removal NPC //===== By: ================================================== //= TyrNemesis^ //===== Current Version: ===================================== //= 1.2a //===== Compatible With: ===================================== //= rAthena Project //===== Description: ========================================= //= Removes cards from equipped items. //===== Additional Comments: ================================= //= 1.0 First version. [TyrNemesis^] //= 1.2 Optimized and fixed getequipname menu. [Kisuka] //= 1.2a Added 'disable_items' command. [Euphy] //============================================================ prt_in,28,73,4 script Wise Old Woman#eAcustom 78,{ set .zenycost,200000; // base cost of the card remover services (in Zeny) set .percardcost,25000; // cost per card of the card remover services (in Zeny) set .faildestroy,1; // should the card remover have a chance of failure that destroys items? (1=yes, 0=no) disable_items; mes "[Wise Old Woman]"; mes "Good day, young one. I have the power to remove cards that you have compounded onto your equipment. Does this idea please you?"; next; switch(select("Yes, it does.:What do you charge?:No thanks.")) { case 1: mes "[Wise Old Woman]"; mes "Very well. Which item shall I examine for you?"; next; setarray .@indices[1], EQI_HEAD_TOP, EQI_ARMOR, EQI_HAND_L, EQI_HAND_R, EQI_GARMENT, EQI_SHOES, EQI_ACC_L, EQI_ACC_R, EQI_HEAD_MID, EQI_HEAD_LOW; for( set .@i,1; .@i <= 10; set .@i,.@i+1 ) { if( getequipisequiped(.@indices[.@i]) ) set .@menu$, .@menu$ + F_getpositionname(.@indices[.@i]) + "-[" + getequipname(.@indices[.@i]) + "]"; set .@menu$, .@menu$ + ":"; } set .@part, .@indices[ select(.@menu$) ]; if(!getequipisequiped(.@part)) { mes "[Wise Old Woman]"; mes "Young one... Your not wearing anything there that I can remove cards from."; close; } if(getequipcardcnt(.@part) == 0) { mes "[Wise Old Woman]"; mes "Young one... There are no cards compounded on this item. I can do nothing with it, I'm afraid."; close; } set .@cardcount,getequipcardcnt(.@part); if (!checkweight(1202,(.@cardcount+1))) { mes "^3355FFJust a minute!"; mes "I can't offer any of my"; mes "services to you because"; mes "you're carrying too much"; mes "stuff. Put your extra items in"; mes "Kafra Storage and come again~"; close; } mes "[Wise Old Woman]"; mes "This item has " + .@cardcount + " cards compounded on it. To perform my magic, I will need " + (.zenycost+(.@cardcount * .percardcost)) + " zeny, a ^0000FFStar Crumb^000000, and a ^0000FFYellow Gemstone^000000."; next; if(select("Very well. Do it.:Nevermind.") == 2) { mes "[Wise Old Woman]"; mes "Very well. Return at once if you seek my services."; close; } if((zeny < (.zenycost+(.@cardcount * .percardcost))) || (countitem(1000) < 1) || (countitem(715) < 1)) { mes "[Wise Old Woman]"; mes "You do not have all the items I require to work my magic, child. Come again when you do."; close; } mes "[Wise Old Woman]"; mes "Before I begin, I must warn you--I may fail. If I do, I may destroy the cards, the item, or both. I do not give refunds. That being said, which is more important to you: The cards, or the item?"; next; switch(select("I changed my mind about this.:The item.:The cards.")) { case 1: mes "[Wise Old Woman]"; mes "Very well. Return at once if you seek my services."; close; case 2: set .@failtype,1; break; case 3: set .@failtype,2; } mes "[Wise Old Woman]"; mes "Very well. I shall begin."; set Zeny, Zeny - (.zenycost+(.@cardcount * .percardcost)); delitem 1000,1; //Star_Crumb delitem 715,1; //Yellow_Gemstone // Replace the constants in the next 3 lines with failure chance values defined in refine_db.txt // First value = Total failure chance (item and cards destroyed) // Second value = Partial failure chance (one or the other is destroyed, player decides which one is safe) // Third value = Harmless failure chance (all that's lost is your investment) set .@failchance,rand(100); if (.faildestroy==1) { if(.@failchance < 2) { next; failedremovecards .@part,0; mes "[Wise Old Woman]"; mes "The process was a total failure. I am afraid the item and the cards were destroyed."; close; } if(.@failchance < 8) { if (.@failtype == 1) { next; failedremovecards .@part,1; mes "[Wise Old Woman]"; mes "While I have managed to remove the cards from the item, they were destroyed in the process. The item, however, is okay."; close; } if (.@failtype == 2) { next; failedremovecards .@part,2; mes "[Wise Old Woman]"; mes "Most unfortunate. I succeeded at removing the cards, but the item itself was destroyed in the process."; close; } } } if(.@failchance < 10) { next; failedremovecards .@part,3; mes "[Wise Old Woman]"; mes "I have failed to remove the cards. Luckily, however, both the item and the cards are still okay."; close; } next; successremovecards .@part; mes "[Wise Old Woman]"; mes "The process was a success. Here are your cards and your item. Farewell."; close; case 2: mes "[Wise Old Woman]"; mes "I charge a flat fee of "+callfunc("F_InsertComma",.zenycost)+" zeny, plus "+callfunc("F_InsertComma",.percardcost)+" zeny for each card I remove from the item. In addition, I need a star crumb and a yellow gemstone to work my magic."; close; case 3: mes "[Wise Old Woman]"; mes "Very well. Return at once if you seek my services."; close; } }
  16. - script Hourly Active -1,{ OnUpdate: if( checkvending() == 0 && checkchatting() == 1 ){ set @Minute,@Minute + 1; if( @Minute % 60 == 0 ){ set #KAFRAPOINTS, #KAFRAPOINTS + 1; dispbottom "You've been Active for 60 minutes, +1 Kafra point(s) in your Balance."; set @Hour,@Hour + 1; if( @Hour % 7 == 0 ){ set #KAFRAPOINTS, #KAFRAPOINTS + 10; dispbottom "You've been Actively Online for 7 Hours, +10 Kafra point(s) in your Balance."; } } } OnPCLoginEvent: addtimer 60000,strnpcinfo(0)+"::OnUpdate"; end; } You can use this script, i dont know how to manipulate sql XD
  17. I cant vend - now i cant vend without errors. I found oht why it is behaving like that. the only reason i cant vend is that, you should pick a currency to vend first and then you can now set up your shop. thanks for this. im usingrevision 22356
  18. sir i am having problem with this again: skill.c: In function ‘skill_castend_nodamage_id’: skill.c:7318:17: warning: declaration of ‘i’ shadows a previous local [-Wshadow] int c = 0, i, d = 0; ^ skill.c:5856:6: warning: shadowed declaration is here [-Wshadow] int i = 0; ^
  19. I always encounter this kind of WARNING when i recompile my src. battle.c:4362:22: warning: unused variable ‘tstatus’ [-Wunused-variable] struct status_data *tstatus = status_get_status_data(target); ^ battle.c: In function ‘battle_calc_weapon_final_atk_modifiers’: battle.c:4965:27: warning: unused variable ‘sd’ [-Wunused-variable] struct map_session_data *sd = BL_CAST(BL_PC, src); how to remove this warning? and may i know what might be the possible impact of this warning in to my server? thank you!
  20. Any update on this? i am having error with the 17102.diff i am using the latest git In file included from script.c:22164:0: ../custom/script.inc: In function ‘buildin_setbgid’: ../custom/script.inc:41:4: error: too few arguments to function ‘map_nick2sd’ sd = map_nick2sd( script_getstr(st,3) ); ^ In file included from script.c:31:0: map.h:856:27: note: declared here struct map_session_data * map_nick2sd(const char* nick, bool allow_partial); ^ make[1]: *** [obj/script.o] Error 1
  21. Hi guys.. can everyone help me with my idea? i would like to request a modification with Storm Gust? when storm gust is casted, every player who took a damage from storm gust skill will be slowed like having under the spell of quagmire. thank you in advance pro coder!
  22. Hi guys! may i request a simple scr logo for my server? olympus based theme. a lettering with OlympusRO will do! thank you!!!
×
×
  • Create New...