• 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 Improved console for jumpstarting (And cheaters).

Jelle

HoO Team Member
Creative Support
Provisional
Storm Modder
I maked with help from my brother this:
The bugs are fixed. This is the final Console!!!!
I find new ideas so its not finished i want now the abilities ALL on but one not.
if someone can help me that will be great.
 

Attachments

  • console.c
    11.4 KB · Views: 130
Eeeeeeuuuhhhm...
is this still on my starterpack? :confused:

and Pieter?
wheres the 'NL' loop waar je het gisteren over had 'NL'?
 
Eeeeeeuuuhhhm...
is this still on my starterpack? :confused:
No, it's not. Luffy swapped subjects in mid-thread. Bit confusing, I know. :facepalm

and Pieter?
wheres the 'NL' loop waar je het gisteren over had 'NL'?
Ik had het over een "FOR" loop. Deze om precies te zijn:
Code:
                int idx = GetMainCharacterIndex();
                aref arPerksRoot; makearef(arPerksRoot,ChrPerksList.list);
                int chrPerksQ = GetAttributesNum(arPerksRoot);
                for (i = 0; i <= GetPassengersQuantity(PChar); i++) {
                    if (i > 0) {
                        idx = GetPassenger(PChar, i - 1);
                        if (idx < 0) continue;

                        GiveItem2Character(GetCharacter(idx), "blade13+1");
                        EquipCharacterByItem(GetCharacter(idx), "blade13+1");
                        GiveItem2Character(GetCharacter(idx), "pistol5+2");
                        EquipCharacterByItem(GetCharacter(idx), "pistol5+2");
                        GiveItem2Character(GetCharacter(idx), "commonarmor");
                        EquipCharacterByItem(GetCharacter(idx), "commonarmor");
                        TakeNItems(GetCharacter(idx), "gunpowder", 6);
                        TakeNItems(GetCharacter(idx), "pistolbullets", 6);
                    }

                    for (int s = 0; s < 10; s++) {
                        string skillname = GetSkillName(s);
                        characters[idx].Skill.(skillname) = 10;
                    }

                    for (int p = 0; p < chrPerksQ; p++)
                    {
                        string perkName = GetAttributeName(GetAttributeN(arPerksRoot, p));
                        characters[idx].perks.list.(perkName) = true;
                    }
                }
 
I did it like this:​
Code:
                    for (int s = 0; s < 10; s++)
                    {
                        string skillname = GetSkillName(s);
                        characters[idx].Skill.(skillname) = 10;
                    }
 
                    for (int p = 0; p < chrPerksQ; p++)
                    {
                        string perkName = GetAttributeName(GetAttributeN(arPerksRoot, p));
                        characters[idx].perks.list.(perkName) = true;
                    }
Do you think it will work?
And Pieter, i think you like this https://encrypted-tbn2.gstatic.com/...dI4yGUCEf1MzjabWHGBEXLrLixqoBrYwzoPDvXGFov65j
Download this everyone!
 

Attachments

  • console.c
    12.1 KB · Views: 93
Yes!!!:monkeydance
And my new Avatar!
Look at my new status for more information.
 
Back
Top