EOSERV Forum > EOSERV > Problem with quest
Page: << 1 >>
Problem with quest
Author Message
Post #205223 Problem with quest

HI, Im NEW! and i need help

Main

{

questname "Start"

version 1.0

}


State Begin

{

desc "Talk to Adventuer"

action AddNpcText(154, "Hello, kill for me piggy");


action AddNpcInput(154, 1, "Fuck you");


action AddNpcInput(154, 2, "Ok");


rule InputNpc(2) goto State1


rule InputNpc(1) goto State4


}


State State1

{

desc "Kill piglets "

rule KilledNpcs(230, 20) goto State2


}


State State2

{

desc "Reward"

action AddNpcText(154, "Thanks");


rule TalkedToNpc(154) goto State3


}


State State3

{

action GiveExp(500);


action Reset();


}


State State4

{

action Reset();


}




Why this is not working?

NPC id is 154

Quest scrips i write 1

3 years, 6 weeks ago
Post #205224 Re: Problem with quest

Does eoserv give you an error when it loads the quest 

3 years, 5 weeks ago
Post #205225 Re: Problem with quest

No, any error.

in EOSERV window i got "1/70 quest loaded  "

maybe is problem with npc id??? or maybe i save it wrong?

but in pub npc id is 154 and in scripts is 1, so i think is correct 

HELP! :D 


3 years, 5 weeks ago
Post #205226 Re: Problem with quest

This quest is too good. I'd pay $400 per quest that implies a peril and vicious fantasy world where people either swear at each other or conform to killing obediently. 


All jokes aside. The quest probably isn't working because quest scripts don't base their dialogues on NPC ID's, but rather the NPC's quest ID. 


So in your editPub, go to NPC 154 and take note, or change the quest ID. 

After that, make the quest file in your data folder exactly the same number/ID as what you see in the editPub for NPC 154's quest ID. 


So for example:

In your EOSERV's quest/data folder, the quest file should be named something like "00004.eqf". 

Therefore, the number 4 should be the quest ID of NPC 154 in editPub. 


Oh, also. Now you have to change all the quest ID's in the quest file. 


Example: 

action AddNpcText(154, "Hello, kill for me piggy");


action AddNpcInput(154, 1, "Fuck you");


action AddNpcInput(154, 2, "Ok");


SHOULD BE CHANGED TO: 


action AddNpcText(4, "Hello, kill for me piggy");


action AddNpcInput(4, 1, "Fuck you");


action AddNpcInput(4, 2, "Ok");


4 as an example, but put it as whatever you have the quest ID as. 


PM me for more quest questions. Or post here, actually please post here...this community is dead and some old members come here like every few weeks just to see if anything is posted. 

3 years, 5 weeks ago
Post #205227 Re: Problem with quest

Thats work! Great! My first hard quest is end. now i can die in peace. :D 

Thanks man, i will post here!community have to back to the game! if i have some of problems, i gonna make server 4fun but i want to know how to do it good! :)


english is not my main laungage so if i have some grammar fail sorry :D



and the another think.


Main

{

questname "Start"

version 1.0

}


State Begin

{

desc "Talk to Adventuer"

action AddNpcText(1, "Hello, kill for me piggy");


action AddNpcInput(1, 1, "I cant!");


action AddNpcInput(1, 2, "Ok");


rule InputNpc(2) goto State1


rule InputNpc(1) goto State4


}


State State1

{

desc "Kill piglets "

rule KilledNpcs(230, 20) goto State2


}


State State2

{

desc "Reward"

action AddNpcText(1, "Thanks");


rule TalkedToNpc(1) goto State3


}


State State3

{

action GiveItem(1, 0);


action GiveItem(21, 0);


action End();


}


State State4

{

action Reset();


}




why in reward i got 0 amount of items?

when i make action i write 21 item ID and amount 1, but here is 0 and when i try to change it window with "amount" is dark and i cant write anythink there

3 years, 5 weeks ago
Post #205228 Re: Problem with quest

Not too sure what you mean by dark? What text editor are you using? 

action GiveItem(1, 1);


action GiveItem(21, 1);


Maybe just copy this and paste/replace it with the other two lines? 

I would look further into that problem though.

3 years, 5 weeks ago
Page: << 1 >>

EOSERV Forum > EOSERV > Problem with quest