Thread: Npc giving Strength Boost?

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Npc giving Strength Boost? 
    0v3rc0m3
    Guest
    Hey, I'm trying to make it so a Summoning NPC will give you a strength boost.
    This is the code I've constructed so far,
    Code:
    if(pnp.npcType == 7347)
    {
    if(p.skillLvl[23] > 78)
    {
    if(p.ActionTimer == 0)
    {
    p.ActionTimer = 150;
    p.frames.showChatboxInterface(p, 241);
    p.frames.animateInterfaceId(p, 9760, 241, 2);
    p.frames.setNPCId(p, 7347, 241, 2);
    p.frames.setString(p, "Talon Beast", 241, 3);
    p.frames.setString(p, "ROAR! For awkening me, take this Strength Boost!", 241, 4);
    p.frames.sendMessage(p, "Your Strength has been boosted!");
    p.requestGFX(1310, 0);
    }
    }
    }
    Now i want to make it so whenever you talk to it, it will give you the strength boost.
    Any help?
    THANKS!
    Reply With Quote  
     

  2. #2  
    Registered Member
    Firefight's Avatar
    Join Date
    Aug 2007
    Posts
    1,506
    Thanks given
    6
    Thanks received
    31
    Rep Power
    160
    Look at what a super strength pot does, then add that into your code.
    Back for now...
    Reply With Quote  
     

  3. #3  
    0v3rc0m3
    Guest
    Here's the code from super strength, Okay what would i pull from the coding?

    Code:
                case 157:
                    if (p.drinkDelay <= 0) {
                        p.drinkDelay = 3;
                        p.combatDelay += 2;
                        pi.deleteItem(p, itemId, itemSlot, 1);
                        p.requestAnim(829, 0);
                        changeStat(p, 2, (int) (p.getLevelForXP(2) * 0.15) + 5, 1,
                                true);
                        pi.addItem(p, 159, 1);
                    }
                    break;
    Reply With Quote  
     

  4. #4  
    Sexy Donator
    Downfall's Avatar
    Join Date
    Oct 2008
    Age
    26
    Posts
    1,084
    Thanks given
    10
    Thanks received
    1
    Rep Power
    393
    Quote Originally Posted by 0v3rc0m3 View Post
    Here's the code from super strength, Okay what would i pull from the coding?

    Code:
                case 157:
                    if (p.drinkDelay <= 0) {
                        p.drinkDelay = 3;
                        p.combatDelay += 2;
                        pi.deleteItem(p, itemId, itemSlot, 1);
                        p.requestAnim(829, 0);
                        changeStat(p, 2, (int) (p.getLevelForXP(2) * 0.15) + 5, 1,
                                true);
                        pi.addItem(p, 159, 1);
                    }
                    break;
    Lolz ur supposed to make a code based on that not put that code into ur summoning.. lolz

    [Only registered and activated users can see links. ]
    Did you know?
    - JaGeX has enough money to buy 8,000,000 tons of SuperCrack.
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Jan 2008
    Posts
    2,345
    Thanks given
    20
    Thanks received
    575
    Rep Power
    1202
    I hope you were playing dumb, 0v3rc0m3 but this was the line:

    Code:
    changeStat(p, 2, (int) (p.getLevelForXP(2) * 0.15) + 5, 1, true);
    Duh.
    Reply With Quote  
     

  6. #6  
    0v3rc0m3
    Guest
    Okay just making sure because i did try that. But you need a method like p.frames.
    or p.
    and i tried it but i got errors about not having a method or something.
    :\
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Sep 2008
    Posts
    2,156
    Thanks given
    3
    Thanks received
    2
    Rep Power
    182
    try this


    Code:
    if(pnp.npcType == 7347)
    {
    if(p.skillLvl[23] > 78)
    {
    if(p.ActionTimer == 0)
    {
    p.ActionTimer = 150;
    p.frames.showChatboxInterface(p, 241);
    p.frames.animateInterfaceId(p, 9760, 241, 2);
    p.frames.setNPCId(p, 7347, 241, 2);
    p.frames.setString(p, "Talon Beast", 241, 3);
    p.frames.setString(p, "ROAR! For awkening me, take this Strength Boost!", 241, 4);
    p.frames.sendMessage(p, "Your Strength has been boosted!");
    p.requestGFX(1310, 0);
                        changeStat(p, 2, (int) (p.getLevelForXP(2) * 0.15) + 5, 1,
                                true);
    
    }
    }
    }
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  8. #8  
    nathan10 2
    Guest
    wrong section....
    Reply With Quote  
     

  9. #9  
    5simple5
    Guest
    How is this in the wrong section you idiot. This is for Players to Post there codes and others to configure them. Jesus, get the fuck out new guy.
    Reply With Quote  
     

  10. #10  
    nathan10 2
    Guest
    Quote Originally Posted by 5simple5 View Post
    How is this in the wrong section you idiot. This is for Players to Post there codes and others to configure them. Jesus, get the fuck out new guy.
    ever heard of: never look at post count of somebody, this is my second account because david banned me for no reason

    i'm Nathan. and you are just a little bug for me

    on topic: isn't he requesting for help?? so this is the wrong section (and tbh that code is no way near configuration)
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •