• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Solved Anyway of giving my player items using console?

Ketchup

Sailor
I want to give my player some special swords, Bartolomeu's Sword, Francis Drakes sword, etc. Is there any way I can do this using console commands?
 
Is there any way I can do this using console commands?
Yes, you can. There are already a whole bunch of examples defined in console.c:
Code:
    // Give items
     // ------------------
     /*
       GiveItem2Character(PChar, "compass3");
       EquipCharacterByItem(pchar, "compass3");
       GiveItem2Character(pchar, "spyglass4");
       EquipCharacterByItem(pchar, "spyglass4");
       GiveItem2Character(pchar, "clock2");
       EquipCharacterByItem(pchar, "clock2");
       GiveItem2Character(pchar,"blade26+3");
       EquipCharacterByItem(pchar, "blade26+3");
       GiveItem2Character(pchar,"pistol3_14");
       EquipCharacterByItem(pchar, "pistol3_14");
       GiveItem2Character(pchar, "sextant");
       GiveItem2Character(pchar, "Trident_Neptune");

       GiveItem2Character(pchar, "mapKhaelRoa");
       GiveItem2Character(pchar, "mapAntigua");
       GiveItem2Character(pchar, "mapCayman");
       GiveItem2Character(pchar, "mapConceicao");
       GiveItem2Character(pchar, "mapCuba");
       GiveItem2Character(pchar, "mapDouwesen");
       GiveItem2Character(pchar, "mapFalaiseDeFleur");
       GiveItem2Character(pchar, "mapGuadeloupe");
       GiveItem2Character(pchar, "mapHispaniola");
       GiveItem2Character(pchar, "mapIslaMuelle");
       GiveItem2Character(pchar, "mapOxbay");
       GiveItem2Character(pchar, "mapQuebradasCostillas");
       GiveItem2Character(pchar, "mapRedmond");
       GiveItem2Character(pchar, "mapSaintMartin");
       GiveItem2Character(pchar, "mapTurks");
       GiveItem2Character(pchar, "mapAruba");
       GiveItem2Character(pchar, "mapCuracao");
       GiveItem2Character(pchar, "mapEleuthera");
       GiveItem2Character(pchar, "mapRedmond_Dungeon");
       GiveItem2Character(pchar, "mapOxbay_Dungeon");
       GiveItem2Character(pchar, "mapOxbay_Cave");
       GiveItem2Character(pchar, "mapDouwesen_Cave");
       GiveItem2Character(pchar, "mapKhaelRoa_TempleGround");
       GiveItem2Character(pchar, "mapKhaelRoa_TempleUpper");
     */
Remove the /* and */ around that, set switch(1) at the top of the file and use F12.
You can add whatever other items you want. Item IDs are defined in PROGRAM\ITEMS\initItems.c .
 
Back
Top