Rpg plugin advice

Discussion in 'Plugin Development' started by deivisxm, Apr 10, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    deivisxm

    Hi all. I dont know if i posting this in the right place, but basicly what i am doing is 4 classes with each having 27 spells. I can make all the spells, but what would be the best way to cast them? I was thinking that for example when wizard right clicks with a stick he gets inventory with items representing spells, but the problem is there will be 27 spells so in huge fights how can someone do quik combinations? I was also thinking about making mod that would always show spells in a table near your items. But would this be possible? Sorry for my english. And i only want advice. Thanks :)
     
  2. Offline

    Lorinthio

    Most rpg plugins, including my own, use a spell binding system. Meaning your player may have access to 27 spells, but lets be honest most people favor only a couple with extras for situtational playing. So if we use item binding, you have 9 hotbar slots that you can hot swap with your keyboard and right click to cast.

    So usually the line up is, they select and item, put it in their hand, type /bind <spell>, then when they right click it will cast the spell the player had bound previously.

    I haven't found a better way to do this. Other than with a hotkey plugin client side and allowing them to /cast <spell> with their own hotkeys. But players could abuse this to avoid combat and other things obviously

    Forgot to reply before so you would get the alert, so here you go =)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
  3. Offline

    deivisxm

    Ok. Keybinding seems like the only good way. But i would like to know how to check when player clicks 1,2,3, etc. ?
     
  4. Offline

    XvBaseballkidvX

    You are obviously trying to do something similar to WynnCraft's spell casting. Anyhow, you could probably accomplish it with two ArrayLists (Probably the easiest but messiest way) one being 'right_clicks' and one being 'left_clicks'.

    EDIT: Nevermind, probably wouldn't work very well.
    Ex: Having a spell cast on three right clicks.
     
  5. Offline

    deivisxm

    Nah i dont want to do wynncraft skills system with my 27 spells for each class. That would be too hard to remember. I want to get inventory slot wich is selected by numbers 1-9.
     
Thread Status:
Not open for further replies.

Share This Page