Skip to content

CP script for IG

Featured Replies

been searching around, thought i found one once but cant find it agin

 

little help plz

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.

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

 

Where and how use this script?

w8 when i will come from school i pm it u ;)

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...

Create an account or sign in to comment

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.