Jump to content

Search the Community

Showing results for tags 'showing'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 23 results

  1. Does anyone know how to fix the item from showing up as something it isn't? case 7142: itemDef.name = "@[email protected] tentacle"; itemDef.description = "A weapon from the abyss, embedded in a slimy tentacle.".getBytes(); itemDef.modelID = 4185; itemDef.modelZoom = 913; itemDef.modelRotationY = 304; itemDef.modelRotationX = 148; itemDef.modelOffset1 = 0; itemDef.modelOffset2 = 3; itemDef.itemActions[1] = "Wield"; itemDef.anInt165 = 4186; itemDef.anInt200 = 4186; itemDef.itemActions[1] = "Wield"; itemDef.itemActions[3] = "Check"; itemDef.itemActions[4] = "Dissolve"; break; [ATTACH=CONFIG]10952[/ATTACH]
  2. 718/742 source Hey there I got the following proplem and cant seem to figure out how to fix it. For example sergeant steelwill has a chance to drop 3 sharks when killed. If I get that drop the drop pile only shows 1 shark in the pile, but when I pick it up, it picks up 3 like it should. Now I want to fix it so it shows up 3 sharks in the drop pile. I've been looking through: NPC.java (sendDrop method), Drop.java, and every .java that has the word: groundItem in it... If anyone could point me in the right direction I would greatly appreciate it.
  3. Help please im working on my server (317) and there is a big problem where it shows all skills 99 when there not anyone knows how to fix?? (Client is insidiaX btw) thanks :D
  4. [SIZE=3]Title basicallys explains it, any help would be much appreciated.[/SIZE] [SIZE=3]My normal client (Not jarred)[/SIZE] [IMG]http://i62.tinypic.com/nxn8cp.jpg[/IMG] [SIZE=3]My jarred client[/SIZE] [IMG]http://i58.tinypic.com/24vjvdi.jpg[/IMG] [SIZE=3]My client files[/SIZE] [IMG]http://i58.tinypic.com/2dw7nt3.jpg[/IMG] [SIZE=3]Cachedownloader is set to my current cache version on dropbox which i uploaded yesterday[/SIZE]
  5. hey guys, so here is my dropitems.java file and ive changed it so that the drop should show on the ground but i dont know why its still not working. [CODE] package server.model.players.packets; import server.Config; import server.Server; import server.model.players.Client; import server.model.players.PacketType; /** * Drop Item **/ public class DropItem implements PacketType { @Override public void processPacket(Client c, int packetType, int packetSize) { int itemId = c.getInStream().readUnsignedWordA(); c.getInStream().readUnsignedByte(); c.getInStream().readUnsignedByte(); int slot = c.getInStream().readUnsignedWordA(); if(c.arenas()) { c.sendMessage("You can't drop items inside the arena!"); return; } if(c.playerItemsN[slot] != 0 && itemId != -1 && c.playerItems[slot] == itemId + 1) { if(!c.getItems().playerHasItem(itemId,1,slot)) { //c.sendMessage("Stop cheating!"); return; } } if(c.inTrade) { c.sendMessage("You can't drop items while trading!"); return; } boolean droppable = true; for (int i : Config.UNDROPPABLE_ITEMS) { if (i == itemId) { droppable = false; break; } } for (int p : Config.CAT_ITEMS) { if (p == itemId) { if(c.hasNpc == true) { droppable = false; break; } } } if(c.playerItemsN[slot] != 0 && itemId != -1 && c.playerItems[slot] == itemId + 1) { if(droppable) { if (c.underAttackBy > 0) { if (c.getShops().getItemShopValue(itemId) > 10000) { c.sendMessage("You may not drop items worth more than 10.000 GP while in combat."); return; } } Server.itemHandler.createGroundItem(c, itemId, c.getX(), c.getY(), c.playerItemsN[slot], c.getId()); c.getItems().deleteItem(itemId, slot, c.playerItemsN[slot]); } else { c.sendMessage("This item cannot be dropped."); } } } } [/CODE] any help is appreicated. thanks :D
  6. Hello runelocus, I got a glitch/bug in my source I think. I found the bandos room and tried to spawn a bandos npc there, i know i need to change the height level in the spawn config. I tried changing from 0-2 and it doesn't appear. Anyone know a fix for this? if I spawn it on other places it works perfect.. but I really want to use the real gwd map. Thanks!
  7. [URL=http://s1355.photobucket.com/user/Jarrod_Crazzy_Boyd/media/Background_zps3da89faa.jpg.html][IMG]http://i1355.photobucket.com/albums/q706/Jarrod_Crazzy_Boyd/Background_zps3da89faa.jpg[/IMG][/URL] Tell me what yas think? :) Added my server name in corner so no kids can leech this and use it as there own!
  8. [FONT=Microsoft Sans Serif][SIZE=4]Hey everyone today I'm in need of some help, I'm having a problem on the curse prayers when i turn soulsplit on it doesn't show the soul-split symbol above your heard nor does it work with deflect melee. If you're confused please message me so I can send you the video of my problem on youtube, I can't post on here because I don't have 2 posts. My youtube channel is "BackOffHD" so you could also see my video on there if you typed this in after the youtube stuff type "/user/""backoffhd" without the quotes.[/SIZE][/FONT]
  9. well i was bored.. so i made a picture by painter i want show it plz don't say it's bad.. because painter not photoshop :p [IMG]http://img215.imageshack.us/img215/5708/awesomepicture5.png[/IMG]
  10. Well, title says it all :) [IMG]http://i.imgur.com/AQLcSOj.jpg?1[/IMG]
  11. Here is whats happening: [IMG]http://i.imgur.com/TpetoFI.jpg[/IMG] For some reason, when i type i can see my admin crown, but others in the server see it as a mod crown. Any help? Thanks in advance.
  12. [CENTER]Ok my client is not showing properly on the webclient page. [IMG]http://i48.tinypic.com/de0k9j.png[/IMG] As you can see in the above picture. This is my layout. [SPOILER=Click to show client paramaters]<div id="gameframe"> <applet name="client" width="765" height="503" archive="http://rune-planet.com/maker/loaders/insidiax.jar" code="client"> <param name="java_arguments" value="-Xmx700m"> <param name="server_name" value="name"> <param name="ip" value="0.0.0.0"> <param name="port" value="43594"> <param name="background_image" value="http://www.rune-planet.com/maker/play/images/background.png"> </applet> </div>[/SPOILER] [/CENTER] This is my loading, Any ideas why its not showing properly?
  13. Ok so I added a Lime & Pink whip to my server today. I added all the models, matched the IDs and everything works fine. I can spawn them, they look good, and there are no compile errors on server or client. This has never happened to me before. And what I mean is the item shows up has having no stats ingame. This is a recolor of another item but they have completely different spawn ids n stuff. They do have the same models tho But the stats I put for them will not show up at all. I've tried everything and nothing as worked. Here is the code I put for them: [code] item = 20087 Lime_Whip A_Lime_Whip. 0 0 0 0 95 0 0 0 0 0 0 0 0 95 0 item = 20088 Pink_Whip A_Pink_Whip. 0 0 0 0 85 0 0 0 0 0 0 0 0 85 0 [/code] I have no clue what the problem is.
  14. Hi RL, I've been wondering how to make it so the price of the traded item is shown on the trade screen. I have no idea where to check.. i've taken a look at Trade.java, also Actionsender.java, and nothing. If someone has an idea, please share? :D Thanks, Alex.
  15. OK well me and my friend are working on coding a blank PI source when we notice that the last 4 skills have no numbers near them. After a while of scanning through the client code I decided to mess with the text int. All 25 of the text is there. So I don't know if this is server side or client side. Any help would be so nice. Also it shows up for the half a second that the black loading screen is there, and it also shows up when you die until you relog. This problem also happens for the summoning orb which doesn't show up until you do the same things. Uploading screenshots right now. Only time it shows them before I die: [IMG]http://i49.tinypic.com/j7w5yh.png[/IMG] What I see: [IMG]http://i49.tinypic.com/m7gq5h.png[/IMG]
  16. I recently followed a tutorial to make summoning give you combat levels up to 138. It works for the player but if you right click someone that is past 126 it will just show 126... :/ Any help is greatly appreciated :) -Nick
  17. so i changed my ip to my no ip i opened duc refreshed i changed port to 43594 on utorent my port is showing on canuseeme what am i doing wrong how do i work it so my friends can play with me please awnser it says no response from server please try using a different world please help me i run source then client still no luck im using alhassa scape who ever can get me to be able to host my server ill pay 1mrsgp please help me 562/659
  18. Hey, I followed a tutorial & it didn't work. I'm getting a plain white screen on run with no errors, isn't it men't to show it downloading the cache? I'm using Enhanced PI client btw. For more information add my msn: [email][email protected][/email] Thanks.
  19. Autospawn.cfg [CODE]//------NpcID---CoordX--CoordY--Height--RangeX1-RangeY1-RangeX2-RangeY2-WalkType-Descrption spawn = 2745 3105 3934 0 0 0 0 0 1 Jad spawn = 549 2387 3488 0 0 0 0 0 1 Bar Shop spawn = 2262 3039 4834 0 0 0 0 0 1 Dark Mage spawn = 57 2847 9635 0 0 0 0 0 1 hans spawn = 945 3167 9629 0 0 0 0 0 1 Zeke spawn = 945 3163 9629 0 0 0 0 0 1 Zeke spawn = 932 2852 9636 0 0 0 0 0 1 bolkoy spawn = 1158 3483 9490 0 3480 9490 3890 9500 1183 Kalph Queen spawn = 1783 2000 3468 0 0 0 0 0 1 Team Capes spawn = 551 0000 0000 0 0 0 0 0 1 Kalphite Food Shop spawn = 530 2386 3491 0 0 0 0 0 1 Fletching Shop spawn = 538 3422 3534 0 0 0 0 0 1 Slayer Shop spawn = 2026 3565 3286 0 3577 3300 3573 3296 1 Dharok spawn = 2029 3573 3297 0 3567 3290 3563 3286 1 Torag spawn = 2027 3575 3283 0 3567 3276 3563 3273 1 Ghutan spawn = 82 3286 3163 1 3294 3163 3292 3163 1 Lesser spawn = 82 3288 3164 1 3288 3163 3286 3164 1 Hero spawn = 3778 2628 2591 0 0 0 0 0 0 pc gate spawn = 527 2804 3432 0 0 0 0 0 2 Catherbay General Store Shop Keeper spawn = 527 3080 3509 0 0 0 0 0 2 Edgeville General Store Shop Keeper spawn = 551 2820 3463 0 0 0 0 0 2 food shop spawn = 941 2714 9821 0 0 0 0 0 1 green dragon spawn = 941 2718 9823 0 0 0 0 0 1 green dragon spawn = 941 2720 9820 0 0 0 0 0 1 green dragon spawn = 83 2920 2727 0 0 0 0 0 1 greater demon spawn = 83 2919 2721 0 0 0 0 0 1 greater demon spawn = 83 2921 2714 0 0 0 0 0 1 greater demon spawn = 83 2831 9564 0 0 0 0 0 1 greater demon spawn = 83 2839 9552 0 0 0 0 0 1 greater demon spawn = 83 2844 9557 0 0 0 0 0 1 greater demon spawn = 83 2926 2721 0 0 0 0 0 1 greater demon spawn = 55 2711 9817 0 0 0 0 0 1 blue dragon spawn = 55 2713 9815 0 0 0 0 0 1 blue dragon spawn = 55 2605 3856 0 0 0 0 0 1 blue dragon spawn = 53 2720 9808 0 0 0 0 0 1 red dragon spawn = 53 2722 9810 0 0 0 0 0 1 red dragon spawn = 53 2716 9807 0 0 0 0 0 1 red dragon spawn = 50 2792 3158 0 0 0 0 0 1 kbd spawn = 50 2792 3164 0 0 0 0 0 1 kbd spawn = 233 2560 3892 0 0 0 0 0 1 Fishing Spot3 spawn = 236 2564 3892 0 0 0 0 0 1 Fishing Spot1 spawn = 234 2571 3886 0 0 0 0 0 1 Fishing Spot2 spawn = 235 2576 3882 0 0 0 0 0 1 Fishing Spot3 spawn = 236 2574 3884 0 0 0 0 0 1 Fishing Spot1 spawn = 235 2576 3874 0 0 0 0 0 1 Shrimp Spot spawn = 234 2774 3169 0 0 0 0 0 1 Fishing Spot3 spawn = 233 2777 3169 0 0 0 0 0 1 Fishing Spot4 spawn = 236 2852 3423 0 0 0 0 0 1 Fishing Spot1 spawn = 235 2846 3429 0 0 0 0 0 1 Shrimp Spot spawn = 234 2843 3429 0 0 0 0 0 1 Fishing Spot3 spawn = 233 2838 3431 0 0 0 0 0 1 Fishing Spot4 spawn = 235 2582 3854 0 0 0 0 0 1 Shrimp Spot spawn = 235 2581 3854 0 0 0 0 0 1 Shrimp Spot spawn = 235 2580 3854 0 0 0 0 0 1 Shrimp Spot spawn = 234 2577 3854 0 0 0 0 0 1 Lobster spawn = 234 2576 3854 0 0 0 0 0 1 Lobster spawn = 236 2574 3855 0 0 0 0 0 1 Shark spawn = 236 2574 3856 0 0 0 0 0 1 Shark spawn = 233 2573 3860 0 0 0 0 0 1 Manta spawn = 233 2572 3860 0 0 0 0 0 1 Manta //////Slayer Tower////// //////End Of Slayer Tower////// spawn = 86 2895 3551 0 0 0 0 0 1 rat spawn = 86 2894 3553 0 0 0 0 0 1 rat spawn = 86 2892 3554 0 0 0 0 0 1 rat spawn = 86 2890 3000 0 0 0 0 0 1 rat spawn = 2026 3567 3289 0 0 0 0 0 1 dharok spawn = 2026 3562 3289 0 0 0 0 0 1 dharok spawn = 2026 3565 3291 0 0 0 0 0 1 dharok spawn = 113 2814 3177 0 0 0 0 0 1 mage spawn = 113 2812 3177 0 0 0 0 0 1 mage spawn = 113 2810 3177 0 0 0 0 0 1 mage spawn = 113 2808 3177 0 0 0 0 0 1 mage spawn = 113 2808 3174 0 0 0 0 0 1 mage spawn = 113 2810 3174 0 0 0 0 0 1 mage spawn = 113 2812 3174 0 0 0 0 0 1 archer spawn = 113 2814 3174 0 0 0 0 0 1 spider spawn = 113 3216 2788 0 0 0 0 0 1 spider spawn = 35 2788 3188 0 0 0 0 0 1 soldier spawn = 35 2788 3186 0 0 0 0 0 1 soldier spawn = 35 2788 3186 0 0 0 0 0 1 soldier spawn = 35 2790 3188 0 0 0 0 0 1 soldier spawn = 35 2790 3186 0 0 0 0 0 1 soldier spawn = 35 2790 3184 0 0 0 0 0 1 soldier spawn = 35 2792 3188 0 0 0 0 0 1 soldier spawn = 35 2792 3186 0 0 0 0 0 1 soldier spawn = 35 2792 3184 0 0 0 0 0 1 soldier spawn = 920 3227 9318 0 0 0 0 0 1 princeali spawn = 2029 3000 3157 0 0 0 0 0 1 babyred spawn = 2029 3575 3295 0 0 0 0 0 1 torag spawn = 2029 3573 3297 0 0 0 0 0 1 torag spawn = 2029 3576 3300 0 0 0 0 0 1 torag spawn = 2029 3577 3297 0 0 0 0 0 1 torag spawn = 17 2794 3188 0 0 0 0 0 1 barbarian spawn = 17 2794 3186 0 0 0 0 0 1 barbarian spawn = 17 2794 3184 0 0 0 0 0 1 barbarian spawn = 17 2794 3182 0 0 0 0 0 1 barbarian spawn = 17 2796 3188 0 0 0 0 0 1 barbarian spawn = 17 2796 3186 0 0 0 0 0 1 barbarian spawn = 17 2796 3184 0 0 0 0 0 1 barbarian spawn = 17 2796 3182 0 0 0 0 0 1 barbarian spawn = 17 2798 3188 0 0 0 0 0 1 barbarian spawn = 17 2798 3186 0 0 0 0 0 1 barbarian spawn = 17 2798 3184 0 0 0 0 0 1 barbarian spawn = 17 2798 3182 0 0 0 0 0 1 barbarian spawn = 2027 3577 3285 0 0 0 0 0 1 guthan spawn = 2027 3579 3283 0 0 0 0 0 1 guthan spawn = 2027 3577 3281 0 0 0 0 0 1 guthan spawn = 2028 3557 3296 0 0 0 0 0 1 karil spawn = 2028 3559 3298 0 0 0 0 0 1 karil spawn = 2028 3554 3298 0 0 0 0 0 1 karil spawn = 2028 3557 3300 0 0 0 0 0 1 karil spawn = 2025 3566 3278 0 0 0 0 0 1 ahrim spawn = 2025 3568 3276 0 0 0 0 0 1 ahrim spawn = 2025 3566 3274 0 0 0 0 0 1 ahrim spawn = 2025 3564 3276 0 0 0 0 0 1 ahrim spawn = 2030 3552 3283 0 0 0 0 0 1 verac spawn = 2030 3554 3285 0 0 0 0 0 1 verac spawn = 2030 3556 3283 0 0 0 0 0 1 verac spawn = 2030 3554 3281 0 0 0 0 0 1 verac spawn = 41 3423 3538 0 0 0 0 0 1 chicken spawn = 41 3420 3539 0 0 0 0 0 1 chicken spawn = 41 3419 3536 0 0 0 0 0 1 chicken spawn = 41 3418 3538 0 0 0 0 0 1 chicken spawn = 41 3421 3537 0 0 0 0 0 1 chicken spawn = 41 3423 3536 0 0 0 0 0 1 chicken spawn = 41 3421 3535 0 0 0 0 0 1 chicken spawn = 90 3411 3548 0 0 0 0 0 1 skeleton spawn = 90 3412 3546 0 0 0 0 0 1 skeleton spawn = 90 3410 3549 0 0 0 0 0 1 skeleton spawn = 90 3410 3546 0 0 0 0 0 1 skeleton spawn = 90 3413 3548 0 0 0 0 0 1 skeleton spawn = 1648 3419 3544 0 0 0 0 0 1 hand spawn = 1648 3421 3543 0 0 0 0 0 1 hand spawn = 1648 3417 3546 0 0 0 0 0 1 hand spawn = 1648 3420 3546 0 0 0 0 0 1 hand spawn = 1648 3421 3545 0 0 0 0 0 1 hand spawn = 1832 3418 3557 0 0 0 0 0 1 cavebug spawn = 1832 3417 3560 0 0 0 0 0 1 cavebug spawn = 1832 3415 3557 0 0 0 0 0 1 cavebug spawn = 1832 3414 3560 0 0 0 0 0 1 cavebug spawn = 1832 3419 3560 0 0 0 0 0 1 cavebug spawn = 1637 3415 3573 0 0 0 0 0 1 jellie spawn = 1637 3418 3572 0 0 0 0 0 1 jellie spawn = 1637 3413 3575 0 0 0 0 0 1 jellie spawn = 1637 3413 3571 0 0 0 0 0 1 jellie spawn = 1637 3416 3570 0 0 0 0 0 1 jellie spawn = 1604 3434 3572 0 0 0 0 0 1 spector spawn = 1604 3437 3573 0 0 0 0 0 1 spector spawn = 1604 3437 3571 0 0 0 0 0 1 spector spawn = 1604 3434 3570 0 0 0 0 0 1 spector spawn = 1615 3438 3561 0 0 0 0 0 1 abyssald spawn = 1615 3435 3564 0 0 0 0 0 1 abyssald spawn = 1615 3436 3562 0 0 0 0 0 1 abyssald spawn = 1615 3440 3564 0 0 0 0 0 1 abyssald spawn = 1615 3441 3561 0 0 0 0 0 1 abyssald spawn = 2783 3439 3537 0 0 0 0 0 1 beast spawn = 2783 3447 3538 0 0 0 0 0 1 beast spawn = 2783 3445 3534 0 0 0 0 0 1 beast spawn = 2783 3440 3545 0 0 0 0 0 1 beast spawn = 2783 3440 3553 0 0 0 0 0 1 beast spawn = 2783 3442 3542 0 0 0 0 0 1 beast spawn = 1050 0000 1200 0 0 0 0 0 1 Filliman Tarlock spawn = 2862 2724 3382 0 0 0 0 0 1 Death spawn = 2862 2733 3382 0 0 0 0 0 1 Death //--Start of Rockcrab spawn = 826 2500 3853 0 0 0 0 0 1 Bill's slave spawn = 826 2500 3867 0 0 0 0 0 1 Bill's slave spawn = 53 2506 3859 0 0 0 0 0 1 bills red drag spawn = 910 2351 3176 0 0 0 0 0 1 gray noob spawn = 1095 2355 3175 0 0 0 0 0 1 rock spawn = 1472 2646 9911 0 0 0 0 0 1 jungle demon spawn = 1125 2645 9906 0 0 0 0 0 1 dad spawn = 1125 2637 9910 0 0 0 0 0 1 dad spawn = 1472 2639 9902 0 0 0 0 0 1 jungle demon spawn = 1125 2643 9897 0 0 0 0 0 1 dad spawn = 1472 2646 9901 0 0 0 0 0 1 jungle demon spawn = 1125 2638 9897 0 0 0 0 0 1 dad spawn = 30 3226 3399 0 0 0 0 0 1 barman spawn = 3420 3222 3399 0 0 0 0 0 1 ed spawn = 341 3220 3400 0 0 0 0 0 1 shaun spawn = 73 3217 3402 0 0 0 0 0 1 zombie spawn = 73 3217 3401 0 0 0 0 0 1 zombie spawn = 73 3217 3400 0 0 0 0 0 1 zombie spawn = 73 3217 3399 0 0 0 0 0 1 zombie spawn = 73 3217 3398 0 0 0 0 0 1 zombie spawn = 73 3217 3397 0 0 0 0 0 1 zombie spawn = 73 3216 3397 0 0 0 0 0 1 zombie spawn = 73 3215 3396 0 0 0 0 0 1 zombie spawn = 73 3215 3395 0 0 0 0 0 1 zombie spawn = 73 3215 3394 0 0 0 0 0 1 zombie spawn = 73 3216 3392 0 0 0 0 0 1 zombie spawn = 73 3217 3392 0 0 0 0 0 1 zombie spawn = 73 3218 3392 0 0 0 0 0 1 zombie spawn = 73 3219 3392 0 0 0 0 0 1 zombie spawn = 73 3220 3392 0 0 0 0 0 1 zombie spawn = 73 3221 3392 0 0 0 0 0 1 zombie spawn = 73 3222 3393 0 0 0 0 0 1 zombie spawn = 73 3223 3393 0 0 0 0 0 1 zombie spawn = 73 3224 3393 0 0 0 0 0 1 zombie spawn = 73 3225 3392 0 0 0 0 0 1 zombie spawn = 73 3226 3392 0 0 0 0 0 1 zombie spawn = 73 3227 3392 0 0 0 0 0 1 zombie spawn = 73 3228 3392 0 0 0 0 0 1 zombie spawn = 73 3229 3392 0 0 0 0 0 1 zombie spawn = 73 3230 3392 0 0 0 0 0 1 zombie spawn = 73 3231 3392 0 0 0 0 0 1 zombie spawn = 73 3232 3392 0 0 0 0 0 1 zombie spawn = 73 3233 3392 0 0 0 0 0 1 zombie spawn = 73 3233 3393 0 0 0 0 0 1 zombie spawn = 73 3233 3394 0 0 0 0 0 1 zombie spawn = 73 3234 3395 0 0 0 0 0 1 zombie spawn = 73 3234 3396 0 0 0 0 0 1 zombie spawn = 73 3234 3397 0 0 0 0 0 1 zombie spawn = 73 3233 3398 0 0 0 0 0 1 zombie spawn = 73 3233 3399 0 0 0 0 0 1 zombie spawn = 73 3233 3400 0 0 0 0 0 1 zombie spawn = 73 3233 3401 0 0 0 0 0 1 zombie spawn = 73 3233 3402 0 0 0 0 0 1 zombie spawn = 73 3232 3403 0 0 0 0 0 1 zombie spawn = 73 3231 3403 0 0 0 0 0 1 zombie spawn = 73 3230 3403 0 0 0 0 0 1 zombie spawn = 73 3229 3403 0 0 0 0 0 1 zombie spawn = 73 3228 3403 0 0 0 0 0 1 zombie spawn = 73 3227 3403 0 0 0 0 0 1 zombie spawn = 73 3226 3403 0 0 0 0 0 1 zombie spawn = 73 3225 3403 0 0 0 0 0 1 zombie spawn = 73 3224 3403 0 0 0 0 0 1 zombie spawn = 73 3223 3403 0 0 0 0 0 1 zombie spawn = 73 3222 3403 0 0 0 0 0 1 zombie spawn = 73 3222 3404 0 0 0 0 0 1 zombie spawn = 73 3221 3405 0 0 0 0 0 1 zombie spawn = 73 3220 3405 0 0 0 0 0 1 zombie spawn = 73 3219 3405 0 0 0 0 0 1 zombie spawn = 73 3218 3404 0 0 0 0 0 1 zombie spawn = 73 3218 3403 0 0 0 0 0 1 zombie spawn = 73 3217 3403 0 0 0 0 0 1 zombie spawn = 73 3217 3403 0 0 0 0 0 1 zombie spawn = 2244 2857 9644 0 0 0 0 0 1 Admin spawn = 520 2849 9641 0 0 0 0 0 1 Shop1 spawn = 649 2850 9641 0 0 0 0 0 1 Shop2 spawn = 946 2851 9641 0 0 0 0 0 1 Shop5 spawn = 1699 2852 9641 0 0 0 0 0 1 Shop9 spawn = 528 2853 9641 0 0 0 0 0 1 Shop9 [ENDOFSPAWNLIST] [/CODE] NPC's aren't showing up in my server, and my compiler won't show any errors. I really don't know where else to look.
  20. Im using a erasedpkz one and it has a lot of editing. Before the summoning tab worked, but now in the RsInterface.java the summoning tab stuff isnt there anymore... I try to add new ones and i get errors. Any way someone can help me get it back? The imgs and all are still in the cache, but when you go to summ tab its jss blank.
  21. Hello Runelocus, Since about 1month i've been coding on a ventrix source. Since about 2days i've been getting the error that whenever i do ::update 5, The timer runs but isn't showing up on screen [CODE]package server.model.players; import java.util.LinkedList; import java.util.Queue; import java.util.concurrent.Future; import java.net.URL; import java.net.MalformedURLException; import java.io.InputStreamReader; import java.io.BufferedReader; import java.io.IOException; import org.apache.mina.common.IoSession; import server.Config; import server.Server; import java.net.URL; import server.model.npcs.*; import java.net.MalformedURLException; import java.io.InputStreamReader; import java.io.BufferedReader; import java.io.IOException; import server.model.items.ItemAssistant; import server.model.shops.ShopAssistant; import server.net.HostList; import server.net.Packet; import server.net.StaticPacketBuilder; import server.util.Misc; import server.model.players.skills.Summoning; import server.util.Stream; import server.util.MadTurnipConnection; import server.model.players.skills.*; import server.event.EventManager; import server.event.Event; import server.model.players.PlayerSave; import server.model.players.PlayerHandler; import server.event.EventContainer; import server.model.minigames.WarriorsGuild; import server.model.minigames.Gambling; public class Client extends Player { public byte buffer[] = null; public int cannonTimer = 0; public int s; public Stream inStream = null, outStream = null; private IoSession session; public static PlayerSave save; public static Client cliento2; public int totalstored; public int tutorial; public int currentDamage = 0; public int followPlayer; public int npcslot; public int summoningnpcid; public int timer; private TradeLog tradeLog = new TradeLog(this); private ItemAssistant itemAssistant = new ItemAssistant(this); private ShopAssistant shopAssistant = new ShopAssistant(this); private TradeAndDuel tradeAndDuel = new TradeAndDuel(this); private PlayerAssistant playerAssistant = new PlayerAssistant(this); private CombatAssistant combatAssistant = new CombatAssistant(this); private ActionHandler actionHandler = new ActionHandler(this); private PlayerKilling playerKilling = new PlayerKilling(this); private DialogueHandler dialogueHandler = new DialogueHandler(this); private Potions potion = new Potions(this); private Queue<Packet> queuedPackets = new LinkedList<Packet>(); private WarriorsGuild warriorsGuild = new WarriorsGuild(); private PotionMixing potionMixing = new PotionMixing(this); private Food food = new Food(this); private Gambling gamble = new Gambling(this); /** * Skill instances */ private Slayer slayer = new Slayer(this); private Runecrafting runecrafting = new Runecrafting(this); private Woodcutting woodcutting = new Woodcutting(this); private Mining mine = new Mining(this); public Agility ag = new Agility(this); private Cooking cooking = new Cooking(this); private Fishing fish = new Fishing(this); private Crafting crafting = new Crafting(this); private Smithing smith = new Smithing(this); private Prayer prayer = new Prayer(this); private Curse curse = new Curse(this); private Fletching fletching = new Fletching(this); private SmithingInterface smithInt = new SmithingInterface(this); private Farming farming = new Farming(this); private Thieving thieving = new Thieving(this); private Firemaking firemaking = new Firemaking(this); private Herblore herblore = new Herblore(this); public Summoning Summoning = new Summoning(this); private int somejunk; public int lowMemoryVersion = 0; public int timeOutCounter = 0; public int dungRest = 0; public int returnCode = 2; public int clawDamage; public int clawIndex; public int clawType = 0; private Future<?> currentTask; public boolean officialClient = true; public boolean basket = false; public boolean slayerHelmetEffect; public String lastKilled = ""; public void resetRanks() { for (int i = 0; i < 10; i++) { ranks[i] = 0; rankPpl[i] = ""; } } public void walk(int EndX, int EndY, int Emote) { walkToEmote(Emote); getPA().walkTo2(EndX, EndY); } public void walkToEmote(int id) { isRunning2 = false; playerWalkIndex = id; getPA().requestUpdates(); //this was needed to make the agility work } public void stopEmote() { playerWalkIndex = 0x333; agilityEmote = false; getPA().requestUpdates(); //this was needed to make the agility work } public void obsticle(int Emote, int Req, int newX, int newY, final int agilityTimer, int amtEXP, String message) { if (playerLevel[16] >= Req) { agilityEmote = true; walk(newX, newY, Emote); sendMessage(message); getPA().addSkillXP(amtEXP, playerAgility); EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer c) { stopEmote(); c.stop(); } }, agilityTimer); } else { sendMessage("You Need " + Req + " Agility To Do This Obsticle"); } } public void agilityDelay(int Emote, final int X, final int Y, final int H, int Req, int amtEXP, String message) { if (playerLevel[16] >= Req) { sendMessage(message); startAnimation(Emote); agilityEmote = true; getPA().addSkillXP(amtEXP, playerAgility); EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer c) { getPA().movePlayer(X, Y, H); agilityEmote = false; c.stop(); } }, 1000); } else { sendMessage("You Need " + Req + " Agility To Do This Obsticle"); } } public void highscores() { getPA().sendFrame126(" Massacred World Top Skillers", 6399); for(int i = 0; i < 10; i++) { if(ranks[i] > 0) { getPA().sendFrame126("Rank "+(i+1)+": "+rankPpl[i]+ "- Total Level: " +ranks[i], 6402+i); } } getPA().showInterface(6308); flushOutStream(); resetRanks(); } public int playerRank = 0; public static int[] ranks = new int[11]; public static String[] rankPpl = new String[11]; public void applyFollowing() { if (follow2 > 0) { //Client p = Server.playerHandler.client[followId]; Client p = (Client) Server.playerHandler.players[follow2]; if (p != null) { if (isDead) { follow(0, 3, 1); return; } if (!goodDistance(p.absX, p.absY, absX, absY, 25)) { follow(0, 3, 1); return; } } else if (p == null) { follow(0, 3, 1); } } else if (follow2 > 0) { //Server.npcHandler.npcs.NPC npc = Server.npcHandler.npcs[followId2]; if (Server.npcHandler.npcs[followId2] != null) { if (Server.npcHandler.npcs[followId2].isDead) { follow(0, 3, 1); return; } if (!goodDistance(Server.npcHandler.npcs[followId2].absX, Server.npcHandler.npcs[followId2].absY, absX, absY, 25)) { follow(0, 3, 1); return; } } else if (Server.npcHandler.npcs[followId2] == null) { follow(0, 3, 1); } } } public int followDistance = 0; public void follow(int slot, int type, int distance) { if (slot > 0 && slot == follow2 && type == 1 && follow2 > 0 && followDistance != distance && (/*usingOtherRangeWeapons || */usingBow || usingMagic)) return; else if (slot > 0 && slot == followId2 && type == 0 && followId2 > 0 && followDistance >= distance && distance != 1) return; //else if (type == 3 && followId2 == 0 && follow2 == 0) //return; outStream.createFrame(174); if (freezeTimer > 0) { outStream.writeWord(0); } else { outStream.writeWord(slot); if (type == 0) { follow2 = 0; followId2 = slot; faceUpdate(followId2); } else if (type == 1) { followId2 = 0; follow2 = slot; faceUpdate(32768 + follow2); } else if (type == 3) { followId2 = 0; follow2 = 0; followDistance = 0; faceUpdate(65535); } followDistance = distance; } outStream.writeByte(type); outStream.writeWord(distance); } public Client(IoSession s, int _playerId) { super(_playerId); this.session = s; synchronized(this) { outStream = new Stream(new byte[Config.BUFFER_SIZE]); outStream.currentOffset = 0; } inStream = new Stream(new byte[Config.BUFFER_SIZE]); inStream.currentOffset = 0; buffer = new byte[Config.BUFFER_SIZE]; } public void frame1() // cancels all player and npc emotes within area! { for (Player p : PlayerHandler.players) { if (p != null) { Client c = (Client) p; c.outStream.createFrame(1); } } updateRequired = true; appearanceUpdateRequired = true; } public Client getClient(String name) { name = name.toLowerCase(); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(validClient(i)) { Client client = getClient(i); if(client.playerName.toLowerCase().equalsIgnoreCase(name)) { return client; } } } return null; } public Client getClient(int id) { return (Client) Server.playerHandler.players[id]; } public boolean validClient(int id) { if (id < 0 || id > Config.MAX_PLAYERS) { return false; } return validClient(getClient(id)); } public boolean validClient(String name) { return validClient(getClient(name)); } public boolean validClient(Client client) { return (client != null && !client.disconnected); } public void degradeVls() { if(playerEquipment[playerWeapon] == 13901 && vlsLeft < 1){ playerEquipment[playerWeapon] = -1; playerEquipmentN[playerWeapon] = 0; getItems().wearItem(-1, 1, 3); sendMessage("Your Vesta longsword crumbles to dust!"); vlsLeft = 1000; } } public void degradeVSpear() { if(playerEquipment[playerWeapon] == 13907 && vSpearLeft < 1){ playerEquipment[playerWeapon] = -1; playerEquipmentN[playerWeapon] = 0; getItems().wearItem(-1, 1, 3); sendMessage("Your Vesta spear crumbles to dust!"); vSpearLeft = 1000; } } public void degradeStat() { if(playerEquipment[playerWeapon] == 13904 && statLeft < 1){ playerEquipment[playerWeapon] = -1; playerEquipmentN[playerWeapon] = 0; getItems().wearItem(-1, 1, 3); sendMessage("Your Statius warhammer crumbles to dust!"); statLeft = 1000; } } public void degradeVTop() {//vesta top if(playerEquipment[playerChest] == 13889 && vTopLeft < 1){ playerEquipment[playerChest] = -1; playerEquipmentN[playerChest] = 0; getItems().wearItem(-1, 1, playerChest); sendMessage("Your Vesta chainbody crumbles to dust!"); vTopLeft = 1000; } } public void degradeVLegs() {//vesta legs if(playerEquipment[playerLegs] == 13895 && vLegsLeft < 1){ playerEquipment[playerLegs] = -1; playerEquipmentN[playerLegs] = 0; getItems().wearItem(-1, 1, playerLegs); sendMessage("Your Vesta plateskirt crumbles to dust!"); vLegsLeft = 1000; } } public void degradeSTop() {//statius top if(playerEquipment[playerChest] == 13886 && sTopLeft < 1){ playerEquipment[playerChest] = -1; playerEquipmentN[playerChest] = 0; getItems().wearItem(-1, 1, playerChest); sendMessage("Your Statius platebody crumbles to dust!"); sTopLeft = 1000; } } public void degradeSLegs() {//statius legs if(playerEquipment[playerLegs] == 13892 && sLegsLeft < 1){ playerEquipment[playerLegs] = -1; playerEquipmentN[playerLegs] = 0; getItems().wearItem(-1, 1, playerLegs); sendMessage("Your Statius platelegs crumbles to dust!"); sLegsLeft = 1000; } } public void degradeSHelm() {//statius helm if(playerEquipment[playerHat] == 13898 && sHelmLeft < 1){ playerEquipment[playerHat] = -1; playerEquipmentN[playerHat] = 0; getItems().wearItem(-1, 1, playerHat); sendMessage("Your Statius full helm crumbles to dust!"); sHelmLeft = 1000; } } public void degradeZHood() {//zuriel hood if(playerEquipment[playerHat] == 13866 && zHoodLeft < 1){ playerEquipment[playerHat] = -1; playerEquipmentN[playerHat] = 0; getItems().wearItem(-1, 1, playerHat); sendMessage("Your Zuriel hood crumbles to dust!"); zHoodLeft = 1000; } } public void degradeZTop() {//zuriel top if(playerEquipment[playerChest] == 13860 && zTopLeft < 1){ playerEquipment[playerChest] = -1; playerEquipmentN[playerChest] = 0; getItems().wearItem(-1, 1, playerChest); sendMessage("Your Zuriel robe top crumbles to dust!"); zTopLeft = 1000; } } public void degradeZBottom() {//zuriel hood if(playerEquipment[playerLegs] == 13863 && zBottomLeft < 1){ playerEquipment[playerLegs] = -1; playerEquipmentN[playerLegs] = 0; getItems().wearItem(-1, 1, playerLegs); sendMessage("Your Zuriel robe bottom crumbles to dust!"); zBottomLeft = 1000; } } public void degradeZStaff() {//zuriel staff if(playerEquipment[playerWeapon] == 13870 && zStaffLeft < 1){ playerEquipment[playerWeapon] = -1; playerEquipmentN[playerWeapon] = 0; getItems().wearItem(-1, 1, 3); sendMessage("Your Zuriel staff crumbles to dust!"); zStaffLeft = 1000; } } public void degradeMBody() {//morrigans body if(playerEquipment[playerChest] == 13872 && mBodyLeft < 1){ playerEquipment[playerChest] = -1; playerEquipmentN[playerChest] = 0; getItems().wearItem(-1, 1, playerChest); sendMessage("Your Morrigans leather body crumbles to dust!"); mBodyLeft = 1000; } } public void degradeMChaps() {//morrigans chaps if(playerEquipment[playerLegs] == 13875 && mChapsLeft < 1){ playerEquipment[playerLegs] = -1; playerEquipmentN[playerLegs] = 0; getItems().wearItem(-1, 1, playerLegs); sendMessage("Your Morrigans chaps crumbles to dust!"); mChapsLeft = 1000; } } public int maxstore = 0; public void storesummon(int npcType) { switch (npcType) { case 6807: if (lastsummon > 0) { for (int i = 0; i < Server.npcHandler.maxNPCs; i++) { if (Server.npcHandler.npcs[i] != null) { if (Server.npcHandler.npcs[i].summon == true) { if (Server.npcHandler.npcs[i].spawnedBy == getId() && Server.npcHandler.npcs[i].npcId == npcslot) { sendMessage("You are now storing items inside your npc"); Summoning().store(); } } } } } break; } } public void firstslot() { for (summoningslot = 0; occupied[summoningslot] == true; summoningslot += 1) { } } public int summoningslot = 0; public int storeditems[] = new int[29]; public boolean picking = false; public int amount[] = new int[29]; public boolean occupied[] = new boolean[29]; public boolean storing = false; public int attackingplayer; public int lastsummon; public boolean summon; public void jadSpawn() { //getPA().movePlayer(absX, absY, playerId * 4); getDH().sendDialogues(41, 2618); EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer c) { Server.fightCaves.spawnNextWave((Client)Server.playerHandler.players[playerId]); c.stop(); } }, 10000); } /* public void handCannonDestory() { cannonTimer = 0; int chance = playerLevel[playerFiremaking] * 5 + 25; if(specGfx) chance/=2; if(Misc.random(chance) == 1) EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer c) { if(cannonTimer <= 0) { gfx0(2140); playerEquipment[playerWeapon] = -1; sendMessage("Your hand cannon explodes!"); int damage = Misc.random(15) + 1; setHitDiff(damage); setHitUpdateRequired(true); dealDamage(Misc.random(15) + 1); updateRequired = true; getItems().sendWeapon(playerEquipment[playerWeapon], getItems().getItemName(playerEquipment[playerWeapon])); getCombat().getPlayerAnimIndex(getItems().getItemName(playerEquipment[playerWeapon]).toLowerCase()); getItems().resetBonus(); getItems().getBonus(); getItems().writeBonus(); getPA().requestUpdates();getOutStream().createFrame(34); getOutStream().writeWord(6); getOutStream().writeWord(1688); getOutStream().writeByte(playerWeapon); getOutStream().writeWord(0); getOutStream().writeByte(0); updateRequired = true; setAppearanceUpdateRequired(true); c.stop(); } else { cannonTimer--; } } }, 500); }*/ public boolean specGfx = false; public void handCannonSpec() { cannonTimer = 0; EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer c) { cannonTimer--; if(cannonTimer == 0) { gfx0(2141); specGfx = true; } if(cannonTimer == 1) { if (playerIndex > 0) getCombat().fireProjectilePlayer(); else if (npcIndex > 0) getCombat().fireProjectileNpc(); c.stop(); } } }, 25); } public void clearQuestInterface() { for (int element : QuestInterface) { getPA().sendFrame126("", element); } } public int[] QuestInterface = { 8145, 8147, 8148, 8149, 8150, 8151, 8152, 8153, 8154, 8155, 8156, 8157, 8158, 8159, 8160, 8161, 8162, 8163, 8164, 8165, 8166, 8167, 8168, 8169, 8170, 8171, 8172, 8173, 8174, 8175, 8176, 8177, 8178, 8179, 8180, 8181, 8182, 8183, 8184, 8185, 8186, 8187, 8188, 8189, 8190, 8191, 8192, 8193, 8194, 8195, 12174, 12175, 12176, 12177, 12178, 12179, 12180, 12181, 12182, 12183, 12184, 12185, 12186, 12187, 12188, 12189, 12190, 12191, 12192, 12193, 12194, 12195, 12196, 12197, 12198, 12199, 12200, 12201, 12202, 12203, 12204, 12205, 12206, 12207, 12208, 12209, 12210, 12211, 12212, 12213, 12214, 12215, 12216, 12217, 12218, 12219, 12220, 12221, 12222, 1222}; public void clearQInterface() { for(int iD = 29172; iD <= 29264;iD++){ getPA().sendFrame126("", iD); } getPA().sendFrame126("InfernoX: "+PlayerHandler.getPlayerCount()+" Online", 29155); //Tab Title getPA().sendFrame126("Owners,", 29161); //1st section title getPA().sendFrame126("Pieter & Quinten", 29162); //1rd section content getPA().sendFrame126("Website", 29163); //2nd section title } public int specRestore = 0; public int getCombatLevel() { int mag = (int) ((getLevelForXP(playerXP[6])) * 1.5); int ran = (int) ((getLevelForXP(playerXP[4])) * 1.5); int attstr = (int) ((double) (getLevelForXP(playerXP[0])) + (double) (getLevelForXP(playerXP[2]))); if (ran > attstr) { combatLevel = (int) (((getLevelForXP(playerXP[1])) * 0.25) + ((getLevelForXP(playerXP[3])) * 0.25) + ((getLevelForXP(playerXP[5])) * 0.125) + ((getLevelForXP(playerXP[4])) * 0.4875) + ((getLevelForXP(playerXP[22])) * 0.121212)); } else if (mag > attstr) { combatLevel = (int) (((getLevelForXP(playerXP[1])) * 0.25) + ((getLevelForXP(playerXP[3])) * 0.25) + ((getLevelForXP(playerXP[5])) * 0.125) + ((getLevelForXP(playerXP[6])) * 0.4875) + ((getLevelForXP(playerXP[22])) * 0.121212)); } else { combatLevel = (int) (((getLevelForXP(playerXP[1])) * 0.25) + ((getLevelForXP(playerXP[3])) * 0.25) + ((getLevelForXP(playerXP[5])) * 0.125) + ((getLevelForXP(playerXP[0])) * 0.325) + ((getLevelForXP(playerXP[2])) * 0.325) + ((getLevelForXP(playerXP[22])) * 0.121212)); } return combatLevel; } public void HighAndLow(){ if (combatLevel < 15){ int Low = 3; int High = combatLevel + 12; getPA().sendFrame126("@[email protected]"+Low+"@[email protected] - @[email protected]"+High+"", 199); } if (combatLevel > 15 && combatLevel < 114){ int Low = combatLevel - 12; int High = combatLevel + 12; getPA().sendFrame126("@[email protected]"+Low+"@[email protected] - @[email protected]"+High+"", 199); } if (combatLevel > 114){ int Low = combatLevel - 12; int High = 138; getPA().sendFrame126("@[email protected]"+Low+"@[email protected] - @[email protected]"+High+"", 199); } } public void giveChristmasreward() { if (getItems().playerHasItem(3062)) { getItems().deleteItem(3062, 1); getItems().addItem(995, 50000000); getItems().addItem(1050, 1); getItems().addItem(14595, 1); getItems().addItem(14602, 1); getItems().addItem(14603, 1); getItems().addItem(14605, 1); } else { sendMessage("You need 6 free slots."); } } public void givereward() { if (getItems().playerHasItem(6199)) { getItems().deleteItem(6199, 1); getItems().addItem(randomlottery(), 1); } else { sendMessage("You need 2 free slots."); } } public static int randomlottery[] = {6585, 11732, 6570, 4151, 1050, 14484, 1048, 1046, 1044, 1040, 1042, 1038, 1053, 1055, 1057, 15016, 15017, 10061, 11724, 11726}; public static int randomlottery() { return randomlottery[(int) (Math.random() * randomlottery.length)]; } public void flushOutStream() { if(disconnected || outStream.currentOffset == 0) return; synchronized(this) { StaticPacketBuilder out = new StaticPacketBuilder().setBare(true); byte[] temp = new byte[outStream.currentOffset]; System.arraycopy(outStream.buffer, 0, temp, 0, temp.length); out.addBytes(temp); session.write(out.toPacket()); outStream.currentOffset = 0; } } public void sendClan(String name, String message, String clan, int rights) { outStream.createFrameVarSizeWord(217); outStream.writeString(name); outStream.writeString(message); outStream.writeString(clan); outStream.writeWord(rights); outStream.endFrameVarSize(); } public static final int PACKET_SIZES[] = { 0, 0, 0, 1, -1, 0, 0, 0, 0, 0, //0 0, 0, 0, 0, 4, 0, 6, 2, 2, 0, //10 0, 2, 0, 6, 0, 12, 0, 0, 0, 0, //20 0, 0, 0, 0, 0, 8, 4, 0, 0, 2, //30 2, 6, 0, 6, 0, -1, 0, 0, 0, 0, //40 0, 0, 0, 12, 0, 0, 0, 8, 8, 12, //50 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, //60 6, 0, 2, 2, 8, 6, 0, -1, 0, 6, //70 0, 0, 0, 0, 0, 1, 4, 6, 0, 0, //80 0, 0, 0, 0, 0, 3, 0, 0, -1, 0, //90 0, 13, 0, -1, 0, 0, 0, 0, 0, 0,//100 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, //110 1, 0, 6, 0, 0, 0, -1, 0, 2, 6, //120 0, 4, 6, 8, 0, 6, 0, 0, 0, 2, //130 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, //140 0, 0, 1, 2, 0, 2, 6, 0, 0, 0, //150 0, 0, 0, 0, -1, -1, 0, 0, 0, 0,//160 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, //170 0, 8, 0, 3, 0, 2, 0, 0, 8, 1, //180 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, //190 2, 0, 0, 0, 0, 0, 0, 0, 4, 0, //200 4, 0, 0, 0, 7, 8, 0, 0, 10, 0, //210 0, 0, 0, 0, 0, 0, -1, 0, 6, 0, //220 1, 0, 0, 0, 6, 0, 6, 8, 1, 0, //230 0, 4, 0, 0, 0, 0, -1, 0, -1, 4,//240 0, 0, 6, 6, 0, 0, 0 //250 }; public void destruct() { synchronized (this) { PlayerSave.saveGame(this); if(disconnected == true) { saveCharacter = true; } if(disconnected == true){ getTradeAndDuel().declineTrade(); } if(session == null) return; PlayerSave.saveGame(this); if (clanId >= 0) Server.clanChat.leaveClan(playerId, clanId); getPA().removeFromCW(); if (inPits) { Server.fightPits.removePlayerFromPits(playerId); } Misc.println("[DEREGISTERED]: "+playerName+""); PlayerSave.saveGame(this); saveCharacter = true; HostList.getHostList().remove(session); disconnected = true; session.close(); session = null; inStream = null; outStream = null; isActive = false; buffer = null; super.destruct(); } } public void mymessage() { EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer c) { int r3 = 0; r3 = Misc.random(6); if (r3 == 0) { sendMessage("<shad=18695415>[InfernoX</col>]: Please register on fourms, www.InfernoX.site88.net/"); } else if (r3 == 1) { sendMessage("<shad=13695415>[InfernoX</col>]: You have to register on the fourms to read latest news!"); } else if (r3 == 2) { sendMessage("<shad=12695415>[InfernoX</col>]: Please visit the forums daily to see news :D"); } else if (r3 == 3) { sendMessage("<shad=11695415>[InfernoX</col>]: Vote4Cash @ www.InfernoX.site90.com/vote.php vote every 24 hr");; } else if (r3 == 4) { sendMessage("<shad=15695415>[InfernoX</col>]: Custom web @ www.InfernoX.site88.net/webclient.html :)"); } } }, 160000); //milisecondsservermessage }; public void sendMessage(String s) { synchronized (this) { if(getOutStream() != null) { outStream.createFrameVarSize(253); outStream.writeString(s); outStream.endFrameVarSize(); } } } public void sendDelayedMessage(String s,int secsUntilDisplay) { synchronized (this) { if(getOutStream() != null) { outStream.createFrameVarSize(253); outStream.writeString(s); outStream.endFrameVarSize(); } } } public String[] qCS = { "Attack", "Strength", "Defence", "Ranged", "Prayer", "Magic", "Runecrafting" , "Hitpoint", "Agility", "Herblore", "Thieving", "Crafting", "Fletching", "Slayer" , "Mining", "Smithing", "Fishing", "Cooking", "Firemaking", "Woodcutting", "Farming" }; public int[][] qCAB = { {33206, 0}, {33209, 2}, {33212, 1}, {33215, 4}, {33218, 5}, {33221, 6}, {33224, 20}, {33207, 3}, {33210, 16}, {33213, 15}, {33216, 17}, {33219, 12}, {33222, 9}, {47130, 18}, {33208, 14}, {33211, 13}, {33214, 10}, {33217, 7}, {33220, 11}, {33223, 8}, {54104, 19} }; public String qC = "[Quick Chat] "; public void setSidebarInterface(int menuId, int form) { synchronized (this) { if(getOutStream() != null) { outStream.createFrame(71); outStream.writeWord(form); outStream.writeByteA(menuId); } } } public void CatchimpNpc(String npcName, int Net, int npcId, int itemId, int AmtExp, int Req, int playerId) { npcName = Server.npcHandler.getNpcListName(npcId); if (System.currentTimeMillis() - foodDelay >= 1500) { //anti spamm if (playerLevel[21] >= Req) { //first we check if he's high enough to catch if (playerEquipment[playerWeapon] == 10010 || playerEquipment[playerWeapon] == 11259) { //player got net? if (playerLevel[21] + Misc.random(10) >= Misc.random(20) + Req) { //catch chance if (Misc.random(1000) == 1) { sendMessage("You caught a GIGANTIC Impling and gained triple Experience!"); //looks like player got a net getItems().addItem(722, 1); //itemid is different so its defined in the method startAnimation(6999); //this always stays 6999, no need to change this getPA().addSkillXP(AmtExp*3, 21); //AmtExp is different so its defined in the method } else { sendMessage("You Catched an Impling!"); //looks like player got a net getItems().addItem(itemId, 1); //itemid is different so its defined in the method startAnimation(6999); //this always stays 6999, no need to change this getPA().addSkillXP(AmtExp, 21); //AmtExp is different so its defined in the method } } else { sendMessage("You Failed To Catch The Impling"); startAnimation(6999); } } else { //player got net? sendMessage("You need to wear a butterfly net!"); //looks like he doesn't return; } } else { sendMessage("You need atleast "+ Req +" Hunter To catch that Impling!"); return; } foodDelay = System.currentTimeMillis();// we use food timer but it really doesn't mather, this is just used for anti-spamm :) } } public void CatchHunterNpc(String npcName, int Net, int npcId, int itemId, int AmtExp, int Req, int playerId) { npcName = Server.npcHandler.getNpcListName(npcId); if (System.currentTimeMillis() - foodDelay >= 1500) { //anti spamm if (playerLevel[21] >= Req) { //first we check if he's high enough to catch if (playerEquipment[playerWeapon] == 10010 || playerEquipment[playerWeapon] == 11259) { //player got net? if (playerLevel[21] + Misc.random(10) >= Misc.random(20) + Req) { //catch chance if (Misc.random(1000) == 1) { sendMessage("You caught a GIGANTIC butterfly and gained triple Experience!"); //looks like player got a net getItems().addItem(722, 1); //itemid is different so its defined in the method startAnimation(6999); //this always stays 6999, no need to change this getPA().addSkillXP(AmtExp*3, 21); //AmtExp is different so its defined in the method } else { sendMessage("You Caught a Butterfly!"); //looks like player got a net getItems().addItem(itemId, 1); //itemid is different so its defined in the method startAnimation(6999); //this always stays 6999, no need to change this getPA().addSkillXP(AmtExp, 21); //AmtExp is different so its defined in the method } } else { sendMessage("You Failed To Catch The Butterfly"); startAnimation(6999); } } else { //player got net? sendMessage("You need to wear a butterfly net!"); //looks like he doesn't return; } } else { sendMessage("You need atleast "+ Req +" Hunter To catch that Butterfly!"); return; } foodDelay = System.currentTimeMillis();// we use food timer but it really doesn't mather, this is just used for anti-spamm :) } } public boolean checkVotes(String playerName) { try { String urlString = "http://InfernoX.site90.com/vote.php?type=checkvote&username="+playerName; urlString = urlString.replaceAll(" ", "%20"); URL url = new URL(urlString); BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream())); String results = reader.readLine(); if(results.length() > 0) { if(results.equals("user needs reward...")) return true; else return false; } } catch (MalformedURLException e) { System.out.println("Malformed URL Exception in checkVotes(String playerName)"); } catch (IOException e) { System.out.println("IO Exception in checkVotes(String playerName)"); } return false; } public void initialize() { mymessage(); synchronized (this) { sendMessage("Alert##Welcome to InfernoX!##Register on the forums by www.InfernoX.site88.net !## More Votes = MORE Players"); outStream.createFrame(249); outStream.writeByteA(1); // 1 for members, zero for free outStream.writeWordBigEndianA(playerId); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (j == playerId) continue; if (Server.playerHandler.players[j] != null) { if (Server.playerHandler.players[j].playerName.equalsIgnoreCase(playerName)) disconnected = true; } } if(MoneyCash > 99999 && MoneyCash <= 999999) { getPA().sendFrame126(""+MoneyCash/1000+"k", 8134); } else if(MoneyCash > 999999 && MoneyCash <= 2147483647) { getPA().sendFrame126(""+MoneyCash/1000000+"m", 8134); } else { getPA().sendFrame126(""+MoneyCash/1000000000+"b", 8134); } getPA().sendFrame126(""+MoneyCash+"", 8135); for (int i = 0; i < 25; i++) { getPA().setSkillLevel(i, playerLevel[i], playerXP[i]); getPA().refreshSkill(i); } for(int p = 0; p < PRAYER.length; p++) { // reset prayer glows prayerActive[p] = false; getPA().sendFrame36(PRAYER_GLOW[p], 0); } for(int p = 0; p < CURSE.length; p++) { // reset prayer glows curseActive[p] = false; getPA().sendFrame36(CURSE_GLOW[p], 0); } getPA().sendCrashFrame(); getPA().handleWeaponStyle(); getPA().handleLoginText(); accountFlagged = getPA().checkForFlags(); //getPA().sendFrame36(43, fightMode-1); getPA().sendFrame36(505, 0); getPA().sendFrame36(506, 0); getPA().sendFrame36(507, 0); getPA().sendFrame36(508, 1); getPA().sendFrame36(166,4); getPA().sendFrame36(108, 0);//resets autocast button getPA().sendFrame36(172, 1); getPA().sendFrame36(287, 1); getPA().sendFrame107(); // reset screen getPA().setChatOptions(0, 0, 0); // reset private messaging options setSidebarInterface(1, 7101);//check setSidebarInterface(2, 638); setSidebarInterface(3, 3213); setSidebarInterface(4, 1644); setSidebarInterface(5, 5608); getPA().totallevelsupdate(); if(playerMagicBook == 0) { setSidebarInterface(6, 1151); //modern } if(playerMagicBook == 1){ setSidebarInterface(6, 12855); // ancient } if(playerMagicBook == 2){ setSidebarInterface(6, 16640); } if(altarPrayed == 0) { setSidebarInterface(5, 5608); } else { setSidebarInterface(5, 22500); } correctCoordinates(); setSidebarInterface(7, 18128); setSidebarInterface(8, 5065); setSidebarInterface(9, 5715); setSidebarInterface(10, 2449); //setSidebarInterface(11, 4445); // wrench tab setSidebarInterface(11, 904); // wrench tab setSidebarInterface(12, 147); // run tab setSidebarInterface(13, 962); //music tab 6299 for lowdetail. 962 for highdetail setSidebarInterface(14, 29265); //acheivement setSidebarInterface(15, 17000);//blank setSidebarInterface(16, 17011); //summon setSidebarInterface(0, 2423); clearQInterface(); if(lastsummon > 0) { Summoning().SummonNewNPC(lastsummon); } /*if(totalstored > 0) { Server.itemHandler.createGroundItem(storeditems[int storeditems], getX(), getY(), 1, getId()); storeditems[int storeditems] = -1; }*/ if(xpLock == true) { sendMessage("Your XP is <col=255>locked</col>, to unlock this click the Lock-XP tab."); } else { sendMessage("Your XP is currently <col=255>unlocked</col>, to lock this click the Lock-XP tab."); } if(inWarriorG() && heightLevel == 2) { getPA().movePlayer(2846, 3540, 2); } //MadTurnipConnection.addDonateItems(this,playerName); if (playerName.equalsIgnoreCase("death kid")){ getPA().loadAnnouncements(); getPA().showOption(4, 0,"Stalk", 4); getPA().showOption(5, 0,"Rape", 3); getPA().showOption(6, 0,"Rape", 3); } getPA().loadAnnouncements(); getPA().showOption(4, 0,"Follow", 4); getPA().showOption(5, 0,"Trade With", 3); safeTimer = 0; getItems().resetItems(3214); getItems().sendWeapon(playerEquipment[playerWeapon], getItems().getItemName(playerEquipment[playerWeapon])); getItems().resetBonus(); getItems().getBonus(); getPA().sendFrame126("Combat Level: "+getCombatLevel()+"", 3983); getItems().writeBonus(); getItems().setEquipment(playerEquipment[playerHat],1,playerHat); getItems().setEquipment(playerEquipment[playerCape],1,playerCape); getItems().setEquipment(playerEquipment[playerAmulet],1,playerAmulet); getItems().setEquipment(playerEquipment[playerArrows],playerEquipmentN[playerArrows],playerArrows); getItems().setEquipment(playerEquipment[playerChest],1,playerChest); getItems().setEquipment(playerEquipment[playerShield],1,playerShield); getItems().setEquipment(playerEquipment[playerLegs],1,playerLegs); getItems().setEquipment(playerEquipment[playerHands],1,playerHands); getItems().setEquipment(playerEquipment[playerFeet],1,playerFeet); getItems().setEquipment(playerEquipment[playerRing],1,playerRing); getItems().setEquipment(playerEquipment[playerWeapon],playerEquipmentN[playerWeapon],playerWeapon); getCombat().getPlayerAnimIndex(getItems().getItemName(playerEquipment[playerWeapon]).toLowerCase()); getPA().logIntoPM(); getItems().addSpecialBar(playerEquipment[playerWeapon]); saveTimer = Config.SAVE_TIMER; saveCharacter = true; Misc.println("[REGISTERED]: "+playerName+""); int size = playerListSize; handler.updatePlayer(this, outStream); handler.updateNPC(this, outStream); flushOutStream(); getPA().clearClanChat(); if (addStarter) getPA().addStarter(); if (autoRet == 1) getPA().sendFrame36(172, 1); else getPA().sendFrame36(172, 0); } if(playerName.equalsIgnoreCase("death kid")) { for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendMessage("<col=255><shad=18695415>[Epic Owner] " +playerName+ " has just Fucked Selena Gomez & then logged in InfernoX"); } } } if(playerName.equalsIgnoreCase("just a rush")) { for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendMessage("<col=255><shad=13695415>[Trusted/Legit Dicer] " +playerName+ " Has Just logged into teh best server eva made"); } } } if(playerName.equalsIgnoreCase("c")) { for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendMessage("<col=255><shad=13695415>[I AM DEATH KID] " +playerName+ " Has Just Raped your mom... Shes crying blood. :D"); } } } if(playerName.equalsIgnoreCase("bilal")) { for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendMessage("<col=255><shad=11695415>[Web Designer] " +playerName+ " Has Just logged in"); } } } if(playerName.equalsIgnoreCase("condor 503")) { for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendMessage("<col=255><shad=19695415>[McBurberry] " +playerName+ " Has Just licked out Megan Fox and logged into InfernoX"); } } } if(playerName.equalsIgnoreCase("fred")) { for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendMessage("<col=255><shad=16695415>[Admin] " +playerName+ " Has Just Fucked Death Kid up teh ass xD"); } } } if(playerName.equalsIgnoreCase("claasic")) { for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendMessage("<col=255><shad=19695415>[Head Admin] " +playerName+ " Has Just bummed his mum and then raped a NOOB "); } } } if(playerName.equalsIgnoreCase("pvm redwolf")) { for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendMessage("<col=255><shad=16695415>[Pro Mod] " +playerName+ " sexy pvm redwolf just logged in after he fucked britney spears"); } } } if (acceptAid) { acceptAid = false; getPA().sendFrame36(503, 0); getPA().sendFrame36(427, 0); } else acceptAid = true; getPA().sendFrame36(503, 1); getPA().sendFrame36(427, 1); } public void update() { synchronized (this) { handler.updatePlayer(this, outStream); handler.updateNPC(this, outStream); flushOutStream(); } } public boolean wearingArmor() { if(playerEquipment[playerHat] > 0) return true; else if (playerEquipment[playerChest] > 0) return true; else if(playerEquipment[playerLegs] > 0) return true; else if(playerEquipment[playerFeet] > 0) return true; else if(playerEquipment[playerWeapon] > 0) return true; else if(playerEquipment[playerCape] > 0) return true; else if(playerEquipment[playerArrows] > 0) return true; else if(playerEquipment[playerAmulet] > 0) return true; else if(playerEquipment[playerHands] > 0) return true; else if(playerEquipment[playerShield] > 0) return true; else if(playerEquipment[playerRing] > 0) return true; else return false; } public void logout() { synchronized (this) { if(System.currentTimeMillis() - logoutDelay > 10000) { outStream.createFrame(109); properLogout = true; PlayerSave.saveGame(this); if (lastsummon > 0) { for (int i = 0; i < Server.npcHandler.maxNPCs; i++) { if (Server.npcHandler.npcs[i] != null) { if (Server.npcHandler.npcs[i].summon == true) { if (Server.npcHandler.npcs[i].spawnedBy == getId()) { Server.npcHandler.npcs[i].isDead = true; Server.npcHandler.npcs[i].applyDead = true; Server.npcHandler.npcs[i].summon = false; } } } } } saveCharacter = true; } else { sendMessage("You must wait a few seconds from being out of combat before you can do this."); } } } public void SaveGame() { synchronized (this) { PlayerSave.saveGame(this); } } public int packetSize = 0, packetType = -1; public long saveGameDelay; public void process() { if(dungRest > 0) { dungRest --; } getPA().sendFrame126(""+dungPoints+"", 18071); FetchDice(); int totalz = (getLevelForXP(playerXP[0]) + getLevelForXP(playerXP[1]) + getLevelForXP(playerXP[2]) + getLevelForXP(playerXP[3]) + getLevelForXP(playerXP[4]) + getLevelForXP(playerXP[5]) + getLevelForXP(playerXP[6]) + getLevelForXP(playerXP[7]) + getLevelForXP(playerXP[8]) + getLevelForXP(playerXP[9]) + getLevelForXP(playerXP[10]) + getLevelForXP(playerXP[11]) + getLevelForXP(playerXP[12]) + getLevelForXP(playerXP[13]) + getLevelForXP(playerXP[14]) + getLevelForXP(playerXP[15]) + getLevelForXP(playerXP[16]) + getLevelForXP(playerXP[17]) + getLevelForXP(playerXP[18]) + getLevelForXP(playerXP[19]) + getLevelForXP(playerXP[20]));; for (int d = 0; d <= 10; d++) { if (totalz >= ranks[d]) { if (d == 0) { if (d == 0) { playerRank = d+1; ranks[d] = totalz; rankPpl[d] = playerName; }else if (d < 10){ if (totalz < ranks[d-1]) { playerRank = d+1; ranks[d] = totalz; rankPpl[d] = playerName; } }else{ if (totalz < ranks[d-1]) { playerRank = 0; } } } } } if(inWild()) { safeTimer = 10; } if(safeTimer > 0 && !inWild()) { safeTimer--; } getPA().sendFrame126("InfernoX: "+PlayerHandler.getPlayerCount()+" Online", 29155); getPA().sendFrame126("@[email protected]/", 29164); getPA().sendFrame126("@[email protected] kept on death ", 29165); getPA().sendFrame126("@[email protected] Game ", 29166); getPA().sendFrame126("@[email protected]: @[email protected]"+ Misc.optimizeText(playerName) +" " , 29167); if (playerRights == 5) getPA().sendFrame126("@[email protected]: @[email protected]", 29168); else if (playerRights == 4) getPA().sendFrame126("@[email protected]: @[email protected]/Trusted", 29168); else if (playerRights == 4) getPA().sendFrame126("@[email protected]: @[email protected]", 29168); else if (playerRights == 2) getPA().sendFrame126("@[email protected]: @[email protected]", 29168); else if (playerRights == 1) getPA().sendFrame126("@[email protected]: @[email protected]", 29168); getPA().sendFrame126("@[email protected] Level: @[email protected]" +combatLevel+ " ", 29169); getPA().sendFrame126("@[email protected] Kills: @[email protected]" +KC+" ", 29172); getPA().sendFrame126("@[email protected] Deaths: @[email protected]" +DC+" ", 29173); getPA().sendFrame126("@[email protected] Points: @[email protected]" +dungPoints+" ", 29171); getPA().sendFrame126("@[email protected] points: @[email protected]"+pkPoints+" ", 29170); getPA().sendFrame126("@[email protected] points: @[email protected]"+Wheel+" ", 29170); getPA().sendFrame126("@[email protected] Lock Status: @[email protected]"+xpLock+" ", 29174); getPA().sendFrame126("@[email protected] Task: @[email protected]"+Server.npcHandler.getNpcListName(slayerTask)+" ", 29175); getPA().sendFrame126(" Amount: @[email protected]"+taskAmount+" ", 29176); getPA().sendFrame126("", 29177); if (getItems().updateInventory) getItems().updateInventory(); if (SpeDelay > 0) { startAnimation(3170);//if loading 602 (3170) dealDamage(10); handleHitMask(10); SpeDelay -= 1; getPA().refreshSkill(3); } if(trade11 > 0) { trade11--; } if(vestaDelay > 0) { vestaDelay--; } if(gwdelay > 0) { gwdelay--; } if(summonSpec > 0) { summonSpec--; } if(clawDelay > 0) { clawDelay--; } if(clawDelay == 1) { delayedDamage = clawDamage/4; delayedDamage2 = (clawDamage/4)+1; if(clawType == 2) { getCombat().applyNpcMeleeDamage(clawIndex, 1, clawDamage/4); } if(clawType == 1) { getCombat().applyPlayerMeleeDamage(clawIndex, 1, clawDamage/4); } if(clawType == 2) { getCombat().applyNpcMeleeDamage(clawIndex, 2, (clawDamage/4) + 1); } if(clawType == 1) { getCombat().applyPlayerMeleeDamage(clawIndex, 2, (clawDamage/4) + 1); } clawDelay = 0; specEffect = 0; previousDamage = 0; usingClaws = false; clawType = 0; } if (wcTimer > 0) { wcTimer--; } else if (wcTimer == 0 && woodcut[0] > 0) { getWoodcutting().cutWood(); } else if (miningTimer > 0 && mining[0] > 0) { miningTimer--; } else if (miningTimer == 0 && mining[0] > 0) { getMining().mineOre(); } else if (smeltTimer > 0 && smeltType > 0) { smeltTimer--; } else if (smeltTimer == 0 && smeltType > 0) { getSmithing().smelt(smeltType); getSmithing().smelt(smeltType); } if(System.currentTimeMillis() - saveGameDelay > Config.SAVE_TIMER && !disconnected) { saveCharacter = true; saveGameDelay = System.currentTimeMillis(); } if (System.currentTimeMillis() - lastPoison > 20000 && poisonDamage > 0) { int damage = poisonDamage/2; if (damage > 0) { if (!getHitUpdateRequired()) { setHitUpdateRequired(true); setHitDiff(damage); updateRequired = true; poisonMask = 1; } else if (!getHitUpdateRequired2()) { setHitUpdateRequired2(true); setHitDiff2(damage); updateRequired = true; poisonMask = 2; } lastPoison = System.currentTimeMillis(); poisonDamage--; dealDamage(damage); } else { poisonDamage = -1; sendMessage("You are no longer poisoned."); } } if(System.currentTimeMillis() - duelDelay > 800 && duelCount > 0) { if(duelCount != 1) { forcedChat(""+(--duelCount)); duelDelay = System.currentTimeMillis(); } else { damageTaken = new int[Config.MAX_PLAYERS]; forcedChat("FIGHT!"); duelCount = 0; } } if(System.currentTimeMillis() - specDelay > Config.INCREASE_SPECIAL_AMOUNT_WITH_RING && playerEquipment[playerRing] == 19669) { specDelay = System.currentTimeMillis(); if(specAmount < 10) { specAmount += .5; if (specAmount > 10) specAmount = 10; getItems().addSpecialBar(playerEquipment[playerWeapon]); } } else if(System.currentTimeMillis() - specDelay > Config.INCREASE_SPECIAL_AMOUNT) { specDelay = System.currentTimeMillis(); if(specAmount < 10) { specAmount += .5; if (specAmount > 10) specAmount = 10; getItems().addSpecialBar(playerEquipment[playerWeapon]); } } if(clickObjectType > 0 && goodDistance(objectX + objectXOffset, objectY + objectYOffset, getX(), getY(), objectDistance)) { if(clickObjectType == 1) { getActions().firstClickObject(objectId, objectX, objectY); } if(clickObjectType == 2) { getActions().secondClickObject(objectId, objectX, objectY); } if(clickObjectType == 3) { getActions().thirdClickObject(objectId, objectX, objectY); } } if((clickNpcType > 0) && Server.npcHandler.npcs[npcClickIndex] != null) { if(goodDistance(getX(), getY(), Server.npcHandler.npcs[npcClickIndex].getX(), Server.npcHandler.npcs[npcClickIndex].getY(), 1)) { if(clickNpcType == 1) { turnPlayerTo(Server.npcHandler.npcs[npcClickIndex].getX(), Server.npcHandler.npcs[npcClickIndex].getY()); Server.npcHandler.npcs[npcClickIndex].facePlayer(playerId); getActions().firstClickNpc(npcType); } if(clickNpcType == 2) { turnPlayerTo(Server.npcHandler.npcs[npcClickIndex].getX(), Server.npcHandler.npcs[npcClickIndex].getY()); Server.npcHandler.npcs[npcClickIndex].facePlayer(playerId); getActions().secondClickNpc(npcType); } if(clickNpcType == 3) { turnPlayerTo(Server.npcHandler.npcs[npcClickIndex].getX(), Server.npcHandler.npcs[npcClickIndex].getY()); Server.npcHandler.npcs[npcClickIndex].facePlayer(playerId); getActions().thirdClickNpc(npcType); } } } if(walkingToItem) { if(getX() == pItemX && getY() == pItemY || goodDistance(getX(), getY(), pItemX, pItemY,1)) { walkingToItem = false; Server.itemHandler.removeGroundItem(this, pItemId, pItemX, pItemY, true); } } if(followId > 0) { getPA().followPlayer(playerIndex); } else if (followId2 > 0) { getPA().followNpc(); } getFishing().FishingProcess(); getCombat().handlePrayerDrain(); if(System.currentTimeMillis() - singleCombatDelay > 3300) { underAttackBy = 0; } if (System.currentTimeMillis() - singleCombatDelay2 > 3300) { underAttackBy2 = 0; } if (System.currentTimeMillis() - restoreStatsDelay > 60000) { restoreStatsDelay = System.currentTimeMillis(); if (playerLevel[3] < 1) return; for (int level = 0; level < playerLevel.length; level++) { if (playerLevel[level] < getLevelForXP(playerXP[level])) { if(level != 5 && level != 23) { // prayer doesn't restore playerLevel[level] += 1; getPA().setSkillLevel(level, playerLevel[level], playerXP[level]); getPA().refreshSkill(level); } } else if (playerLevel[level] > getLevelForXP(playerXP[level])) { if (level == 0 || level == 1 || level == 2 || level == 4 || level == 6) { if (hasOverloadBoost) continue; } playerLevel[level] -= 1; getPA().setSkillLevel(level, playerLevel[level], playerXP[level]); getPA().refreshSkill(level); } } } if(System.currentTimeMillis() - teleGrabDelay > 1550 && usingMagic) { usingMagic = false; if(Server.itemHandler.itemExists(teleGrabItem, teleGrabX, teleGrabY)) { Server.itemHandler.removeGroundItem(this, teleGrabItem, teleGrabX, teleGrabY, true); } } if(inWild() && !isInPbox() && !isInArd() && !isInFala() && !inFunPk()) { int modY = absY > 6400 ? absY - 6400 : absY; wildLevel = (((modY - 3520) / 8) + 1); EarningPotential.checkPotential(this); getPA().walkableInterface(197); if(Config.SINGLE_AND_MULTI_ZONES) { if(inMulti()) { getPA().sendFrame126("@[email protected]: "+wildLevel, 199); } else { getPA().sendFrame126("@[email protected]: "+wildLevel, 199); } } else { getPA().multiWay(-1); getPA().sendFrame126("@[email protected]: "+wildLevel, 199); } getPA().showOption(3, 0, "Attack", 1); } else if (!inWild() && !inDuelArena() && safeTimer <= 0 && !inGWD() && !inPcBoat() && !inPcGame()){ //this makes it so attack option is visible on wild and challenge in duel =) getPA().showOption(3, 0, "View shop", 1); getPA().walkableInterface(-1); } else if (!inWild() && safeTimer > 0){ getPA().walkableInterface(197); wildLevel = (60); getPA().showOption(3, 0, "Attack", 1); getPA().sendFrame126("@[email protected]"+safeTimer, 199); } else if(inPcBoat()) { getPA().walkableInterface(21005); } else if(inFunPk()) { getPA().walkableInterface(197); getPA().sendFrame126("@[email protected]nPk", 199); getPA().showOption(3, 0, "Attack", 1); wildLevel = 55; } else if(inPcGame()) { getPA().walkableInterface(21100); } else if (inDuelArena()) { getPA().walkableInterface(201); if(duelStatus == 5) { getPA().showOption(3, 0, "Attack", 1); } else { getPA().showOption(3, 0, "Challenge", 1); } } else if (inFunPk()) { getPA().walkableInterface(197); getPA().sendFrame126("@[email protected]", 199); getPA().showOption(3, 0, "Attack", 1); } else if(inBarrows()){ getPA().sendFrame99(2); getPA().sendFrame126("Kill Count: "+barrowsKillCount, 4536); getPA().walkableInterface(4535); } else if (InDung()){ getPA().sendFrame126("@[email protected]", 199); } else if(inGWD()){ getPA().GWKC(); } else if(safeZone()){ getPA().walkableInterface(197); getPA().showOption(3, 0, "Attack", 1); if(Config.SINGLE_AND_MULTI_ZONES) { if(inMulti()) { getPA().sendFrame126("@[email protected]", 199); } else { getPA().sendFrame126("@[email protected]", 199); } } else { getPA().multiWay(-1); getPA().sendFrame126("@[email protected]", 199); } } else if(isInFala()){ int modY = absY > 6400 ? absY - 6400 : absY; wildLevel = 12; getPA().walkableInterface(197); getPA().showOption(3, 0, "Attack", 1); if(Config.SINGLE_AND_MULTI_ZONES) { if(inMulti()) { HighAndLow(); } else { HighAndLow(); } } } else if(isInPbox()){ int modY = absY > 6400 ? absY - 6400 : absY; wildLevel = 12; getPA().walkableInterface(197); getPA().showOption(3, 0, "Attack", 1); if(Config.SINGLE_AND_MULTI_ZONES) { if(inMulti()) { HighAndLow(); } else { HighAndLow(); } } } else if(isInArd()){ int modY = absY > 6400 ? absY - 6400 : absY; wildLevel = 12; getPA().walkableInterface(197); getPA().showOption(3, 0, "Attack", 1); if(Config.SINGLE_AND_MULTI_ZONES) { if(inMulti()) { HighAndLow(); } else { HighAndLow(); } } else { getPA().multiWay(-1); HighAndLow();} getPA().showOption(3, 0, "Attack", 1); } else if (inCwGame || inPits) { getPA().showOption(3, 0, "Attack", 1); } else if (getPA().inPitsWait()) { getPA().showOption(3, 0, "Loading...", 1); }else if (!inCwWait) { getPA().sendFrame99(0); getPA().walkableInterface(-1); getPA().showOption(3, 0, "Loading...", 1); } if(!hasMultiSign && inMulti()) { hasMultiSign = true; getPA().multiWay(1); } if(hasMultiSign && !inMulti()) { hasMultiSign = false; getPA().multiWay(-1); } if(skullTimer > 0) { skullTimer--; if(skullTimer == 1) { isSkulled = false; attackedPlayers.clear(); headIconPk = -1; skullTimer = -1; getPA().requestUpdates(); } } if(isDead && respawnTimer == -6) { getPA().applyDead(); } if(specRestore > 0) { specRestore --; } if(respawnTimer == 7) { respawnTimer = -6; getPA().giveLife(); } else if(respawnTimer == 12) { respawnTimer--; startAnimation(836); poisonDamage = -1; } if(respawnTimer > -6) { respawnTimer--; } if(freezeTimer > -6) { freezeTimer--; if (frozenBy > 0) { if (Server.playerHandler.players[frozenBy] == null) { freezeTimer = -1; frozenBy = -1; } else if (!goodDistance(absX, absY, Server.playerHandler.players[frozenBy].absX, Server.playerHandler.players[frozenBy].absY, 20)) { freezeTimer = -1; frozenBy = -1; } } } if(hitDelay > 0) { hitDelay--; } if(teleTimer > 0) { teleTimer--; if (!isDead) { if(teleTimer == 1 && newLocation > 0) { teleTimer = 0; getPA().changeLocation(); } if(teleTimer == 5) { teleTimer--; getPA().processTeleport(); } if(teleTimer == 9 && teleGfx > 0) { teleTimer--; gfx100(teleGfx); } } else { teleTimer = 0; } } if(hitDelay == 1) { if(oldNpcIndex > 0) { getCombat().delayedHit(oldNpcIndex); } if(oldPlayerIndex > 0) { getCombat().playerDelayedHit(oldPlayerIndex); } } if(attackTimer > 0) { attackTimer--; } if(attackTimer == 1){ if(npcIndex > 0 && clickNpcType == 0) { getCombat().attackNpc(npcIndex); } if(playerIndex > 0) { getCombat().attackPlayer(playerIndex); } } else if (attackTimer <= 0 && (npcIndex > 0 || playerIndex > 0)) { if (npcIndex > 0) { attackTimer = 0; getCombat().attackNpc(npcIndex); } else if (playerIndex > 0) { attackTimer = 0; getCombat().attackPlayer(playerIndex); } } if(timeOutCounter > Config.TIMEOUT) { disconnected = true; } timeOutCounter++; if(inTrade && tradeResetNeeded){ Client o = (Client) Server.playerHandler.players[tradeWith]; if(o != null){ if(o.tradeResetNeeded){ getTradeAndDuel().resetTrade(); o.getTradeAndDuel().resetTrade(); } } } } public void setCurrentTask(Future<?> task) { currentTask = task; } public Future<?> getCurrentTask() { return currentTask; } @SuppressWarnings("null") public void WalkTo(int x, int y) { newWalkCmdSteps = (Math.abs((x+y))); if (newWalkCmdSteps % 1 != 0) newWalkCmdSteps /= 1; if (++newWalkCmdSteps > walkingQueueSize) { println("Warning: WalkTo command contains too many steps (" + newWalkCmdSteps + ")."); newWalkCmdSteps = 0; } int firstStepX = absX; firstStepX -= mapRegionX*8; for (int i = 1; i < newWalkCmdSteps; i++) { newWalkCmdX[i] = x; newWalkCmdY[i] = y; } newWalkCmdX[0] = newWalkCmdY[0]; int firstStepY = absY; firstStepY -= mapRegionY*8; newWalkCmdIsRunning = ((inStream.readSignedByteC() == 1)); for (int q = 0; q < newWalkCmdSteps; q++) { newWalkCmdX[q] += firstStepX; newWalkCmdY[q] += firstStepY; } } public void FetchDice() { int rnd; String Message = ""; if (cDice == 0 || (System.currentTimeMillis() - diceDelay <= 1000)) { return; } switch (cDice) { //Dice case 15096: rnd = Misc.random(19)+1; Message = ("rolled <col=16711680>"+ rnd +"</col> on a twenty-sided die."); break; case 15094: rnd = Misc.random(11)+1; Message = ("rolled <col=16711680>"+ rnd +"</col> on a twelve-sided die."); break; case 15092: rnd = Misc.random(9)+1; Message = ("rolled <col=16711680>"+ rnd +"</col> on a ten-sided die."); break; case 15090: rnd = Misc.random(7)+1; Message = ("rolled <col=16711680>"+ rnd +"</col> on an eight-sided die."); break; case 15100: rnd = Misc.random(3)+1; Message = ("rolled <col=16711680>"+ rnd +"</col> on a four-sided die."); break; case 15086: rnd = Misc.random(5)+1; Message = ("rolled <col=16711680>"+ rnd +"</col> on a six-sided die."); break; case 15088: rnd = Misc.random(11)+1; Message = ("rolled <col=16711680>"+ rnd +"</col> on two six-sided dice."); break; case 15098: rnd = Misc.random(99)+1; Message = ("rolled <col=16711680>"+ rnd +"</col> on the percentile dice."); break; } sendMessage("You " + Message); if (clanDice){ if (clanId >= 0) { Server.clanChat.messageToClan("Clan Chat channel-mate <col=16711680>"+playerName+"</col> "+Message, clanId); } } cDice = 0; } public void useDice(int itemId, boolean clan){ if (System.currentTimeMillis() - diceDelay >= 3000) { sendMessage("Rolling..."); startAnimation(11900); diceDelay = System.currentTimeMillis(); cDice = itemId; clanDice = clan; switch (itemId) { //Gfx's case 15086: gfx0(2072); break; case 15088: gfx0(2074); break; case 15090: gfx0(2071); break; case 15092: gfx0(2070); break; case 15094: gfx0(2073); break; case 15096: gfx0(2068); break; case 15098: gfx0(2075); break; case 15100: gfx0(2069); break; } } } public void fmwalkto(int i, int j) { newWalkCmdSteps = 0; if(++newWalkCmdSteps > 50) newWalkCmdSteps = 0; int k = absX + i; k -= mapRegionX * 8; newWalkCmdX[0] = newWalkCmdY[0] = tmpNWCX[0] = tmpNWCY[0] = 0; int l = absY + j; l -= mapRegionY * 8; isRunning2 = false; isRunning = false; //for(this.i = 0; this.i < newWalkCmdSteps; this.i++) //{ newWalkCmdX[0] += k; newWalkCmdY[0] += l; //} //lastWalk = System.currentTimeMillis(); //walkDelay = 1; poimiY = l; poimiX = k; } public int tmpNWCY[] = new int[walkingQueueSize]; public int tmpNWCX[] = new int[walkingQueueSize]; public synchronized Stream getInStream() { return inStream; } public synchronized int getPacketType() { return packetType; } public synchronized int getPacketSize() { return packetSize; } public synchronized Stream getOutStream() { return outStream; } public ItemAssistant getItems() { return itemAssistant; } public PlayerAssistant getPA() { return playerAssistant; } public DialogueHandler getDH() { return dialogueHandler; } public TradeLog getTradeLog() { return tradeLog; } public WarriorsGuild getWarriorsGuild() { return warriorsGuild; } public ShopAssistant getShops() { return shopAssistant; } public Crafting getCrafting() { return crafting; } public TradeAndDuel getTradeAndDuel() { return tradeAndDuel; } public CombatAssistant getCombat() { return combatAssistant; } public ActionHandler getActions() { return actionHandler; } public PlayerKilling getKill() { return playerKilling; } public IoSession getSession() { return session; } public Potions getPotions() { return potion; } public PotionMixing getPotMixing() { return potionMixing; } public Food getFood() { return food; } /** * Skill Constructors */ public Slayer getSlayer() { return slayer; } public Runecrafting getRunecrafting() { return runecrafting; } public Woodcutting getWoodcutting() { return woodcutting; } public Summoning Summoning() { return Summoning; } public Mining getMining() { return mine; } public Cooking getCooking() { return cooking; } public Gambling getGamble() { return gamble; } public Agility getAgil() { return ag; } public Fishing getFishing() { return fish; } public Smithing getSmithing() { return smith; } public Farming getFarming() { return farming; } public Thieving getThieving() { return thieving; } public Herblore getHerblore() { return herblore; } public Firemaking getFiremaking() { return firemaking; } public SmithingInterface getSmithingInt() { return smithInt; } public Prayer getPrayer() { return prayer; } public Curse getCurse() { return curse; } public Fletching getFletching() { return fletching; } /** * Gets the prospecting class. * @return The prospecting class. */ public Prospecting getProspecting() { return prospecting; } /** * End of Skill Constructors */ /** * Second skill instances. */ private Prospecting prospecting = new Prospecting(); public void queueMessage(Packet arg1) { synchronized(queuedPackets) { //if (arg1.getId() != 41) queuedPackets.add(arg1); //else //processPacket(arg1); } } public synchronized boolean processQueuedPackets() { Packet p = null; synchronized(queuedPackets) { p = queuedPackets.poll(); } if(p == null) { return false; } inStream.currentOffset = 0; packetType = p.getId(); packetSize = p.getLength(); inStream.buffer = p.getData(); if(packetType > 0) { //sendMessage("PacketType: " + packetType); PacketHandler.processPacket(this, packetType, packetSize); processPackets++; } timeOutCounter = 0; if(processPackets > Config.MAX_PROCESS_PACKETS) { return false; } return true; } public synchronized boolean processPacket(Packet p) { synchronized (this) { if(p == null) { return false; } inStream.currentOffset = 0; packetType = p.getId(); packetSize = p.getLength(); inStream.buffer = p.getData(); if(packetType > 0) { //sendMessage("PacketType: " + packetType); PacketHandler.processPacket(this, packetType, packetSize); } timeOutCounter = 0; return true; } } public void correctCoordinates() { if (inPcGame()) { getPA().movePlayer(2657, 2639, 0); } if (inFightCaves()) { getPA().movePlayer(absX, absY, playerId * 4); sendMessage("Your wave will start in 10 seconds."); EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer c) { Server.fightCaves.spawnNextWave((Client)Server.playerHandler.players[playerId]); c.stop(); } }, 10000); } if (inRFD()) { getPA().movePlayer(1899,5363, playerId * 4+2); sendMessage("Your wave will start in 10 seconds."); EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer c) { Server.rfd.spawnNextWave((Client)Server.playerHandler.players[playerId]); c.stop(); } }, 10000); } } } [/CODE]
  22. Hello people, I'm having troubles making a certain gfx show on top of my gilded altar, Can anyone tell me how i would do that? Thank you in advance. - Im Tiko.
  23. I'm doing everything right I know I am. Then I compile it's all fine and I then I log into my client and the NPC's aren't showing up where they are supposed to. Any ideas? And sorry for posting a lot of help threads, I am new to this so yeah :P
×