Page 1 of 1

Ajout d'une commande /moveitem

Posted: 09 Oct 2019, 16:16
by GonTaa
Bonjour,

Serait-il possible d’implémenter une commande permettant d'équiper un item depuis son inventaire ?
Exemple : je suis mercenaire, je veux switch entre 2 mains et bouclier, actuellement je dois prendre l'item à la souris (le bouclier, ou l'arme main gauche selon le cas) depuis l'inventaire pour le mettre sur l'emplacement arme main gauche. Cela permettrait de switch rapidement, comme cela est possible sur Phoenix notamment.
/moveitem:

A command to quickly move items./moveitem <source slot> <target slot>
/moveitem totarget (<amount>) <item name>
/moveitem totarget #bag1|#bag2|#bag3|#bag4|#bag5
/moveitem fromtarget (<amount>) <item name>
/moveitem sell (<amount>) <item name>
/moveitem sell #bag1|#bag2|#bag3|#bag4|#bag5
The #bag placeholder means all items in the given bag, this is especially useful with the sell subcommand. For the totarget subcommand, if the target is another player in your realm the items will be put into the trade window, if it is a chest or vault it will be put in there. The command will try to stack items before using an empty slot.
If the first variant is used, only source and target slot, it works like the old /switch command. If the target slot is an active weapon slot, that weapon will be switched to. Example uses: Simple switching between shield and offhand weapon for BM and Mercenary or Hero 2h damage type switching. A list of slots will be provided, we’re unsure if we’ll use the internal DOL slots (40 = bag 1 slot 1, 11 = offhand) or if we’ll provide user friendly alternatives.
Source : http://playphoenix.wiki/slash-commands/

Dans l'attente de vous lire, bisous.

Re: Ajout d'une commande /moveitem

Posted: 10 Oct 2019, 07:38
by Seikiro
Est ce que tu as test la commande /switch ?

Re: Ajout d'une commande /moveitem

Posted: 10 Oct 2019, 12:51
by GonTaa
Ah non ! Je testerai ça ce week-end :) Elle permet de switch entre 2 armes dont une est dans l'inventaire ?

Re: Ajout d'une commande /moveitem

Posted: 10 Oct 2019, 12:54
by GonTaa
On dirait bien que oui ! D'après ce post : https://forums.darkageofcamelot.com/dis ... 738/switch

Re: Ajout d'une commande /moveitem

Posted: 11 Oct 2019, 09:25
by GonTaa
Je confirme que la commande /switch fonctionne ! c'est parfait merci !