Thread: [RSMOD] Issue with Godsword combat style

Results 1 to 5 of 5
  1. #1 [RSMOD] Issue with Godsword combat style 
    محمد

    Jamili's Avatar
    Join Date
    Jun 2010
    Posts
    408
    Thanks given
    93
    Thanks received
    246
    Rep Power
    307
    [IMG][/IMG]

    Tried adding godswords as its own weapon style (it was classified as a 2 handed before and gave the wrong animations etc)
    Now the attacking styles are identical to wearing nothing.

    Here are my codes:

    In fun getAttackStyle
    Code:
    pawn.hasWeaponType(WeaponType.GODSWORD) -> when (style) {
                        0 -> AttackStyle.ACCURATE
                        1 -> AttackStyle.AGGRESSIVE
                        2 -> AttackStyle.CONTROLLED
                        3 -> AttackStyle.DEFENSIVE
                        else -> AttackStyle.NONE
                    }
    In fun getCombatStyle
    Code:
    pawn.hasWeaponType(WeaponType.TWO_HANDED, WeaponType.GODSWORD) -> when (style) {
                        2 -> CombatStyle.CRUSH
                        else -> CombatStyle.SLASH
                    }
    in fun getXPMode
    Code:
    player.hasWeaponType(WeaponType.AXE, WeaponType.HAMMER, WeaponType.TWO_HANDED,
                        WeaponType.PICKAXE, WeaponType.DAGGER, WeaponType.STAFF, WeaponType.MAGIC_STAFF, WeaponType.GODSWORD) -> {
                    when (style) {
                        1 -> XpMode.STRENGTH
                        2 -> XpMode.STRENGTH
                        3 -> XpMode.DEFENCE
                        else -> XpMode.ATTACK
                    }
                }
    Would appreciate the help, it's my first day using Kotlin.
    [Only registered and activated users can see links. ]
    Spoiler for Honorable mentions:

    Quote Originally Posted by JRFisher View Post
    Dude, learn yourself, it took me 17 months of continuous research to learn how to import a project.
    Quote Originally Posted by Pollution View Post
    When? And Idiot, I'm using a oldschool, it's not easy to get the command for an oldschool, retard c u.
    Quote Originally Posted by Waj_Assif View Post
    I sayin u dont contribute never aall u do is finna tryin attack ppl and always finna start fights .......
    Quote Originally Posted by Kris View Post
    You must be one of those slower breeds.
    Quote Originally Posted by Gandalf View Post
    Just piss off ploter hacker fella dumb fuck. Your a donor to a rsps community, I'm a Mainowner to a Private Server thats 7+ Years old. Lmfao kid, get a life. Don't let my name come out of your mouth again. Or it wont end nicely for you. Understand me big boy?
    Quote Originally Posted by Tojad View Post
    What do you know about Public Void and int without this [] is only 1 integer, why?
    Reply With Quote  
     

  2. #2  
    Registered Member
    arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,628
    Thanks given
    165
    Thanks received
    271
    Rep Power
    497
    They still use the same attack styles as a 2h, so why change that?
    Why not just add a exception for godswords to use different attack animations?


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

  3. Thankful user:


  4. #3  
    Registered Member
    TheChosenOne's Avatar
    Join Date
    Jan 2013
    Posts
    975
    Thanks given
    47
    Thanks received
    160
    Rep Power
    366
    Just seems you're not sending the correct (combat)interface to the sidebar.
    Probably because it doesn't recognise the weapon.
    Somewhere in your server it should send the interface based on the worn weapon.
    Check out the code that's triggered when you wear a weapon.
    My informative threads:
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #4  
    Forum Moderator

    Corey's Avatar
    Join Date
    Feb 2012
    Posts
    1,191
    Thanks given
    847
    Thanks received
    911
    Rep Power
    3790
    best place to ask is the rsmod discord

    [Only registered and activated users can see links. ]

    Spoiler for .:
    Reply With Quote  
     

  6. #5  
    محمد

    Jamili's Avatar
    Join Date
    Jun 2010
    Posts
    408
    Thanks given
    93
    Thanks received
    246
    Rep Power
    307
    Quote Originally Posted by Corey View Post
    best place to ask is the rsmod discord
    Thank you.
    Quote Originally Posted by TheChosenOne View Post
    Just seems you're not sending the correct (combat)interface to the sidebar.
    Probably because it doesn't recognise the weapon.
    Somewhere in your server it should send the interface based on the worn weapon.
    Check out the code that's triggered when you wear a weapon.
    You are right my friend. Thank you.
    Quote Originally Posted by arch337 View Post
    They still use the same attack styles as a 2h, so why change that?
    Why not just add a exception for godswords to use different attack animations?
    Thank you for your help
    [Only registered and activated users can see links. ]
    Spoiler for Honorable mentions:

    Quote Originally Posted by JRFisher View Post
    Dude, learn yourself, it took me 17 months of continuous research to learn how to import a project.
    Quote Originally Posted by Pollution View Post
    When? And Idiot, I'm using a oldschool, it's not easy to get the command for an oldschool, retard c u.
    Quote Originally Posted by Waj_Assif View Post
    I sayin u dont contribute never aall u do is finna tryin attack ppl and always finna start fights .......
    Quote Originally Posted by Kris View Post
    You must be one of those slower breeds.
    Quote Originally Posted by Gandalf View Post
    Just piss off ploter hacker fella dumb fuck. Your a donor to a rsps community, I'm a Mainowner to a Private Server thats 7+ Years old. Lmfao kid, get a life. Don't let my name come out of your mouth again. Or it wont end nicely for you. Understand me big boy?
    Quote Originally Posted by Tojad View Post
    What do you know about Public Void and int without this [] is only 1 integer, why?
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. need help with HUGE combat issue please help
    By prodigical in forum Help
    Replies: 3
    Last Post: 03-27-2017, 12:44 AM
  2. Replies: 1
    Last Post: 05-23-2013, 04:59 PM
  3. Replies: 1
    Last Post: 05-14-2013, 06:51 AM
  4. Azure combat style issue
    By kopjekoffiee in forum Help
    Replies: 2
    Last Post: 05-30-2011, 08:15 PM
  5. Full Bandos with Godsword!
    By newservermaker in forum Tutorials
    Replies: 15
    Last Post: 01-06-2008, 05:30 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •