Jump to content

Cephaler

Members
  • Posts

    132
  • Joined

  • Last visited

Everything posted by Cephaler

  1. It worked like a charm! Thank you ( i wasted hours trying to figure out haha )
  2. So, this is my sprite, frame by frame: After I use SPRT conview to turn BMP into SPR this happens: As you guys can see some sprites get cut, some sprites ' join others' , slice others.. it's really annoying ;-( Is there any way to fix that? What could possibly be causing it?
  3. groups.conf: permissions: { can_trade: false
  4. Your viewid is probably of a flower.
  5. Right, what IP did you put under address? if it's 127.0.01 it won't allow your friends to connect but you
  6. Guys, Its my first attempt trying to make a custom mob. I got the image, cut every single piece of it, and remove it's background ( transparent ) using GIMP. However, when I open SPRT viewer to convert etc, it gives me an error: --------------------------- Error --------------------------- Bitmaps must be uncompressed, in 256 color format --------------------------- OK --------------------------- I followed this tutorial here: http://rathena.org/b...e-and-act-file/ lapras1.bmp lapras2.bmp error 1.bmp
  7. It is giving you the error info on the screen itself. The sprite ( .act ) is missing.
  8. You have to change 127 to your IP if you want friends to connect
  9. 0% Means there is no effect, it is the normal damage. If you want to INCREASE the power, you have to give a number above 0 like: 10% - 20% 30% etc ( 10% more damage, 20% more damage and so on ). If you want to REDUCE the power you need to give a negative number like -10%, -20% etc.
  10. I got everything working brilliantly! and also learned a lot from you guys. Thank you!! Ocean I did want to know how to do ia via skilltree as well for future references, I tested what you suggested and it also worked which gave me more ideas for future scripts. Thank you so much for your time and help!!
  11. Another question: Is there a way to add to this npc a possibility of removing ( ' clearing ') both skills: from plagiarism and from reproduce? ( so that we can copy everything again ) Mellina,47,83,4 script Stalker 747,{ if(BaseJob != Job_Rogue){mes "Only Rogues, Stalkers, and ShadowChaser's may use this NPC."; close;} mes "Select which skill you want to be copy, your existing one will be overwritten."; next; set .@menu, select(.menu$) -1; if ( getskilllv(.skill$[.@menu * 3 +1]) ) { mes "you already copied that skill"; close; } mes "Are you sure you want to copy "+ .skill$[.@menu * 3] +"?"; mes "You'll need to re-log for it to take effect."; next; if ( select ( "Yes", "No" ) == 2 ) close; set CLONE_SKILL, .skill$[.@menu * 3 +1]; set CLONE_SKILL_LV, .skill$[.@menu * 3 +2]; atcommand "@kick "+ strcharinfo(0); end; OnInit: setarray .skill$, "Jupitel Thunder", 84, 10, "Storm Gust", 89, 10, "Lord of Vermillion", 85, 10, "Arrow Repel", 148, 10, "Acid Demonstration", 490, 10, "Spear Of ice", 537, 10, "Wind Blade", 540, 10, "Sacrifice", 368, 5, "Bowling Bash", 62, 10, "Pressure", 367, 5; set .@skillsize, getarraysize(.skill$); for ( set .@i,0; .@i < .@skillsize; set .@i, .@i +3 ) set .menu$, .menu$ + .skill$[.@i] +":"; end; } Like from emistry script, if we ' re click ' it erases it and we can select a new one. Remove_Skill: skill StalkerSkill,0,0; set StalkerSkill,0; I tried set clone skill 0 0 but didn't work ;-(
  12. Very interesting, learned more today! I managed to get it to work by reading eathena an dhere, but, in this situation of skill tree do i have to restart the server?
  13. Thank you for your advices/help I'll try to apply and if i have any errors/problems i'll cry for help again.. And you're right, I'm really willing to learn more and more You got me very very curious about the skill tree way, would you elaborate a bit more? How to make it ' impossible ' and how to link it to the npc?
  14. If you're receiving patch errors you can only do it manually. It actually requires no knowledge of the source code but a knowledge of copy/pasting haha. I have 0 knowledge as well and have applied some patches manually and worked fine. Just remove/overwrite what says " - " and add the patch where it says " + ".. If there's nothing to be removed just copied/pasted then it's even easier! About both patches: I only applied the 2.0 and it worked fine.
  15. So I have to add this: BUILDIN_FUNC(setcloneskill) { TBL_PC *sd; int skillid = script_getnum( st, 2 ); int skilllvl = script_getnum( st, 3 ); sd = script_rid2sd(st); if ( sd == NULL || skillid == 1 ) return 0; // basic skill MUST not reset if ( skillid == 0 || skilllvl == 0 ) { sd->status.skill[sd->cloneskill_id].id = 0; sd->status.skill[sd->cloneskill_id].lv = 0; sd->status.skill[sd->cloneskill_id].flag = 0; pc_setglobalreg( sd, "CLONE_SKILL", 0 ); pc_setglobalreg( sd, "CLONE_SKILL_LV", 0 ); clif_deleteskill(sd,sd->cloneskill_id); sd->cloneskill_id = 0; return 0; } if ( sd->status.skill[sd->cloneskill_id].id > 0 ) clif_deleteskill( sd, sd->cloneskill_id ); sd->cloneskill_id = skillid; sd->status.skill[sd->cloneskill_id].id = skillid; sd->status.skill[sd->cloneskill_id].lv = skilllvl; sd->status.skill[sd->cloneskill_id].flag = 13; pc_setglobalreg( sd, "CLONE_SKILL", skillid ); pc_setglobalreg( sd, "CLONE_SKILL_LV", skilllvl ); clif_addskill( sd, skillid ); return 0; } To script.c ( anywhere? ) Then I use this NPC: prontera,160,180,5 script CopyCat NPC 123,{ set .@price,50000; //<--- Price for each skill. setarray .@skilllist[0],14,19,20; //<--- Skill ID's Add more as needed. setarray .@skillname$[0],"Cold Bolt","Fire Bolt","Lightning Bolt"; //<--- Skill Names (Need to store them in an array because, there is no, getskillname command T.T) setarray .@skill_lvl[0],10,10,10; //<--- Level for each skill. if(BaseJob != Job_Rogue){mes "Only Rogues, Stalkers, and ShadowChaser's may use this NPC."; close;} mes "Which skill would you like to learn?"; mes "Please keep in mind, that each skill will cost 50,000zeny."; for(set .@i,0; .@i<getarraysize(.@skillist); set .@i,.@i+1) {set .@menu$,.@menu$+.@skillname$[.@i]+":";} menu .@menu$,-,"Cancel",iCancel; set .@menu,@menu-1; mes "Are you sure you want: "+.@skillname$[(@menu-1)]+" ?"; menu "Yes",-,"No",iCancel; if(zeny<.@price){next; mes "You don't have enough zeny. Each skill costs 50,000zeny"; close;} set zeny,zeny-.@price; setcloneskill .@skilllist[.@menu],.@skill_lvl[.@menu]; next; mes "All done. Come again."; close; iCancel: close; } Right? But, where do I put this: [/background][/font][/color] [color=#465584][font=Courier,]BUILDIN_DEF(setcloneskill,"ii"), Sorry I'm a newbie in SRC/stuff edit ;-(
  16. Interesting idea except I have no clue how to even begin to do it hahaha Also the infiniteloop one sounds easier than just adding a bunch of skills to the skill three of stalkers no?
  17. Hey guys, once again I need your godlike scripting skills. So, I am using this STALKER NPC ( which gives stalker the skill so it saves time having to dual log/ask someone to hit them ). However, whenever I change my equip, the skill disappears. No errors on map server or anything. If I relog, the skill returns. ( This bug is only in case I use the NPC, If I copy it normally via reproduce/plagiarism it stays normally even if I change my equip ). Here is the script: Mellina,47,83,4 script Stalker 747,{ if ( StalkerSkill != 0 )goto Remove_Skill; if ( getskilllv(225) == 0 ) goto End_Talk; if ( getskilllv(225) > 0 ) goto Start_Talk; Remove_Skill: skill StalkerSkill,0,0; set StalkerSkill,0; dispbottom "[ Stalker NPC ] : Previous Skills have been removed.."; dispbottom "[ Stalker NPC ] : Skill Icon remained. But without any effect"; end; End_Talk: mes "[ ^FF0000Stalker NPC^000000 ]"; mes "Please make sure you have the skills required to copy skills."; close; // -- Edit Format : "<Skill Name>", for each case at a new line in order for a Better viewing.. Start_Talk: mes "[ ^FF0000Stalker NPC^000000 ]"; mes "Choose which skill you want to copy..It costs however 500.000 to give you a skill."; next; switch(select("Jupitel Thunder", // Case 1: "Storm Gust", // Case 2: "Lord of Vermillion", // Case 3: "Arrow Repel", // Case 4: "Acid Demonstration", // Case 5: "Spear of Ice", // Case 6: "Wind Blade", // Case 7: "Sacrifice", // Case 8: "Bowling Bash", // Case 9: "Pressure" // Case 10: )){ // -- Edit Format : callsub S_CopySkill,<Skill ID>,<Skill Level 10>,<Skill Cost>; // -- Leave the Level as 10 better.because after they relog ..they will auto get level 10 Skills. // -- I think can add up to 128 Case. Which is 128 Skills choose-able~ // -- If you want it to announce then add "announce" at the back of <skill cost> like Case 10. case 1: callsub S_CopySkill,84,10,500000; // Jupitel Thunder case 2: callsub S_CopySkill,89,getskilllv(225),500000; // Storm Gust case 3: callsub S_CopySkill,85,10,500000; // Lord of Vermillion case 4: callsub S_CopySkill,148,10,500000; // Arrow Repel case 5: callsub S_CopySkill,490,10,500000; // Acid Demonstration case 6: callsub S_CopySkill,537,10,500000; // Spear of Ice case 7: callsub S_CopySkill,540,10,500000; // Wind Blade case 8: callsub S_CopySkill,368,5,500000; // Sacrifice case 9: callsub S_CopySkill,62,10,500000; // Bowling Bash case 10: callsub S_CopySkill,367,5,500000; // Pressure } S_CopySkill: if ( Zeny < getarg(2)){ mes "[ ^FF0000Stalker NPC^000000 ]"; mes "You must have at least "+getarg(2)+" Zeny to get the Skill."; close; } skill getarg(0),getarg(1),0; set Zeny,Zeny-getarg(2); set StalkerSkill,getarg(0); dispbottom "[ Stalker NPC ] : Check Your Skill Tree Now under ' Misc' for the New Skill."; dispbottom "[ Stalker NPC ] : You must be 600/250 for the skill to be preserved or else it will disappear after you use it once."; close; OnPCLoginEvent: if ( StalkerSkill != 0 ){ skill StalkerSkill,getskilllv(225),0; } end; } And here some screens: Note that: 1: The npc works fine without any errors, it gives me the skill. 2: If I change equips, the skill disappears! 3: If I relog, the skill returns. This is a problem because during PVP / WOE / ETC it's not possible to change equips ( ANY equip ) and ruins the entire idea of the npc. I just searched eathena and realized it's @Emistry scripts maybe you can help me ?
  18. It should be on: db/skill_damage_db.txt or: (skill_damage.txt) if not, just create it, edit one skill and use @reloadskilldb to ensure it worked
  19. I just literally, downloaded VEVERYTHING there ( I mean, EVERYTHING lol. )
  20. I fixed number 1 but still stuck on number 2 and 3. 2: Not sure where to lower 3: Not sure what lines to be deleted @Xin thanks for the suggestion
  21. I think he means trap as a verb not really as a ' trap in ragnarok from a sniper for instance ' but if I understand the idea it's to target spider web directly to the player/enemy instead of placing it on the ground, like that ' web ' bathory uses on you and locks you
  22. Following this post as I'm equally interested hehe
×
×
  • Create New...