EOSERV Forum > EO Server Building > Remove Item (Quest)
Page: << 1 >>
Remove Item (Quest)
Author Message
Post #197292 Remove Item (Quest)

Hi. This was my first quest I wrote on my own. Everything is going according to plan except for one thing. The items that I have gathered for the quest wont get removed. Any help would be appreciated.

State State4
{
        desc        "Return To Cujo"
       
        action     AddNpcText(26, "Omg, You did it!!!");
        action     AddNpcText(26, "You dont know how proud of a man you've made me!");
        action     RemoveItem(491,10);
        action     GiveItem(1,1000);
        action     ShowHint("You have received 1000 coins from Cujo.");
        action     End();
}

---
"Straight outta cago"
8 years, 34 weeks ago
Post #197296 Re: Remove Item (Quest)

Check the item number is correct for your RemoveItem rule. It appears to be proper, although not really an optimal way to end a quest state.

8 years, 34 weeks ago
Post #197306 Re: Remove Item (Quest)

I'm pretty sure it's because you're using EOSOURCE and their EO+ system sucks? Because I remember using scripts like this and having them working all the time, until I loaded them on EOSOURCE. Try doing something like this:

State State4
{
        desc        "Return To Cujo"
       
        action     AddNpcText(26, "Omg, You did it!!!");
        action     AddNpcText(26, "You dont know how proud of a man you've made me!");
        action  AddNpcInput ( 26 , 1 , "Give items to Cujo" );
        rule    InputNpc ( 1 ) goto Reward1
}

state Reward1

{

        action     RemoveItem(491,10);

        action     GiveItem(1,1000);

        action     ShowHint("You have received 1000 coins from Cujo.");

        rule        GotItems(1,1000) goto EndState

}

/// And As Apollo Mentioned ///

state EndState

{

action End();

}


If that doesnt work, change the second state to this:

    action     RemoveItem(491,10);

        action     GiveItem(1,1000);

        action     ShowHint("You have received 1000 coins from Cujo.");

        action     AddNpcText(26, "Here is your reward. Enjoy yourself!");

        rule        TalkedToNpc(26) goto EndState

8 years, 34 weeks ago
Post #197307 Re: Remove Item (Quest)

Actually, the bug with the End() action might be an EOSERV bug. Needs further investigation. Probably a similar issue as the Reset() bug Sausage recently posted. Seems like the state moved and left some actions incomplete. The above quest will work as a work around.

8 years, 34 weeks ago
Post #197311 Re: Remove Item (Quest)
Apollo posted: (10th Aug 2015, 03:52 am)

Actually, the bug with the End() action might be an EOSERV bug. Needs further investigation. Probably a similar issue as the Reset() bug Sausage recently posted. Seems like the state moved and left some actions incomplete. The above quest will work as a work around.


i hope the big is fixed soo as thats kinda idk serious?


how to quest if quest is broke

---
Insomniac:I like how in the lounges forum description sausage says "Bitches go crazy." and that's
exactly what you do!
Pixel artist | Mapping artist | Alternative artist | Heavenly Karma | oldbie | top 50  |
Attention whore | main player |
8 years, 34 weeks ago
Page: << 1 >>

EOSERV Forum > EO Server Building > Remove Item (Quest)