Thread: [z508] How do I change a monsters defence?/Make it easier to hit [z508]

Results 1 to 7 of 7
  1. #1 [z508] How do I change a monsters defence?/Make it easier to hit [z508] 
    Registered Member JalYt Marcel's Avatar
    Join Date
    Jul 2009
    Posts
    283
    Thanks given
    2
    Thanks received
    7
    Rep Power
    33
    Remove
    Reply With Quote  
     

  2. #2  
    Extreme Donator


    Join Date
    Jul 2009
    Age
    24
    Posts
    4,350
    Thanks given
    824
    Thanks received
    1,237
    Rep Power
    1789
    Give me one of ur npcSpawns

    You can find my [Only registered and activated users can see links. ], for what I'm currently working on.
    Reply With Quote  
     

  3. #3  
    Registered Member hybrent's Avatar
    Join Date
    Nov 2007
    Posts
    566
    Thanks given
    73
    Thanks received
    90
    Rep Power
    28
    You would have to create an entire defense system....It's not quite as easy as it sounds.

    But you could just add something specifically for people with no items on.

    Like
    if (player.equipment[1] = null && player.equipment[2] = null (and so on..) {
    maxHit = maxHit + 2;
    }
    will make it so your max hit is 2 higher than it normally would if you have nothing on. You could also add so that this only works if your att/str is 1 or something.

    It's not the best solution, but it could work.
    Amused as I am not, I must continue to try. -Keith Charles
    Quote Originally Posted by Ayton View Post
    I'm sorry, but I have to agree with Hybrent.
    Reply With Quote  
     

  4. #4  
    Registered Member JalYt Marcel's Avatar
    Join Date
    Jul 2009
    Posts
    283
    Thanks given
    2
    Thanks received
    7
    Rep Power
    33
    The problem is not my max hit it's the fact that I hit over 100 0's in a row at level 3/4/5 all the low levels so hybrent how would I make it so my chance of hitting is higher, not my max hit. Seems like there must be a already built in chance of hitting a monster based on you're attack level/bonuses/monster defence.

    Thanks


    Also Sk84lyfe562 heres a spawn for you:

    Code:
    /* Slayer tower */
    spawn	=	928	3226	3222	0	0	0	0	0	Gujuo
    spawn	=	2783	3445	3563	2	0	0	0	0	Dark beast
    spawn	=	2783	3441	3566	2	0	0	0	0	Dark beast
    spawn	=	2783	3437	3559	2	0	0	0	0	Dark beast
    spawn	=	2783	3427	3556	2	0	0	0	0	Dark beast
    spawn	=	2783	3446	3570	2	0	0	0	0	Dark beast
    spawn	=	2783	3444	3559	2	0	0	0	0	Dark beast
    spawn	=	2783	3423	3556	2	0	0	0	0	Dark beast
    spawn	=	1615	3419	3565	2	3423	3569	3419	3565	Abyssal Demon
    spawn	=	1615	3410	3571	2	3414	3576	3410	3571	Abyssal Demon
    spawn	=	1615	3413	3558	2	3416	3561	3413	3558	Abyssal Demon
    spawn	=	1615	3426	3564	2	3430	3567	3426	3564	Abyssal Demon
    spawn	=	1615	3426	3571	2	3430	3572	3426	3571	Abyssal Demon
    spawn	=	1615	3421	3573	2	3423	3576	3421	3573	Abyssal Demon
    spawn	=	1610	3443	3536	2	3446	3538	3443	3536	Gargoyle
    spawn	=	1610	3442	3544	2	3446	3549	3442	3544	Gargoyle
    spawn	=	1610	3431	3547	2	3434	3551	3431	3547	Gargoyle
    spawn	=	1610	3432	3537	2	3436	3540	3432	3537	Gargoyle
    Reply With Quote  
     

  5. #5  
    Revolution
    Guest
    If you want to make an efficient defence system, it would take time. You would have to add another line of data in your config file, and make a new max hit calculator in your files. It would have to be something like:

    Code:
    //MAX HIT STUFF
    maxHit -= npcDefence*2; //2 as an example
    //blah blah append hit
    Regards,

    Brandon
    Reply With Quote  
     

  6. #6  
    Registered Member JalYt Marcel's Avatar
    Join Date
    Jul 2009
    Posts
    283
    Thanks given
    2
    Thanks received
    7
    Rep Power
    33
    Not max hit i'm looking for accuracy, anyway z508 already hs a built in accuracy system do you have any idea how to change it so you are more accurate vs a certain type of monster?
    Reply With Quote  
     

  7. #7  
    Revolution
    Guest
    Hmm, no sorry. If you were to make it from scratch, you would probably use something like lowestHit = maxHit - percentageOfAccuracy;
    Not sure.

    Brandon
    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

Tags for this Thread

View Tag Cloud

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