Jump to content

jutaysxd

Members
  • Posts

    134
  • Joined

  • Last visited

Posts posted by jutaysxd

  1. post-8289-0-25761600-1370816771_thumb.jpg <--- How to fix this

    Client Date = 2010-07-30
    SVN Version= 17348

     

    // This file contains the items sold in the ingame cash shop
    //
    // The structure of the file is
    // type, item ID, price
    //
    // type:
    //    0: New
    //    1: Hot
    //    2: Limited
    //    3: Rental
    //    4: Gear
    //    5: Buff
    //    6: Heal
    //    7: Other
    //
    // price:
    //    price of the defined item in cash points
    
    0,30000,50
    0,30001,50
    0,30002,50
    0,30003,50
    0,30004,50
    0,30087,50
    0,30088,50
    0,30089,50
    0,30090,50
    0,30091,50
    0,30092,50
    0,30077,30
    0,30078,30
    0,30079,30
    0,30080,30
    0,30081,30
    0,30082,30
    0,30083,30
    0,30084,30 

     

     

  2. how to make this script announce after completing the quest

    //===== eAthena Script =======================================
    //= Super Awesome Quest Template
    //===== By: ==================================================
    //= CalciumKid
    //= & Okira
    //===== Current Version: =====================================
    //= 2.0
    //===== Compatible With: =====================================
    //= eAthena 1.0 Final +
    //===== Description: =========================================
    //= Quest Template
    //============================================================
    prontera,147,174,5 script Test 100,{
     //===== Config: ==============================================
     set .npcname$,"[^FF0000 Test ^000000]"; //Change to whatever you want the NPC name to be
     setarray .reqid[1],607,4357,4359; //Item IDs for the items, required for item checks
     setarray .reqn$[1],"Berry","Lordknight Card","Assasin Cross Card"; //These are names of the required items, for the dialogue
     setarray .reqa[1],100,1,1; //These are how many of each item is required
     set .prize,30005; //Change this to the Item ID of the item reward
     set .prizen$,"Fusion Valkyrie Helm"; //Change this to the name of your reward
     set .prizea,1; //Change this to the amount of the prize item
     set .zeny,20000000; //Amount of zeny for quest (set to 0 to disable)
    L_QUEST:
    mes .npcname$;
    mes "Hah! Hello there "+strcharinfo(0);
    next;
    mes .npcname$;
    mes "I don't get many visitors, so I assume you're after my legendary ^FF0000"+.prizen$+"^000000?";
    menu "Of course",-,"No way",L_EXIT;
    next;
    mes .npcname$;
    mes "Great! I love business. I can make you a ^FF0000"+.prizen$+"^000000, but only if you bring me the materials required.";
    next;
    mes .npcname$;
    mes "Would you like me to make one for you?";
    menu "Yes",-,"No",L_EXIT;
     next;
     mes .npcname$;
     mes "I'll need the following:";
     for (set .@x,1; .@x < getarraysize(.reqid); set .@x,.@x + 1) {
    mes .reqa[.@x]+" ^FF0000"+.reqn$[.@x]+"^000000";
     }
     if (.zeny > 0) {
    mes .zeny+" ^FF0000Zeny^000000";
     }
     next;
     mes .npcname$;
     mes "Do you have those items?";
     menu "Yes",-,"No",L_EXIT;
      next;
      mes .npcname$;
      for (set .@x,1; .@x < getarraysize(.reqid); set .@x,.@x + 1) {
    if(countitem(.reqid[.@x]) >= .reqa[.@x]) {mes "You've got enough ^00FF00"+.reqn$[.@x]+"^000000";} else {mes "You need more ^FF0000"+.reqn$[.@x]+"^000000";}
      }
      if (.zeny > 0) {
    if (Zeny < .zeny) {mes "You're missing ^FF0000Zeny^000000";}
    else {mes "You've got enough ^00FF00Zeny^000000";}
      }
      next;
      mes .npcname$;
      mes "Would you like to complete the quest?";
      menu "Yes please!",-,"No Thanks",L_EXIT;
      next;
      for (set .@x,1; .@x < getarraysize(.reqid); set .@x,.@x + 1) {
    if(countitem(.reqid[.@x]) < .reqa[.@x]) goto L_EXIT2;
      }
      if (.zeny > 0) {
    if (Zeny < .zeny) goto L_EXIT2;
      }
      mes .npcname$;
      mes "Brilliant! Fantastic! Here you go.";
      for (set .@x,1; .@x < getarraysize(.reqid); set .@x,.@x + 1) {
    delitem .reqid[.@x],.reqa[.@x];
      }
      if (.zeny > 0) {
    set Zeny, Zeny - .zeny;
      }
      goto L_FINAL2;
      close;
    L_EXIT:
      next;
      mes .npcname$;
      mes "Eh. I don't need you either. Bah!";
      close;
    L_EXIT2:
      next;
      mes .npcname$;
      mes "I'm sorry, you don't have enough!";
      close;
    L_FINAL2:
      next;
      mes .npcname$;
      mes "Brilliant! Fantastic! Here you go.";
      getitem .prize,1;
      close;
    }
    

    [solved]

  3. on your trunk/src/map/skill.c

    Remove these lines of codes

    clif_damage(d_bl, d_bl, gettick(), 0, 0, damage, 0, 0, 0);
    status_fix_damage(NULL, d_bl, damage, 0);
    

    And add these line of codes

    bool devo_flag = false; /* false = paladin devoing; true = player */
    if ( src )
    {
    struct status_change *tsc;
    tsc = status_get_sc(src);
    
    /* Per official standards, following skills should reflect at the bl */
    if( (tsc->data[sC_KAITE] && attack_type == BF_MAGIC) ||
    (tsc->data[sC_REFLECTDAMAGE] && attack_type != BF_MAGIC)
     )
    devo_flag = true;
    }
    
    clif_damage(
    ( (devo_flag) ? bl:d_bl),  
    ( (devo_flag) ? bl:d_bl), gettick(), 0, 0, damage, 0, 0, 0);
    status_fix_damage(
    ( (devo_flag) ? bl:NULL),  
    ( (devo_flag) ? bl:d_bl), damage, 0, 0);
    

    Recompile your server. I never tested it. Try for yourself. DON'T FORGET TO BACK UP YOUR FILES.

    is this working ? Sorry for my bad english

  4. i already did this but nothing happened it shows error :c

    I don't know then. I think this BUG has already been fixed by rAthena.

    Edit:

    src/common/mmo.h
    src/map/battle.c
    src/map/skill.c
    src/map/status.c

    You'll just edit the following here:

    src/map/battle.c
    src/map/skill.c
    src/map/pc.c
    

    i already edit my src when compiling it shows error

  5. You can see in changeset 14400 :

    http://trac.rathena....t/14400/rathena

    Edit:

    src/common/mmo.h
    src/map/battle.c
    src/map/skill.c
    src/map/status.c

    Only revert back this, changing the green block for the red, then recompile and try.

    i hope to help you.

    This will not help the Topic Starter. I already tried this before.

    @Topic Starter:

    I told you already to update your SVN to the latest version of the SVN. It is already fixed.

    i already did this but nothing happened it shows error :c

  6. Topic Merged ....

    Please dont create same topic in same / other forum .. 1 Topic for this is more than enough..


    In rAthena, this is official behavious....if you want to revert back to work like last time...then you have to revert all changes done by rAthena for devotion stuff.....

    Emistry i dont know how to revert svn ;C

    Up up up up

    Bump

  7. I see alot of guides on how to fix this, but i am not sure if it is working in rathena. because those post was posted along time ago. Any way here's the scenario

    A - Pally 1

    B - Champion

    C - Pally 2

    Scenario : player C uses reflect shield. player A use devotion skill on player B. player B cast asura strike / extrimity fist on player C. instead of player A to take all the damage of the asura. player B do take it all. anyone who can help me to fix this issues with full guide?

    Thank you! :D Btw, got new here in rathena, so i don't think i am in the right section. forgive me :D

×
×
  • Create New...