Jump to content

Felipe

Members
  • Posts

    51
  • Joined

  • Last visited

Posts posted by Felipe

  1.  

    I'm not good at editing src so I want all of your help please.

     

    The problem is when I use a vacuum extreme skill of Sorcerer to person who have str more than  240 it doesn't suck them so I want to know If I want to change it more than this how can I do it?

     

     

    Vacuum extreme skill

    status.c

     

    case SC_VACUUM_EXTREME:
    ///< !CHECKME: Seems on official, there's delay before same target can be vacuumed in same area again [Cydh]
    sc_start2(bl, bl, SC_VACUUM_EXTREME_POSTDELAY, 100, sce->val1, sce->val2, skill_get_time2(SO_VACUUM_EXTREME,sce->val1));
     
    I try to edit this but it doesn't work at all it's still be the same result T^T
     
    So that's why I ask your guys help ... 

     

    I guess is not in this line, its look like delay not the damege of skill.

     

    I think is this line in src/map/skill.c:

    sc_start4(ss, bl, SC_VACUUM_EXTREME, 100, sg->skill_lv, sg->group_id, (sg->val1<<16)|(sg->val2), ++sg->val3*500, (sg->limit - DIFF_TICK(tick, sg->tick)));

     

    BEFORE DO ANY THING MAKE A BACKUP OF skill.c

     

    I would try this:

    sc_start4(ss, bl, SC_VACUUM_EXTREME, 100, sg->skill_lv, sg->group_id, (sg->val1<<16)|(sg->val2), ++sg->val3*700, (sg->limit - DIFF_TICK(tick, sg->tick)));

  2. That error has been resolved , is now giving this one when I click the npc: Runane#sara

    [Error]: buildin_isbegin_quest: Player with char id '1' is not found.
    [Debug]: Source (NPC): Runane#sara at moc_para01 (29,95)
    

    is probably that part of the script:

    if (isbegin_quest(13181) == 1) {
    

    Antes de mais nada, obrigado pela ajuda.

    What's mean the number 13181 ?

  3. That error has been resolved , is now giving this one when I click the npc: Runane#sara

    [Error]: buildin_isbegin_quest: Player with char id '1' is not found.
    [Debug]: Source (NPC): Runane#sara at moc_para01 (29,95)
    

    Antes de mais nada, obrigado pela ajuda.

    In your script have some line which is telling char id = 1, change or just add this -> //

    In the begining of the line.

     

    You're welcome

  4.  

    Então Felipe, a instancia ela funciona normal, só que só da erro nessa parte. Minha instance_db está correta, assim creio eu. Vou posta-la aqui.

    ID,Name,LimitTime,IdleTimeOut,EnterMap,EnterX,EnterY,Map2,...,Map255
    15,Nightmarish Jitterbug,3600,300,1@jtb,16,18,1@jtb
    

     

    I guess the error is here :

    15,Nightmarish Jitterbug,3600,300,1@jtb,16,18,1@jtb

     

    You repeat the map 1@jtb, try change delete it:

    15,Nightmarish Jitterbug,3600,300,1@jtb,16,18

     

    or:

     

    15,Nightmarish Jitterbug,3600,300,1@jtb,16,18,

  5. Did you try to start all process with root ? Including MySQL and rAthena

     

    And

     

    I guess have a process already making connection, try to Kill everything related to MySQL. I think you can try MariaDB maybe work.

     

    @edit:

    I've a issue like this, I change for a FreeBSD based, idk you experience with FreeBSD or OpenBSD but let's give a try ;)

  6. I can be wrong, but I guess the problem is this line : 

            setarray .woe_state_0[0],1,0,0,0,0,0,0;

     

    Try this:

     

            setarray .woe_state_0[0],1,1,0,0,0,0,0;

     

    and see what's happen

  7. I guess the array .Shops$ is global. So you get the objects from .Shops$ of the first NPC.

     

    I just put the NPC on WordPad and replace .Shops$ to .Shops1$

     

    I don't have rA on my PC, so idk if it worked

     

    Try this:

    mosk_in,30,248,2 script Shane The White 446,{
     
    function Add; function Chk; function Slot; function A_An;
     
    if(.Shops1$ != "") set .@i,1;
    else {
    set .@menu$,"";
    for(set .@i,1; .@i<=getarraysize(.Shops1$); set .@i,.@i+1)
    set .@menu$, .@menu$+.Shops1$[.@i]+":";
    set .@i, select(.@menu$); }
    dispbottom "Select one item at a time.";
    callshop "qshopb"+.@i,1;
    npcshopattach "qshopb"+.@i;
    end;
     
    function Add {
    if (getitemname(getarg(1))=="null") {
    debugmes "Quest reward #"+getarg(1)+" invalid (skipped)."; return; }
    for(set .@n,5; .@n<127; set .@n,.@n+2) {
    if (!getarg(.@n,0)) break;
    if (getitemname(getarg(.@n))=="null") {
    debugmes "Quest requirement #"+getarg(.@n)+" invalid (skipped)."; return; } }
    for(set .@i,2; .@i<.@n; set .@i,.@i+1)
    set getd(".q_"+getarg(1)+"["+(.@i-2)+"]"), getarg(.@i);
    npcshopadditem "qshopb"+getarg(0),getarg(1),((.ShowZeny)?getarg(3):0);
    sleep 1;
    return; }
    function Chk {
    if (getarg(0)<getarg(1)) { set @qe0,1; return "^FF0000"; }
    else return "^00FF00"; }
    function Slot {
    set .@s$,getitemname(getarg(0));
    switch(.ShowSlot){
    case 1: if (!getitemslots(getarg(0))) return .@s$;
    case 2: if (getiteminfo(getarg(0),11)>0) return .@s$+" ["+getitemslots(getarg(0))+"]";
    default: return .@s$; } }
    function A_An {
    setarray .@A$[0],"a","e","i","o","u";
    set .@B$, "_"+getarg(0);
    for(set .@i,0; .@i<5; set .@i,.@i+1)
    if (compare(.@B$,"_"+.@A$[.@i])) return "an "+getarg(0);
    return "a "+getarg(0); }
     
    OnBuyItem:
    set .@q[0],@bought_nameid;
    copyarray .@q[1],getd(".q_"+@bought_nameid+"[0]"),getarraysize(getd(".q_"+@bought_nameid+"[0]"));
    if (!.@q[1]) { message strcharinfo(0),"An error has occurred."; end; }
    mes "[Quest Shop]";
    mes "Reward: ^0055FF"+((.@q[1]>1)?.@q[1]+"x ":"")+Slot(.@q[0])+"^000000";
    mes "Requirements:";
    if (.@q[2]) mes " > "+Chk(Zeny,.@q[2])+.@q[2]+" Zeny^000000";
    if (.@q[3]) mes " > "+Chk(getd(.Points$[0]),.@q[3])+.@q[3]+" "+.Points$[1]+" ("+getd(.Points$[0])+"/"+.@q[3]+")^000000";
    if (.@q[4]) for(set .@i,4; .@i<getarraysize(.@q); set .@i,.@i+2)
    mes " > "+Chk(countitem(.@q[.@i]),.@q[.@i+1])+((.DisplayID)?"{"+.@q[.@i]+"} ":"")+Slot(.@q[.@i])+" ("+countitem(.@q[.@i])+"/"+.@q[.@i+1]+")^000000";
    next;
    set @qe1, getiteminfo(.@q[0],5); set @qe2, getiteminfo(.@q[0],11);
    addtimer 1000, strnpcinfo(1)+"::OnEnd";
    while(1){
    switch(select(" ~ Purchase ^0055FF"+getitemname(.@q[0])+"^000000:"+((((@qe1&1) || (@qe1&256) || (@qe1&512)) && @qe2>0 && !@qe6)?" ~ Preview...":"")+": ~ ^777777Cancel^000000")) {
    case 1:
    if (@qe0) { 
    mes "[Quest Shop]";
    mes "You're missing one or more quest requirements.";
    close; }
    if (!checkweight(.@q[0],.@q[1])) {
    mes "[Quest Shop]";
    mes "^FF0000You need "+(((.@q[1]*getiteminfo(.@q[0],6))+Weight-MaxWeight)/10)+" additional weight capacity to complete this trade.^000000";
    close; }
    if (.@q[2]) set Zeny, Zeny-.@q[2];
    if (.@q[3]) setd .Points$[0], getd(.Points$[0])-.@q[3];
    if (.@q[4]) for(set .@i,4; .@i<getarraysize(.@q); set .@i,.@i+2)
    delitem .@q[.@i],.@q[.@i+1];
    getitem .@q[0],.@q[1];
    if (.Announce) announce strcharinfo(0)+" has created "+A_An(getitemname(.@q[0]))+"!",0;
    specialeffect2 699;
    close;
    case 2:
    set @qe3, getlook(3); set @qe4, getlook(4); set @qe5, getlook(5);
    if (@qe1&1) atcommand "@changelook 3 "+@qe2;
    if (@qe1&256) atcommand "@changelook 1 "+@qe2;
    if (@qe1&512) atcommand "@changelook 2 "+@qe2;
    set @qe6,1;
    break;
    case 3:
    close; } }
    OnEnd:
    if (@qe6) { atcommand "@changelook 3 "+@qe3; atcommand "@changelook 1 "+@qe4; atcommand "@changelook 2 "+@qe5; }
    for(set .@i,0; .@i<7; set .@i,.@i+1) setd "@qe"+.@i,0;
    end;
    OnInit:
    // --------------------- Config ---------------------
    // Custom points, if needed: "<variable>","<name to display>"
    setarray .Points$[0],"#CASHPOINTS","Cash Points";
     
    set .Announce,1; // Announce quest completion? (1: yes / 0: no)
    set .ShowSlot,1; // Show item slots? (2: all equipment / 1: if slots > 0 / 0: never)
    set .DisplayID,1; // Show item IDs? (1: yes / 0: no)
    set .ShowZeny,0; // Show Zeny cost, if any? (1: yes / 0: no)
     
    // Shop categories, if needed: "<Shop 1>","<Shop 2>"{,...};
    // Duplicate dummy data for any additional shops (bottom of script).
    // If no categories, use the second line instead (remove //).
     
    setarray .Shops1$[1],"~^682FCBWhite Valkyrie Set^000000";
    // set .Shops1$,"n/a";
     
    // Add(<shop number>,<reward ID>,<reward amount>,<Zeny cost>,<point cost>,
    //     <required item ID>,<required item amount>{,...});
    // Shop number corresponds with order above (default is 1).
    // Note: Do NOT use a reward item more than once!
     
    //set
    Add(1,403,1,300000000,0,2357,1,7513,5,7450,3,7754,3,7566,3,969,500,20080,2000);
    Add(1,409,1,300000000,0,2524,1,7513,5,7450,3,7754,3,7566,3,969,500,20080,2000);
    Add(1,415,1,300000000,0,2115,1,7513,5,7450,3,7754,3,7566,3,969,500,20080,2000);
    Add(1,421,1,300000000,0,2421,1,7513,5,7450,3,7754,3,7566,3,969,500,20080,2000);
     
     
     
     
    // --------------------------------------------------
    for(set .@i,1; .@i<=getarraysize(.Shops1$); set .@i,.@i+1)
    npcshopdelitem "qshopb"+.@i,909;
    end;
    }
     
    // -------- Dummy data (duplicate as needed) --------
    - shop qshopb1 -1,909:-1
    - shop qshopb2 -1,909:-1
    - shop qshopb3 -1,909:-1
    - shop qshopb4 -1,909:-1
    - shop qshopb5 -1,909:-1
    - shop qshopb6 -1,909:-1
    - shop qshopb7 -1,909:-1
    
  8. Eu fui mexer com uns custons e não achei o item_db2, olhei no mysql não tem nada também, eu tentei colocar as linhas código no item_db e também não apareceu nada no jogo, eu uso @item e não aparece nada no jogo, fala que falhou.

     

  9. Hello guys,

     

    I tryed to diff 2014-10-22 Ragexe with the N.E.M.O but, didn't work, the patched hexed disappear from the folder, the NEMO generates the .txt file from hexed and for some seconds I can see the patched hexed, but very fast disapper, I don't know if the problem is the hexed, NEMO or something in my system.

     

    @Edit:

     

    The problem was my antivirus, I switch off for a little bit and it doesn't delete the patched.exe

  10. You need to search on internet, but i think the sakexe and ragexe still working. (is different from ragexeRE).

     

    You will need an old data folder with the old skin, the hexed may be easy to find, try to search for Xray 2009, In the past have a lot of this client on internet.

     

    @edit

    Is better search for sakexe 2009 or ragexe xray forum, doesn't online anymore (i guess)

×
×
  • Create New...