Thread: [DSPK] - Torva Effect

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 [DSPK] - Torva Effect 
    Registered Member
    Join Date
    Mar 2011
    Posts
    76
    Thanks given
    3
    Thanks received
    1
    Rep Power
    1
    Compile errors: None
    Problem: I am trying to add the Torva effect to my items but I am not sure how... I've been looking at the rocktail effect but I cant crack it, any ideas?

    public void eat(int id, int slot) {
    if (c.duelRule[6]) {
    c.sendMessage("You may not eat in this duel.");
    return;
    }
    if (System.currentTimeMillis() - c.foodDelay >= 1500) {
    int maxHp = c.hasFullPrimal() ? c.getLevelForXP(c.playerXP[3])
    + c.primalBoost : c.getLevelForXP(c.playerXP[3]);
    c.getCombat().resetPlayerAttack();
    c.attackTimer += 2;
    c.startAnimation(829);
    c.getItems().deleteItem(id, slot, 1);
    FoodToEat f = FoodToEat.food.get(id);
    if (c.playerLevel[3] < maxHp) {
    c.playerLevel[3] += f.getHeal();
    if (c.playerLevel[3] > maxHp)
    c.playerLevel[3] = maxHp;
    }
    c.foodDelay = System.currentTimeMillis();
    c.getPA().refreshSkill(3);
    c.sendMessage("You eat the " + f.getName() + ".");
    }
    }
    public static int primalBoost = 50;
    Where would I put these? Also, can someone changed the Primal into Torva for me please?
    Reply With Quote  
     

  2. #2  
    Registered Member
    thim slug's Avatar
    Join Date
    Nov 2010
    Age
    28
    Posts
    4,132
    Thanks given
    1,077
    Thanks received
    1,137
    Rep Power
    5000
    What is the effect?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Mar 2011
    Posts
    76
    Thanks given
    3
    Thanks received
    1
    Rep Power
    1
    When you wear the whole set you get 40 extra hp added
    Reply With Quote  
     

  4. #4  
    Registered Member
    thim slug's Avatar
    Join Date
    Nov 2010
    Age
    28
    Posts
    4,132
    Thanks given
    1,077
    Thanks received
    1,137
    Rep Power
    5000
    does it have any stat effects, strenght, attack? or just hp?
    Reply With Quote  
     

  5. #5  
    Registered Member
    thim slug's Avatar
    Join Date
    Nov 2010
    Age
    28
    Posts
    4,132
    Thanks given
    1,077
    Thanks received
    1,137
    Rep Power
    5000
    The true killer is correct as my way would have many complications...
    Reply With Quote  
     

  6. #6  
    I'm President Carter


    Join Date
    Jan 2011
    Posts
    1,204
    Thanks given
    17
    Thanks received
    222
    Rep Power
    144
    You have to make it an event. Cause people can wear the full set and there hp will either stay the same or keep going up. Me and my friend were working on this. We are almost done and when we do finish we'll release a full tutorial on how to add this correctly.


    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Mar 2011
    Posts
    76
    Thanks given
    3
    Thanks received
    1
    Rep Power
    1
    Can you help me with it?
    Reply With Quote  
     

  8. #8  
    Donator

    Kickyamom's Avatar
    Join Date
    Jul 2010
    Posts
    1,606
    Thanks given
    208
    Thanks received
    157
    Rep Power
    835
    Quote Originally Posted by DaincScapeOwner View Post
    Can you help me with it?
    Let me know in a PM if you ever get this, i'm working on it myself. If i get it before you, i'll tell you.


    Spoiler for Respect for the Truest:

    #TWTMP GANG 4 LYFE
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Aug 2010
    Posts
    205
    Thanks given
    40
    Thanks received
    13
    Rep Power
    2
    well im pretty sure you do this....

    dont get me wrong im new to this stuff.. plus i havent added this myself

    First go ave to declare this somewhere i dont know lol

    public boolean fullFullPrimal() {
    return playerEquipment[playerHat] == 20135 && playerEquipment[playerLegs] == 20143 && playerEquipment[playerChest] == 20139;
    }

    and add your code somewhere i actually don't know lol! And this is a guess
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Apr 2011
    Posts
    27
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    any fixes yet?;s
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 99
    Last Post: 12-28-2013, 02:29 AM
  2. Replies: 5
    Last Post: 01-28-2013, 02:53 AM
  3. Replies: 7
    Last Post: 04-30-2011, 09:29 PM
  4. Replies: 10
    Last Post: 01-16-2011, 12:26 AM
  5. Replies: 22
    Last Post: 05-20-2010, 05:29 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •