Thread: Help with npc definitions (osbrutality source)

Results 1 to 9 of 9
  1. #1 Help with npc definitions (osbrutality source) 
    Registered Member
    Join Date
    Dec 2013
    Posts
    125
    Thanks given
    3
    Thanks received
    3
    Rep Power
    11
    My npc defininition.json isn't being read or something i searched for it in eclipse and it came up in a few class files and the server does load it but npc still wont change. Like for example if i change the combat level of a rock crab from 13 to 130 it stays at 13. and now for some reason i can't seem to attack any npc! (the main reason i was editing the json was to make pc portals attackable since they aren't in this source.) Please help.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Dec 2017
    Posts
    37
    Thanks given
    6
    Thanks received
    3
    Rep Power
    11
    Post the error and it'll be easier for us to analyze. Picture/Text, doesn't matter.
    Reply With Quote  
     

  3. #3  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    You editing the file will not change the combat ingame. This is done client sided and not server.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jul 2016
    Age
    27
    Posts
    392
    Thanks given
    19
    Thanks received
    61
    Rep Power
    68
    You should post code what you have already for loading the file.
    Thanks,
    Mikk
    Reply With Quote  
     

  5. #5  
    Registered Member
    rebecca's Avatar
    Join Date
    Aug 2017
    Posts
    1,071
    Thanks given
    862
    Thanks received
    915
    Rep Power
    5000
    archs already answered it, its client sided ,you need to edit the definitions.. no need to keep replying
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Dec 2013
    Posts
    125
    Thanks given
    3
    Thanks received
    3
    Rep Power
    11
    im not trying to edit the combat level i just did that as a test what im actually trying to edit is the attackable boolean give me a sec and i'll post some code, its a json file
    Reply With Quote  
     

  7. #7  
    Donator


    Join Date
    Jul 2014
    Posts
    509
    Thanks given
    90
    Thanks received
    87
    Rep Power
    503
    I just saw it's OSBrutality, I'm gonna download and see. Is it json or xml?
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Dec 2013
    Posts
    125
    Thanks given
    3
    Thanks received
    3
    Rep Power
    11
    Code:
     "id": 100,
        "name": "Rock Crab",
        "examine": "needs description",
        "combat": 130,
        "size": 1,
        "attackable": true,
        "aggressive": false,
        "retreats": false,
        "poisonous": false,
        "respawn": 16,
        "maxHit": 3,
        "hitpoints": 50,
        "attackSpeed": 4,
        "attackAnim": 0,
        "defenceAnim": 0,
        "deathAnim": 0,
        "attackBonus": 1,
        "defenceMelee": 0,
        "defenceRange": 0,
        "defenceMage": 0
    the attackable is a booleanif you need more coding i can show you

    its json
    Reply With Quote  
     

  9. #9  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    Quote Originally Posted by mharner View Post
    Code:
     "id": 100,
        "name": "Rock Crab",
        "examine": "needs description",
        "combat": 130,
        "size": 1,
        "attackable": true,
        "aggressive": false,
        "retreats": false,
        "poisonous": false,
        "respawn": 16,
        "maxHit": 3,
        "hitpoints": 50,
        "attackSpeed": 4,
        "attackAnim": 0,
        "defenceAnim": 0,
        "deathAnim": 0,
        "attackBonus": 1,
        "defenceMelee": 0,
        "defenceRange": 0,
        "defenceMage": 0
    the attackable is a booleanif you need more coding i can show you

    its json
    Try change these values above 0:
    "attackAnim": 0,
    "defenceAnim": 0,
    "deathAnim": 0,
    Also debug your attack npc packet and also the methods inside of it and see where it halt (aka stops).


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    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

Similar Threads

  1. help with npcs
    By DIVINEPK in forum Help
    Replies: 0
    Last Post: 04-09-2009, 02:43 PM
  2. Just some help with npc spawning.
    By balonick in forum Help
    Replies: 4
    Last Post: 03-03-2009, 07:06 PM
  3. Help With NPC Dialogue?
    By balonick in forum Help
    Replies: 3
    Last Post: 03-02-2009, 04:05 AM
  4. Help With Npc Spawn!
    By balonick in forum Help
    Replies: 4
    Last Post: 02-25-2009, 01:04 AM
  5. Replies: 2
    Last Post: 12-08-2008, 07:24 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •