Jump to content
  • 0

Set speak one time


Werdio

Question


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  248
  • Reputation:   1
  • Joined:  06/27/12
  • Last Seen:  

I want to add a function so that you can speak only one time with the NPC. x')

Here my Script;

new_zone02,38,183,4 script Novice Equip Assistent 101,{
mes "[ ^ff0000 Novice Equip Assistent^000000 ]";
mes "Willkommen, ich zeige dir wie man das Equipment bedient.";
next;
mes "[ ^ff0000 Novice Equip Assistent^000000 ]";
mes "Mit der Tastenkombination ^008000Alt^000000 + ^ff0000Q^000000 öffnet sich ein Eqiupment Fesnter.";
mes "Somit hast du einen Überblick über deine ganze Ausrüstung.";
next;
mes "[ ^ff0000 Novice Equip Assistent^000000 ]";
mes "Mit der Tastenkombination ^008000Alt^000000 + ^ff0000E^000000 öffnet sich dein Inventar.";
mes "Somit hast du einen Überblick über deine ganzen Items oder Ausrüstungen.";
next;
mes "[ ^ff0000 Novice Equip Assistent^000000 ]";
mes "Zum Schluss erhälst du ein Equipment Starter Packet.";
mes "Somit hast du einen Überblick über deine ganzen Items oder Ausrüstungen.";
   getitem 5055,1;
   getitem 2393,1;
   getitem 2414,1;
   getitem 2510,1;
   getitem 2112,1;
next;
mes "[ ^ff0000 Novice Equip Assistent^000000 ]";
mes "Gehe nun zum ^ff0000Novice Item Assistenten.^000000";
close; }

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

It can be solved by using permanent character variable.

http://upaste.me/5b897088f7f23e0

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  248
  • Reputation:   1
  • Joined:  06/27/12
  • Last Seen:  

Thank you but if I speak again with the NPC it don't say anything.

Please help me x')

*Le Script*

new_zone02,38,183,4 script Novice Equip Assistent 101,{
if (Talk > 0) end;
mes "[ ^ff0000 Novice Equip Assistent^000000 ]";
mes "Willkommen, ich zeige dir wie man das Equipment bedient.";
next;
mes "[ ^ff0000 Novice Equip Assistent^000000 ]";
mes "Mit der Tastenkombination ^008000Alt^000000 + ^ff0000Q^000000 öffnet sich ein Eqiupment Fesnter.";
mes "Somit hast du einen Überblick über deine ganze Ausrüstung.";
next;
mes "[ ^ff0000 Novice Equip Assistent^000000 ]";
mes "Mit der Tastenkombination ^008000Alt^000000 + ^ff0000E^000000 öffnet sich dein Inventar.";
mes "Somit hast du einen Überblick über deine ganzen Items oder Ausrüstungen.";
next;
mes "[ ^ff0000 Novice Equip Assistent^000000 ]";
mes "Zum Schluss erhälst du ein Equipment Starter Packet.";
mes "Somit hast du einen Überblick über deine ganzen Items oder Ausrüstungen.";
   getitem 5055,1;
   getitem 2393,1;
   getitem 2414,1;
   getitem 2510,1;
   getitem 2112,1;
next;
 set Talk, 1;
mes "[ ^ff0000 Novice Equip Assistent^000000 ]";
mes "Gehe nun zum ^ff0000Novice Healing Assistenten.^000000";
close; }

Edited by Nochii
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

Wasn't that what you asked for? o.O

http://upaste.me/85c0709db16c8a1

Edit the dialogue:

mes "You have taken the items.";

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  248
  • Reputation:   1
  • Joined:  06/27/12
  • Last Seen:  

Yes now it is right x')

I do the same thing for this script, but it didn't work

*le Script*

new_zone02,17,182,4 script Novice Healing Assistent 102,{
if (Talk > 0) {
mes "[ ^ff0000 Novice Healing Item Assistent^000000 ]";
mes "Gehe nun zum ^ff0000Novice Battle Assistenten.^000000";
close;
}
mes "[ ^ff0000 Novice Healing Item Assistent^000000 ]";
mes "Willkommen, ich zeige dir wie man das Tränke einsetzt.";
next;
mes "[ ^ff0000 Novice Healing Item Assistent^000000 ]";
mes "Mit heilenden Tränken kannst du deine HP oder SP wieder regenerieren.";
mes "Somit kannst du im Falle eines Kampfes die Oberhand gewinnen.";
next;
mes "[ ^ff0000 Novice Healing Item Assistent^000000 ]";
mes "Zum Schluss erhälst du 20 ^ff0000Novice Potions^00000.";
   getitem 569,20;
mes "Setzte sie sinnvoll ein!";
next;
 set Talk, 1;
mes "[ ^ff0000 Novice Healing Item Assistent^000000 ]";
mes "Gehe nun zum ^ff0000Novice Battle Assistenten.^000000";
close; }

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

If you want each NPC to only work once, you need to use a different variable for each one. For the first npc you can have talk1, next npc talk2, so on and so forth.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Or if you're up for it, try using bit variables, they're more efficient: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/doc/quest_variables.txt

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  248
  • Reputation:   1
  • Joined:  06/27/12
  • Last Seen:  

new_zone02,17,182,4 script Novice Healing Assistent 102,{
if (GotNovicePotion) {
 mes "Gehe nun zum ^ff0000Novice Battle Assistenten^000000.";
} else {
mes "[ ^ff0000 Novice Healing Item Assistent^000000 ]";
mes "Willkommen, ich zeige dir wie man Tränke einsetzt.";
next;
mes "[ ^ff0000 Novice Healing Item Assistent^000000 ]";
mes "Mit heilenden Tränken kannst du deine ^008000HP^000000 oder ^000088SP^000000 wieder regenerieren.";
mes "Somit kannst du im Falle eines Kampfes die Oberhand gewinnen.";
next;
mes "[ ^ff0000 Novice Healing Item Assistent^000000 ]";
mes "Zum Schluss erhälst du 20 ^008000Novice Potions^000000.";
getitem 569,20;
mes "Setzte sie sinnvoll ein!";
next;
 set Talk, 0;
mes "[ ^ff0000 Novice Healing Item Assistent^000000 ]";
mes "Gehe nun zum ^ff0000Novice Battle Assistenten.^000000";
close; }
}

Didn't work, or I'm a bad scripter ^-^"

Edited by Nochii
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  248
  • Reputation:   1
  • Joined:  06/27/12
  • Last Seen:  

Now it's right *-*

new_zone02,17,182,4 script Novice Healing Assistent 102,{
if ( spoken == 1 ) {mes "[ ^ff0000 Novice Healing Item Assistent^000000 ]";
mes "Gehe nun zum ^ff0000Novice Battle Assistenten.^000000";
close; }
mes "[ ^ff0000 Novice Healing Item Assistent^000000 ]";
mes "Willkommen, ich zeige dir wie man Tränke einsetzt.";
next;
mes "[ ^ff0000 Novice Healing Item Assistent^000000 ]";
mes "Mit heilenden Tränken kannst du deine ^008000HP^000000 oder ^000088SP^000000 wieder regenerieren.";
mes "Somit kannst du im Falle eines Kampfes die Oberhand gewinnen.";
next;
mes "[ ^ff0000 Novice Healing Item Assistent^000000 ]";
mes "Zum Schluss erhälst du 20 ^008000Novice Potions^000000.";
   getitem 569,20;
mes "Setzte sie sinnvoll ein!";
next;
 set spoken, 1;
mes "[ ^ff0000 Novice Healing Item Assistent^000000 ]";
mes "Gehe nun zum ^ff0000Novice Battle Assistenten.^000000";
close; }
}

Link to comment
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
Answer this question...

×   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...