Thread: npc messageing -help-

Results 1 to 6 of 6
  1. #1 npc messageing -help- 
    Registered Member
    Join Date
    Dec 2009
    Age
    30
    Posts
    318
    Thanks given
    1
    Thanks received
    3
    Rep Power
    19
    okay guys i wanna make my npc say random stuff but wen i tryed this


    }
    if (npcs[i].npcType == 1835 && misc.random2(5) == 2) {
    npcs[i].updateRequired = true;
    npcs[i].textUpdateRequired = true;
    npcs[i].textUpdate = "Welcome to Crazy pvp! Shops are at :hops !";
    npcs[i].textUpdate = "Owners are Cuz and Cedric!";



    it only says the command

    -owners are cuz and cedric-


    anyidea of how to make it say both texts ?
    Reply With Quote  
     

  2. #2  
    Respected Member

    Situations's Avatar
    Join Date
    Sep 2008
    Posts
    3,903
    Thanks given
    230
    Thanks received
    1,695
    Rep Power
    5000
    I'm sick of just telling people how to do it, so I'm going to sit here and assist you and help YOU find out how to do it. That way, when someone 2 days from now asks the same question YOU can help him.

    Look at the code you just wrote. You can just look at it and know it's wrong. A good way to find out the answer to your question is to look at examples and learn from them. Scroll up a bit, (or down) and find something similar to what you're trying to do. From there, edit around and LEARN.

    If you're scrolling up and down and still can't find anything then search this:

    Code:
    npcs[i].textUpdate


    Let's see where we can get from there.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2009
    Age
    30
    Posts
    318
    Thanks given
    1
    Thanks received
    3
    Rep Power
    19
    lol nope nothing there and for that what u told me to look at




    heres my whole code









    Code:
    if(npcs[i].npcType == 2862 && npcs[i].pp == plr.playerId) {
                                npcs[i].updateRequired = true;
                                npcs[i].textUpdateRequired = true;
                                npcs[i].textUpdate = "ROFL OWNED NUB";
    }
    
    }
    }
    
    if(timerwtf <= 0) {
    timerwtf = 7;
    }
    
    
                            if (npcs[i].npcType == 660 && timerwtf == 6) {
                                npcs[i].updateRequired = true;
                                npcs[i].textUpdateRequired = true;
                                npcs[i].textUpdate = "It's fun to stay at the....";
                            }
    
    
                            if (npcs[i].npcType == 660 && timerwtf == 5) {
                                npcs[i].updateRequired = true;
                                npcs[i].textUpdateRequired = true;
                                npcs[i].textUpdate = "Y";
                            }
    
                            if (npcs[i].npcType == 660 && timerwtf == 4) {
                                npcs[i].updateRequired = true;
                                npcs[i].textUpdateRequired = true;
                                npcs[i].textUpdate = "M";
                            }
    
                            if (npcs[i].npcType == 660 && timerwtf == 3) {
                                npcs[i].updateRequired = true;
                                npcs[i].textUpdateRequired = true;
                                npcs[i].textUpdate = "C";
                            }
    
                            if (npcs[i].npcType == 660 && timerwtf == 2) {
                                npcs[i].updateRequired = true;
                                npcs[i].textUpdateRequired = true;
                                npcs[i].textUpdate = "A";
                            }
    
                            if (npcs[i].npcType == 660 && timerwtf == 1) {
                                npcs[i].updateRequired = true;
                                npcs[i].textUpdateRequired = true;
                                npcs[i].textUpdate = "!";
                            }
    
    
                            if (npcs[i].npcType == 0 && misc.random2(15) == 1) {
                                npcs[i].updateRequired = true;
                                npcs[i].textUpdateRequired = true;
                                npcs[i].textUpdate = "I Can Teleport u to other places of Crazypvp";
                            }
    
                            if (npcs[i].npcType == 964 && misc.random2(15) == 1) {
                                npcs[i].updateRequired = true;
                                npcs[i].textUpdateRequired = true;
                                npcs[i].textUpdate = "Talk to me if you wanna convert to PvP mode!";
                            }
                            if (npcs[i].npcType == 1835 && misc.random2(5) == 2) {
                                npcs[i].updateRequired = true;
                                npcs[i].textUpdateRequired = true;
                                npcs[i].textUpdate = "Welcome to Crazy pvp! Shops are at ::shops !";
                                npcs[i].textUpdate = "Owners are Cuz and Cedric!";
                            }
    
    
                            if (npcs[i].npcType == 57 && misc.random2(20) == 1) {
                                npcs[i].updateRequired = true;
                                npcs[i].textUpdateRequired = true;
                                npcs[i].textUpdate = "Talk to me if you wanna spend your PvP points!";
                            }
    
                            if (npcs[i].npcType == 250 && misc.random2(20) == 1) {
                                npcs[i].updateRequired = true;
                                npcs[i].textUpdateRequired = true;
                                npcs[i].textUpdate = "I sell PVP items! Check it out!";
                            }
    
                            if (npcs[i].npcType == 2024 && misc.random2(20) == 1) {
                                npcs[i].updateRequired = true;
                                npcs[i].textUpdateRequired = true;
                                npcs[i].textUpdate = "Be thankful! I sell barrows items!";
                            }
    Reply With Quote  
     

  4. #4  
    I'm Back

    Stewie's Avatar
    Join Date
    Jul 2008
    Age
    29
    Posts
    7,987
    Thanks given
    1,877
    Thanks received
    1,491
    Rep Power
    5000
    You would have to edit the masks client-side to support more than one line of text.


    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Dec 2009
    Age
    30
    Posts
    318
    Thanks given
    1
    Thanks received
    3
    Rep Power
    19
    oh
    okay lmao
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Dec 2009
    Age
    30
    Posts
    318
    Thanks given
    1
    Thanks received
    3
    Rep Power
    19
    well anyone wanna try and help me? if theres another way
    Reply With Quote  
     


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
  •