Jump to content

Easycore

Members
  • Posts

    220
  • Joined

  • Days Won

    33

Community Answers

  1. Easycore's post in REQUEST : Plagiarism / Copy Cat NPC. was marked as the answer   
    I have made my own Plagiarism NPC last week. Hope it helps you.
    //===== rAthena Script ======================================= //= Plagiarism NPC //===== By: ================================================== //= Easycore //===== Last Updated: ======================================== //= 20210905 //===== Description: ========================================= //= Simple Plagiarism Skill //= Require 'getskillname' script command: //= https://rathena.org/board/files/file/4307-script-command-getskillname/ //============================================================ prontera,150,150,3 script Plagiarism NPC 747,{ mes "[ ^FF0000Plagiarism Master^000000 ]"; if (.plag_skill && !getskilllv("RG_PLAGIARISM")) { mes "You must have Plagiarism learned."; close; } mes "Heya ^FFA500"+strcharinfo(0)+"^000000!"; mes "Do you want to copy a skill?"; if (.zeny) mes "My service costs ^FF0000"+.zeny+" Zeny^000000."; if (select("~ Proceed","Cancel") == 2) close; if (.zeny > 0 && Zeny < .zeny) { message(strcharinfo(0),"Not enough Zeny."); close; } .@menu$ = ""; .@f = getarraysize(.SkillID); for(.@i = 0; .@i < .@f; .@i++) .@menu$ += getskillname(.SkillID[.@i])+(.@i==.@f?"":":"); .@s = select(.@menu$) - 1; close2; if (.zeny > 0 && Zeny < .zeny) end; if (.zeny > 0) Zeny -= .zeny; npcskill .SkillID[.@s],.SkillLV[.@s],20,200; sleep2 1500; unitwarp getnpcid(0),.map$,.x,.y; end; OnInit: //Default NPC Data Values setunitdata(getnpcid(0),UNPC_DEX,300); setunitdata(getnpcid(0),UNPC_ATKMIN,100); setunitdata(getnpcid(0),UNPC_ATKMAX,200); getmapxy(.map$,.x,.y,BL_NPC); //Configuration //Zeny required? Set 0 to disable it .zeny = 25000; //Must Plagiarism skil be learned? (1. Yes | 0. No) .plag_skill = 1; //Skill ID Array setarray .SkillID[0],263,13, 7,14,19,20,21,83,84,85,86,89,90,91,421,534,536,537,540,542; //Skill LV Array setarray .SkillLV[0], 10,10,10,10,10,10,10,10,10,10,10,10,10,5, 7, 10, 5, 10, 19, 5; end; } PS: It requires 'getskillname' script command to work.
     
  2. Easycore's post in how to make monster size with spawn was marked as the answer   
    prontera,0,0,0,0 monster Big Poring 1002,1,7200000,3600000,"",2  
  3. Easycore's post in Drop rates apparently double was marked as the answer   
    https://github.com/rathena/rathena/blob/55ca79961da77d1ba6c244393de0101709e7bc0d/conf/battle/gm.conf#L42
  4. Easycore's post in Drop rates apparently double was marked as the answer   
    This is caused by #RENEWAL_DROP and actually I don't know how it works.
    Your emulator has this setting enabled.
  5. Easycore's post in How to remove a Quest was marked as the answer   
    Depending on your client:
    RecommendedQuestInfoList.lub RecommendedQuestInfoList_Sakray.lub RecommendedQuestInfoList_True.lub You can remove it in one of those files located in 'RO\System\'.
  6. Easycore's post in NPC Refine was marked as the answer   
    https://github.com/rathena/rathena/blob/master/npc/re/merchants/ticket_refiner.txt
  7. Easycore's post in Random Cards with image card was marked as the answer   
    You can use cutin script.
    *cutin "<filename>",<position>; This command will display a picture, usually an NPC illustration, also called cutin, for the currently attached client. The position parameter determines the placement of the illustration and takes following values: 0 bottom left corner 1 bottom middle 2 bottom right corner 3 middle of screen in a movable window with an empty title bar 4 middle of screen without the window header, but still movable 255 clear all displayed cutins But you also need to copy all the BMP files located in data.grf from 'texture\À¯ÀúÀÎÅÍÆäÀ̽º\cardbmp\' to 'texture\À¯ÀúÀÎÅÍÆäÀ̽º\illust\'.
  8. Easycore's post in How to write this item code. was marked as the answer   
    autobonus "{ bonus2 bHPRegenRate,500,400; }",20,9200,BF_MAGIC;  
  9. Easycore's post in Slight Heal change was marked as the answer   
    https://github.com/rathena/rathena/blob/master/src/map/skill.cpp#L6274
    Add:
    status_percent_heal(bl, x, 0);
    Replace X by the percentage.
  10. Easycore's post in Editing Attendance was marked as the answer   
    First message:
    https://github.com/rathena/rathena/blob/master/conf/char_athena.conf#L15
    Second message:
    https://github.com/zackdreaver/ROenglishRE/blob/master/Ragnarok/data/msgstringtable.txt#L3470
  11. Easycore's post in Use atcommand in Skill SRC was marked as the answer   
    is_atcommand(fd, sd, "@command", 1);
  12. Easycore's post in How can I change Steel Crow passive bonus? was marked as the answer   
    md.damage = (sstatus->dex / 10 + sstatus->int_ / 2 + skill * 3 + 40) * 2; skill is equal to Steel Crow level.
  13. Easycore's post in bonus custom hat was marked as the answer   
    You can use this:
    bonus2 bExpAddClass,Class_All,100;  
  14. Easycore's post in Buffing Arc Bishop Skills was marked as the answer   
    Adoramus:
    https://github.com/rathena/rathena/blob/master/src/map/battle.c#L5897
    Judex:
    https://github.com/rathena/rathena/blob/master/src/map/battle.c#L5893
  15. Easycore's post in Isequipped (<Weapon Category>) was marked as the answer   
    Well... the problem was that number of "getequipid" was wrong, the correct is 11.
×
×
  • Create New...