Jump to content
alexander03

Reward pagnatapos ang quest or intances

Recommended Posts

Mga lodi paturo nmn po pano po bh lagyan ng reward yung script ng intances or quest gaya ng the sign quest,kiel quest ,endless tower, etc...... na pag natapos po yung quest bibigyan ka ng reward na iset mo like valkyrie set,diablo set, or headgears set meron choices kung alin kulunin mong reward, paturo nmn po mga lodi 

Share this post


Link to post
Share on other sites

The best way to solve your issue, hanapin mo muna kung saan mag tatapos yung isang insance kung may e bibigay ba na reward pag natapos mo, then search mo nalang yung specific reward, then add ka nalang ng 

getitem <#ITEMID>,<AMOUNT>;

 

Share this post


Link to post
Share on other sites

Wla po bah kayo maam example ng script po kung ano palatandaan kung tpos n po pra po mlaman ko po kung saan ko po ilalagay get reward,amount po? 

Share this post


Link to post
Share on other sites
On 7/17/2020 at 5:39 PM, alexander03 said:

Wla po bah kayo maam example ng script po kung ano palatandaan kung tpos n po pra po mlaman ko po kung saan ko po ilalagay get reward,amount po? 

post mo dito ung script. 

  • Upvote 1

Share this post


Link to post
Share on other sites

I mean po yung script po ng endless tower , the sign quest oo mga na s rathena server mga quest po , pwd po ba lagyan ng ganun  po? 

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites
Posted (edited)
20 minutes ago, Zack- said:

Thank u sir for quick replys,

But i mean sir put it on the last npc when quest finish, and i want to put item which is selections, that the npc said choose what u want and i can pick 1 of the five ore more choices , and that choices i can set what kind of item im goint to set whats inside but only i can pick 1 and done,

 

Can u show me which part need to change and how to put the script on it?? 

Edited by alexander03

Share this post


Link to post
Share on other sites
23 minutes ago, alexander03 said:

Thank u sir for quick replys,

But i mean sir put it on the last npc when quest finish, and i want to put item which is selections, that the npc said choose what u want and i can pick 1 of the five ore more choices , and that choices i can set what kind of item im goint to set whats inside but only i can pick 1 and done,

 

Can u show me which part need to change and how to put the script on it?? 

You mean to say, you want to make new npc, can access it once the instance or quest is complete?

  • Upvote 1

Share this post


Link to post
Share on other sites

No sir, 

I mean there is a last npc that npc is the exit and said u finish the quest right? I want to insert script on that last npc ,script that she give u reward before u leave, and she give u a choices of items that u want as a reward, like  example u put a five kind of headgear sets, and u have only pick 1 of those 5 sets of choices, then done and leave, 

 

 

Share this post


Link to post
Share on other sites
On 7/20/2020 at 5:08 AM, alexander03 said:

No sir, 

I mean there is a last npc that npc is the exit and said u finish the quest right? I want to insert script on that last npc ,script that she give u reward before u leave, and she give u a choices of items that u want as a reward, like  example u put a five kind of headgear sets, and u have only pick 1 of those 5 sets of choices, then done and leave, 

 

 

I really think that you don't know the basic scripting.... 
 

Always visit this folder from server files. There is a sample folder and there is also a script_commands.txt have time to read script_commands.txt

Share this post


Link to post
Share on other sites
5 hours ago, Poring King said:

I really think that you don't know the basic scripting.... 
 

Always visit this folder from server files. There is a sample folder and there is also a script_commands.txt have time to read script_commands.txt

Im trying sir but, i am not really a developer sir ,i dont understand the codes thats why i ask people, im trying to but its hard for me,im just only a seafarer im sorry 😞

Share this post


Link to post
Share on other sites
11 hours ago, alexander03 said:

Im trying sir but, i am not really a developer sir ,i dont understand the codes thats why i ask people, im trying to but its hard for me,im just only a seafarer im sorry 😞

 

11 hours ago, alexander03 said:

Im trying sir but, i am not really a developer sir ,i dont understand the codes thats why i ask people, im trying to but its hard for me,im just only a seafarer im sorry 😞

 

Tulad ng sabi mo, hindi ka familiar sa mga code, sana inupload mo dito ang script na gusto mo lagyan para yung iba makatulong at magawa ang gusto mo,

 

On 7/20/2020 at 3:00 AM, alexander03 said:

 

https://github.com/rathena/rathena/blob/master/npc/quests/kiel_hyre_quest.txt

Kagaya po nyan sir san ko po po ilagay yung reward sir ? 

e2 kasi hindi ko sure if example mo lang ba, tulad ng pagkakasabi mo "kagaya po nyan" wala akong idea kung ang sinasabi mo is similar sya dyan or yan naba talaga ang gagamitin mo, kasi kung naiupload mo ang script na gusto mo, madami na sanang gumawa dito nyan, at doon mo ma cocompare ang script kung ano ba ang iniba

Share this post


Link to post
Share on other sites

I mean po last npc po pgmatapos ang quest mgbibigay po yung npc n yun ng reward mo tpos set mo nlng kung anong reward gusto ko mercong choices kung anong item ang eclaim ko as reward dahil natapos ko ang quest po 

Share this post


Link to post
Share on other sites
12 minutes ago, alexander03 said:

I mean po last npc po pgmatapos ang quest mgbibigay po yung npc n yun ng reward mo tpos set mo nlng kung anong reward gusto ko mercong choices kung anong item ang eclaim ko as reward dahil natapos ko ang quest po 

Hanapin mo ung npc na tinutukoy mo . Mas maganda try mo ingame para alam mo kung ano ung last na sasabihin ng npc bago mag close or matapos ung conversation nyo. Example

mes " CrazyMan ";
mes "Hello this is your first message line";
mes "This is your last message line";

Then add this >>>>> getitem itemID,Amount;

close;

 

It should be look like this

prontera,x,y,3    script     Crazyman      63,{

mes " CrazyMan ";
mes "Hello this is your first message line";
mes "This is your last message line";

getitem 7227,1;                            

close;

}

Share this post


Link to post
Share on other sites
21 minutes ago, alexander03 said:

I mean po last npc po pgmatapos ang quest mgbibigay po yung npc n yun ng reward mo tpos set mo nlng kung anong reward gusto ko mercong choices kung anong item ang eclaim ko as reward dahil natapos ko ang quest po 

I told you, iupload mo dito ang npc na gusto mong lgyan nyan. para yung iba makatulong at doon mo mapag compare ang script code doon sa with and without, ang gusto mo kasi mangyari kailangan ng if statement at set-array yan kaya nga pinapauoload ang gagamitin mong npc para doon mo mapag compare kung ano ang ginawa, hindi naman kasi sya parang addons lang na illgay lang sa single line ang gusto mo ay gagana na sya, una kasi gagamitin mo ang if statement para kung accidentally mo na close yung dialog ng last npc ay pwd mo ulit makausap para sa reward mo, kasi kung ang gusto mo is parang addons lang na llgyan mo lang ng menu sa last part, paano nalang kapag na disconnect ang player or na close ang dialogue ang mangyayari hindi na nya makakausap ang npc na yun dahil nga tapos na ang quest mo, at doon na papasok ang if statement para kung accidentally mo ma close or disconnect habang kausap ang npc maari mo ulit syang makausap dahil doon sa set-array na nilagay mo

Share this post


Link to post
Share on other sites
Posted (edited)

eto na po boss yung huling NPC bago po mag exit po , yang parang warp po 

HorrorToyFactory.txt


d2 yata na part yan boss
 

[email protected]_d,218,150,5    script    #exwp1    PORTAL,{
    mes "Will you exit?";
    next;
    if (select( "Take a look around", "Go outside" ) == 1) {
        mes "Stop the machine.";
        close;
    }
    close2;
    warp "xmas",233,300;
    end;
}

[email protected]_d,210,141,3    script    Packaged Present#1    4_TREASURE_BOX,{
    specialeffect EF_COIN;
    disablenpc instance_npcname( strnpcinfo(0) );
    initnpctimer;
    end;
 

 

 

 

screenrAthena021.jpg

screenrAthena028.jpg

Edited by alexander03
posting image

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.