Not Getting Reputation after raid

04/24/2019 01:28 InnoTx#1
Hey Community, my Problem is i use this code for a raid but problem is after Raid i dont get Reputation ... i tried also to Took "<Reputation Value="250000"/>" and put it to "<GiftItems>" but it still not work i use the Kint source does someone have the same problem? or did someone fix it allready ...

The Raid works rly well "its not my Code" .. and ye the only problem is the Reputation Gift.. not work

HTML Code:
<?xml version="1.0" encoding="utf-8" ?>
<Definition>
    <Globals>
        <Id Value="4" />
        <Label Value="Slade" />
        <LevelMinimum Value="1"/>
        <LevelMaximum Value="255"/>
        <StartX Value="13" />
        <StartY Value="53" />
        <Reputation Value="250000"/>
        <RequiredItems>
            <Item VNum="1131" Amount="1"/>
        </RequiredItems>
        <GiftItems>
            <Item Amount="1" VNum="302" Design="4" IsRandomRare="1"/>
        </GiftItems>
    </Globals>
    <InstanceEvents>
        <CreateMap Map="1" VNum="2542">
                <SetMonsterLockers Value="1" />
                <SetButtonLockers Value="0" />
                <RefreshRaidGoals/>
            <SummonMonster VNum="286" PositionX="38" PositionY="28" IsBoss="1">
                <OnDeath>
                    <RemoveMonsterLocker/>
                    <RefreshRaidGoals/>
                    <End Type="1"/>
                    <ThrowItem VNum="1046" PackAmount="30" MinAmount="20000" MaxAmount="20001"/>
                </OnDeath>
            </SummonMonster>
        </CreateMap>
    </InstanceEvents>
</Definition>
btw. before i poste anyshit i searched something bout it but i dont found something and ... yeah if someone have the Solve pls Share it with me.

Ty and sorry for my Bad English
04/24/2019 02:28 FI0w#2
Quote:
Originally Posted by InnoTx View Post
Hey Community, my Problem is i use this code for a raid but problem is after Raid i dont get Reputation ... i tried also to Took "<Reputation Value="250000"/>" and put it to "<GiftItems>" but it still not work i use the Kint source does someone have the same problem? or did someone fix it allready ...

The Raid works rly well "its not my Code" .. and ye the only problem is the Reputation Gift.. not work

HTML Code:
<?xml version="1.0" encoding="utf-8" ?>
<Definition>
    <Globals>
        <Id Value="4" />
        <Label Value="Slade" />
        <LevelMinimum Value="1"/>
        <LevelMaximum Value="255"/>
        <StartX Value="13" />
        <StartY Value="53" />
        <Reputation Value="250000"/>
        <RequiredItems>
            <Item VNum="1131" Amount="1"/>
        </RequiredItems>
        <GiftItems>
            <Item Amount="1" VNum="302" Design="4" IsRandomRare="1"/>
        </GiftItems>
    </Globals>
    <InstanceEvents>
        <CreateMap Map="1" VNum="2542">
                <SetMonsterLockers Value="1" />
                <SetButtonLockers Value="0" />
                <RefreshRaidGoals/>
            <SummonMonster VNum="286" PositionX="38" PositionY="28" IsBoss="1">
                <OnDeath>
                    <RemoveMonsterLocker/>
                    <RefreshRaidGoals/>
                    <End Type="1"/>
                    <ThrowItem VNum="1046" PackAmount="30" MinAmount="20000" MaxAmount="20001"/>
                </OnDeath>
            </SummonMonster>
        </CreateMap>
    </InstanceEvents>
</Definition>
btw. before i poste anyshit i searched something bout it but i dont found something and ... yeah if someone have the Solve pls Share it with me.

Ty and sorry for my Bad English
Because "<Reputation Value="250000"/>" is from TS's not Raid you should check your Source Code.
04/24/2019 02:48 InnoTx#3
Quote:
Originally Posted by FI0w View Post
Because "<Reputation Value="250000"/>" is from TS's not Raid you should check your Source Code.
I Found something with it but its not the right thing i guess....

Could you help me to find it i mean on which .cs ...


or is it stupid to Add The ReputationMedals as GiftItems ? is it Abuseable?
04/24/2019 14:25 Radiv#4
Quote:
Originally Posted by InnoTx View Post
Add The ReputationMedals as GiftItems ? is it Abuseable?
It will be the easiest way or try this
HTML Code:
                                case MapInstanceType.RaidInstance:
                                    evt.MapInstance.InstanceBag.EndState = (byte)evt.Parameter;
                                    client = evt.MapInstance.Sessions.FirstOrDefault();
                                    if (client != null)
                                    {
                                        Group grp = client?.Character?.Group;
                                        if (grp == null)
                                        {
                                            return;
                                        }
                                        if (evt.MapInstance.InstanceBag.EndState == 1 && evt.MapInstance.Monsters.Any(s => s.IsBoss))
                                        {
                                            foreach (ClientSession sess in grp.Characters.Where(s => s.CurrentMapInstance.Monsters.Any(e => e.IsBoss)))
                                            {
                                                foreach (Gift gift in grp?.Raid?.GiftItems)
                                                {
                                                    const byte rare = 0;

                                                    // TODO: add random rarity for some object
                                                    sess.Character.GiftAdd(gift.VNum, gift.Amount, rare, 0, gift.Design, gift.IsRandomRare);
                                                }
                                                // change the value how you want
                                                sess.Character.GenerateFamilyXp(1000);
                                                sess.Character.Reputation += 5000;
04/24/2019 18:12 InnoTx#5
the problem is i want to do some raids harder and the easy raids should get Less Reputation then hard raids what i mean is i want that everyraid have differends...

// change the value how you want
sess.Character.GenerateFamilyXp(1000);
sess.Character.Reputation += 5000;

Sorry for my bad english ..


can't i add here something like this

for Example :sess.Character.GiftAdd(gift.VNum, gift.Amount, rare, 0, gift.Design, gift.IsRandomRare);


sess.Character.Reputation(value);


that i can write in XML how much Reputation a player get on this Raid?
04/25/2019 00:16 FI0w#6
Quote:
Originally Posted by Radiv View Post
It will be the easiest way or try this
HTML Code:
                                case MapInstanceType.RaidInstance:
                                    evt.MapInstance.InstanceBag.EndState = (byte)evt.Parameter;
                                    client = evt.MapInstance.Sessions.FirstOrDefault();
                                    if (client != null)
                                    {
                                        Group grp = client?.Character?.Group;
                                        if (grp == null)
                                        {
                                            return;
                                        }
                                        if (evt.MapInstance.InstanceBag.EndState == 1 && evt.MapInstance.Monsters.Any(s => s.IsBoss))
                                        {
                                            foreach (ClientSession sess in grp.Characters.Where(s => s.CurrentMapInstance.Monsters.Any(e => e.IsBoss)))
                                            {
                                                foreach (Gift gift in grp?.Raid?.GiftItems)
                                                {
                                                    const byte rare = 0;

                                                    // TODO: add random rarity for some object
                                                    sess.Character.GiftAdd(gift.VNum, gift.Amount, rare, 0, gift.Design, gift.IsRandomRare);
                                                }
                                                // change the value how you want
                                                sess.Character.GenerateFamilyXp(1000);
                                                sess.Character.Reputation += 5000;
This is just awful who told you this?

@[Only registered and activated users can see links. Click Here To Register...]Creator you just can change the XML parse and use it as a variable at end