Jump to content

vBrenth

Members
  • Content Count

    388
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by vBrenth


  1.  

    ah I forgot. Lets me thinks. hehe

     

    Dude i tot you already have solution for tihz!

     

    EDIT:

    It also happens on the latest clients. 2013-2014 (im not sure if this is a client side or what)

     

    EDIT again:

    I searched the whisper function on the client and found [ To and ( To, i tried everything but it doesnt work i even edit the TO ~> Xo it works its just i can't remove the () on it, can't find anything on .exe

     

    Edit 3:

    Fixed, i am not sure how to posts the solution but you have to work around on [ replace all the ( and space to 1 2 3 4 5 6 7 to see it on client and it works.)


  2. I'm sorry to break it to you, but if you'll use csnv's fix, it will only send packet to client showing minimized damage, yet the damage applied on server will be full...

    I think if you'll hit the attacker after you'll see what I mean.

     

    Oh thank you Garr, i am blind not to see it, and csnv explain it to me too :D thanks.

    Another question if you can help me regarding the reflect shield and items it shows that they splitting damage into 2, i wonder how i can revert the old one?

     

    Using ur fix now.


  3.  

    Just a question... why were you using ATTACKER'S HP then? You'd need to use target, and not src. Try this one:

     

    if(wd.damage && tsc && tsc->data[SC_SWORDREJECT] &&		(src->type!=BL_PC || (			((TBL_PC *)src)->weapontype1 == W_DAGGER ||			((TBL_PC *)src)->weapontype1 == W_1HSWORD ||			((TBL_PC *)src)->status.weapon == W_2HSWORD		)) &&		rnd()%100 < tsc->data[SC_SWORDREJECT]->val2		) {		ATK_RATER(50);		wd.damage = min(status_get_max_hp(target),wd.damage);		status_fix_damage(target,src,wd.damage,clif->damage(target,src,0,0,wd.damage,0,0,0));		clif->skill_nodamage(target,target,ST_REJECTSWORD,tsc->data[SC_SWORDREJECT]->val1,1);		if( --(tsc->data[SC_SWORDREJECT]->val3) <= 0 )			status_change_end(target, SC_SWORDREJECT, INVALID_TIMER);	}

     

    Thanks for the response sir


  4. I would like to ask for a help regarding this one, i cannot make it work on my own and with the help of my friends so here i am posting this :D

        //Reject Sword bugreport:4493 by Daegaladh    if(wd.damage && tsc && tsc->data[SC_SWORDREJECT] &&        (src->type!=BL_PC || (            ((TBL_PC *)src)->weapontype1 == W_DAGGER ||            ((TBL_PC *)src)->weapontype1 == W_1HSWORD ||            ((TBL_PC *)src)->status.weapon == W_2HSWORD        )) &&        rnd()%100 < tsc->data[SC_SWORDREJECT]->val2        ) {        ATK_RATER(50);        status_fix_damage(target,src,wd.damage,clif->damage(target,src,0,0,wd.damage,0,0,0));        clif->skill_nodamage(target,target,ST_REJECTSWORD,tsc->data[SC_SWORDREJECT]->val1,1);        if( --(tsc->data[SC_SWORDREJECT]->val3) <= 0 )            status_change_end(target, SC_SWORDREJECT, INVALID_TIMER);    }

    What i wanted to aim?, I want to make the reject swords reflect damage cannot go higher than casters HP.

    We tried to add this things but doesnt work (under) ATK_RATER(50);

     

    Thanks to Dastgir for multiple tries to help me :D

    wd.damage = (int)cap_value(wd.damage, 0, ((TBL_PC*)src)->status.max_hp);
    wd.damage = cap_value(wd.damage, 0, (int64)((TBL_PC*)src)->status.max_hp);
    if (sd)wd.damage = cap_value(wd.damage, 0, (int64)(sd->status.max_hp));
    if (sd)wd.damage = min(status_get_max_hp(src),wd.damage);

    Little hand please?

    Another problem i have encounter on newer clients [ Whisper bug [2013-12-23c ]


  5. prontera,150,160,6	trader	HaiMarket	952,{OnInit:	tradertype(NST_MARKET);	sellitem Red_Potion,-1,50;	end;	OnClock0000://resupplies red potions on midnightOnMyResupply://instead of midnight, a event could trigger HaiMarket::OnMyResupply	if( shopcount(Red_Potion) < 50 )		sellitem Red_Potion,-1,50;	end;} 

    is it possible to use it on lower version ? i mean its fine w/o displaying the limit on client.


  6.  

    do you use this on lattest revision ? can you share your patch ?

     

    I m not using clean emulaor to create patch...hope it work XD

     

     

    attachicon.gifevs.patch

     

    this works well, to fix the warning

     

     

     

    vending.c: In function âvending_purchasereqâ:vending.c:256: warning: âitem_nameâ may be used uninitialized in this function	    LD	  map-server 

    vending.c

    const char *item_name;

    to

    const char *item_name = "";

     

     

     

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.