Jump to content

CP script for IG


chapterhouse

Recommended Posts

here's a cheap workaround I made

it sets your SP count to your CP percentage

 

because walker has CharStatus(sp

the walker script itself is simple to do

var

  i : integer;

  tempi : integer;

  tempi2 : integer;

  fieldType : integer;

  fieldValue : integer;

  selfObjID : integer;

  curCP : integer;

  maxCP : integer;

  cpRatio : single;

 

 

begin

  if strcmp(copy(_gBuff,3,1),#$04) and _gFromServ then begin

    ScanPck5(_gBuff,20,'d',selfObjID,null,null,null,null);

  end;

  if strcmp(copy(_gBuff,3,1),#$0E) and _gFromServ then begin

     scanpck5(_gBuff,4,'dd',tempi,tempi2,null,null,null);

     if(tempi = selfObjID) then begin

       for i := 0 to tempi2-1 do begin

         scanpck5(_gbuff,12+i*8,'dd',fieldType,fieldValue,null,null,null);

         if(fieldType = $21) then

           curCP := fieldValue;

         if(fieldType = $22) then

           maxCP := fieldValue;

       end;

     end;

  end;

  if(maxCP>0) then begin

    cpRatio := curCP / maxCP;

    if(cpRatio<1) then begin

      GSys.EnSendC(FormatPck('%cdddd',[$0E,selfObjID,1,$0D,cpRatio*100]));

    end;

  end;

end.

Link to comment
Share on other sites

Script is for PPC module of WPF http://saur.x33.ru

 

Ohh...now i am undertand more...but need something explain and then would be nice...

BWt, anyone know how to lunch IG on L2Frozen server i need it really, ofc working one, cuz i can run game, but cannt log in...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...