Removing pk_count

Discussion in 'Help' started by loest, Nov 22, 2010.

  1. loest

    loest New Member

    i was wonderin if i can use this function to remove pk_count

    Code:
    //used on blak jude quest
    myself::IncrementParam(talker,9,0);
    
    from what i could find at AI:
    -myself::IncrementParam(talker,0,int); means exp;
    -myself::IncrementParam(talker,1,int); means sp;

    so probably
    -myself::IncrementParam(talker,9,0); is the pk_count

    after a while i found this one an old file
    Code:
    184746219;void IncrementParam(CSharedCreatureData* to, int nType, int value);
    
    which make me think, i can change any CSharedCreatureData via ai, but then i don't know how to check which is the correct nType for them.

    thx in advance
     
    Last edited: Nov 22, 2010
  2. FidoW

    FidoW AdvExt64 Customers (IL)

    You need to learn to look in the correct place.

    manual_pch.txt

    [PARAM_EXP]=0
    [PARAM_SP]=1
    [PARAM_INT]=2
    [PARAM_STR]=3
    [PARAM_CON]=4
    [PARAM_MEN]=5
    [PARAM_DEX]=6
    [PARAM_WIT]=7
    [PARAM_LEVEL]=8
    [PARAM_PKCOUNT]=9

    You can also use directly like this:

    myself::IncrementParam(talker,@PARAM_PKCOUNT,pk_value);
     
  3. loest

    loest New Member

    well actually i thought it might be there, but i take a quick look and miss it, and well this param are the only ones i can change using that command or i can mess with other stuff too?
     
  4. amshare

    amshare New Member

    reset pk nasc

    I just showed him a path,
    Use your imagination to expand
    View attachment 90