Thread: Simple fishing and wcing

Results 1 to 8 of 8
  1. #1 Simple fishing and wcing 
    newservermaker
    Guest
    Ok.... this is a simple way to add wcing and fishing to your server. With these you dont need anything to fish, just click on the NPC and it gives u a fishy =), same with wcing but u get a log(of some up to yews, the trees ARE NOT the real trees)

    First open up autospawn.cfg and add these into it and the bottom or where ever:

    Code:
    //*Fishing Spots*//
    spawn = 236	2665	4713	0	0	0	0	0	1	Fishing Spot1
    spawn = 235	2669	4711	0	0	0	0	0	1	Fishing Spot2
    spawn = 234	4668	4712	0	0	0	0	0	1	Fishing Spot3
    spawn = 233	2663	4713	0	0	0	0	0	1	Fishing Spot4
    //*Woodcuting located at Nature Temple*//
    spawn = 1721	2406	4846	0	0	0	0	0	1	Normal tree 1
    spawn = 1721	2406	4847	0	0	0	0	0	1	Normal tree 2
    spawn = 152	2401	4843	0	0	0	0	0	1	Oak tree 1
    spawn = 152	2403	4842	0	0	0	0	0	1	Oak tree 2
    spawn = 1226	2397	4841	0	0	0	0	0	1	Willow tree 1
    spawn = 1226	2395	4840	0	0	0	0	0	1	Willow tree 2
    spawn = 1719	2391	4844	0	0	0	0	0	1	Yew tree 1
    spawn = 1719	2392	4846	0	0	0	0	0	1	Yew tree 2
    change the x and y coords to where you want them to be.

    now open client.java and add this in with your commands:

    Code:
    if (command.equalsIgnoreCase("wcing"))
    {
    teleportToX = 2399;
    teleportToY = 4849;
    sendMessage("Use ::home to leave this area.");
       }
    thats only if you want the wcing to be in the nature temple!!(f you change wcing coords of spawns change this)

    Now in client.java look for:

    Code:
    else if (NPCID == 2301) { // tele to monkey area guy
    or somthing like that

    Add this under it:

    Code:
    //*Start of Wcing*//
    if(NPCID == 1721 && playerLevel[8] >= 1) 
    if(actionTimer == 0)
    {
    startAnimation(875);
    addItem(1511, 1);
    addSkillXP(15*playerLevel[8], 8);
    sendMessage("You cut some logs!");
    actionTimer = 5;
    }
    if(NPCID == 1721 && playerLevel[8] < 1)
    {
    sendMessage("You need a Woodcuting level of 1 to cut these!.");
    }
    if(NPCID == 152 && playerLevel[8] >= 15) 
    if(actionTimer == 0)
    {
    startAnimation(875);
    addItem(1521, 1);
    addSkillXP(25*playerLevel[8], 8);
    sendMessage("You cut some logs!");
    actionTimer = 5;
    }
    if(NPCID == 152 && playerLevel[8] < 14)
    {
    sendMessage("You need a Woodcuting level of 15 to cut these!.");
    }
    if(NPCID == 1226 && playerLevel[8] >= 30) 
    if(actionTimer == 0)
    {
    startAnimation(875);
    addItem(1519, 1);
    addSkillXP(50*playerLevel[8], 8);
    sendMessage("You cut some logs!");
    actionTimer = 5;
    }
    if(NPCID == 1226 && playerLevel[8] < 29)
    {
    sendMessage("You need a Woodcuting level of 30 to cut these!.");
    }
    if(NPCID == 1719 && playerLevel[8] >= 60) 
    if(actionTimer == 0)
    {
    startAnimation(875);
    addItem(1515, 1);
    addSkillXP(150*playerLevel[8], 8);
    sendMessage("You cut some logs!");
    actionTimer = 5;
    }
    if(NPCID == 1719 && playerLevel[8] < 59)
    {
    sendMessage("You need a Woodcuting level of 60 to cut these!.");
    }
    //*End of Wcing*//
    //*Start of Fishing*//
    if(NPCID == 234 && playerLevel[10] >= 40) 
    if(actionTimer == 0)
    {
    startAnimation(619);
    addItem(377, 1);
    addSkillXP(30*playerLevel[10], 10);
    sendMessage("You fish a lobster");
    actionTimer = 5;
    }
    if(NPCID == 234 && playerLevel[10] < 40)
    {
    sendMessage("You need a fishing level of 40 to fish lobsters.");
    }
    
    if(NPCID == 235 && playerLevel[10] >= 1) 
    if(actionTimer == 0)
    {
    startAnimation(622);
    addItem(317, 1);
    addSkillXP(20*playerLevel[10], 10);
    sendMessage("You fish a shrimp");
    actionTimer = 5;
    }
    
    if(NPCID == 235 && playerLevel[10] < 1)
    {
    sendMessage("You need a fishing level of 1 to fish shrimp.");
    }
    
    if(NPCID == 236 && playerLevel[10] >= 75) 
    if(actionTimer == 0)
    {
    startAnimation(618);
    addItem(383, 1);
    addSkillXP(50*playerLevel[10], 10);
    sendMessage("You fish a shark");
    actionTimer = 5;
    }
    
    if(NPCID == 236 && playerLevel[10] < 75)
    {
    sendMessage("You need a fishing level of 75 to fish shark.");
    }
    
    if(NPCID == 233 && playerLevel[10] >= 99) 
    if(actionTimer == 0)
    {
    startAnimation(618);
    addItem(389, 1);
    addSkillXP(75*playerLevel[10], 10);
    sendMessage("You fish a manta ray");
    actionTimer = 5;
    }
    
    if(NPCID == 233 && playerLevel[10] < 99)
    {
    sendMessage("You need a fishing level of 99 to fish manta ray.");
    }
    //*End of Fishing*//
    You can now fish by clicking on the npc fishnig spots and wc by clicking on the trees)the trees kinda look funny lol)

    Hope this helped

    Credits: me =) my first real codeing

    Rep+ apreicated
     

  2. #2  
    Killah
    Guest
    Very basic but not bad there
     

  3. #3  
    Member

    Join Date
    Dec 2006
    Posts
    1,263
    Thanks given
    3
    Thanks received
    3
    Rep Power
    0
    This is your first code & you made it - not bad
     

  4. #4  
    1337scape
    Guest
    why the fack do u use NPCs to wc??
     

  5. #5  
    zyxl
    Guest
    Calm down 1337SCAPE, this guy is only trying to make a tut, so dont blame him !

    Zyxeh
     

  6. #6  
    twostars
    Guest
    Thanks, great tut.
     

  7. #7  
    Registered Member

    Join Date
    Jul 2006
    Age
    30
    Posts
    1,247
    Thanks given
    0
    Thanks received
    5
    Rep Power
    190
    welcome here
    just yoricka...
     

  8. #8  
    We Are The Revolution!
    Volcom's Avatar
    Join Date
    Apr 2007
    Posts
    1,118
    Thanks given
    0
    Thanks received
    5
    Rep Power
    859
    thank you man, i needed this i used this as a decent base for my server. repp man!
     


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
  •