Jump to content
  • 0

Help with quest npc bloody branch


sran

Question


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  56
  • Reputation:   0
  • Joined:  11/19/12
  • Last Seen:  

Hello, this npc part of it I got it here, but I wanted to modify it a bit when I talk to the second npc and I walk the items, the npc does not even give me the bloody branch.
 
Throw me in the next month "You do not have enough to exchange that many.";
 
Someone could help me please
 
 

skull.txt

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

https://pastebin.com/xTdZuqgH

 

 

Edited by Emistry
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

NPC#1

prontera,157,171,4	script	Tratoa	489,{
if (quest_tratoa == 1) {
	mes "Que bueno terminaste la quest";
	mes "Yo tambien puedo enviarte a Tradoa";
	close;
}
mes "Esta es la ques que te llevara al mitico mapa Tratoa";
next;
mes "Tratoa esta alado de la carcel de mosntruos llamado Las Tinieblas";
next;
mes "Los mosntruos escaparon de las Tienieblas";
mes "Por lo cual constantemente mosntrus deviles y poderosos entran a tratoa diariamente";
next;
mes "Una ves completada esta Quest tendras acseso a Tratoa";
next;
mes "Primero que nada deves ablar con siertas personas dispersadas por todo Rune Midgar";
next; 
mes "Al final de todo deveras ablar con Gonsalo esta alado mio... quien es el que te enviara a Tratoa y con el deveras ablar para poder ir siempre a tratoa";
next;
mes "Ahora ve y abla con Stefan que esta en izlude";
set quest_tratoa, 1;
close;
}

 

NPC#2

nif_fild01,273,245,5	script	Skull Trader	910,{

mes "[ Skull Girl ]";
if (quest_tratoa == 1) {
mes "Hola soy el creador de las bloody branch";
mes "no le digas a nadie";
mes "Para hacer las bloody branch necesito lo siguiete";
next;
mes " "+.skull_required+" "+getitemname(.skull_id)+"";
mes " "+.skulla_required+" "+getitemname(.skulla_id)+"";
mes " "+.skulls_required+" "+getitemname(.skulls_id)+"";
mes .exchange_qty+"x "+getitemname(.exchange_id);
mes "How many ^FF0000Bloody Branch^000000 do you want to exchange?";
input .@input;
if(!.@input){
	next;
	mes "[ Skull Girl ]";
	mes "Come back again~";
	close;
}
//check if player has the needed amount of items
if(((.@input * .skull_required) < countitem(.skull_id)) || ((.@input * .skulla_required) < countitem(.skulla_id)) || ((.@input * .skulls_required) < countitem(.skulls_id))){
	next;
	mes "[ Skull Girl ]";
	mes "You don't have enough skulls to exchange that many.";
	close;
}
next;
delitem .skull_id,.skull_required * .@input;
delitem .skulla_id,.skulla_required * .@input;
delitem .skulls_id,.skulls_required * .@input;
getitem .exchange_id,.exchange_qty * .@input;
mes "[ Skull Girl ]";
mes "Oh em geeee";
mes "Yasss I hassss "+getitemname(.skull_id)+" "+getitemname(.skulla_id)+" "+getitemname(.skulls_id)+" nowwww!";
mes "Me so happy, here take these "+getitemname(.exchange_id)+"!";
close;
}

OnInit:
set.skull_required,20; //number of skulls
set.skulla_required,20; //number of skulls
set.skulls_required,20; //number of skulls
set.skull_id,604; //id # of skull
set.skulla_id,7203; //id # of skull
set.skulls_id,7347; //id # of skull
set.exchange_qty,1; //number of exchanged items
set.exchange_id,12103; //id # of exchanged item

end;    
}

 

Your script put an NPC inside another NPC which is a bad practice.

Also, your checking script was a nested if statement and it would be bypassed if someone has the correct amount of 1 type of skull.

Please try the scripts above :)

Edited by Ninja
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  56
  • Reputation:   0
  • Joined:  11/19/12
  • Last Seen:  

Sir, give me the following error ..

errorbloody.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  56
  • Reputation:   0
  • Joined:  11/19/12
  • Last Seen:  

Hello Mr. Emistry just let me do it once and now that I bring back the items I get this

Mes "You do not have enough to exchange that many.";

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

it would help if you can provide us with in-game screenshots especially your inventory.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  56
  • Reputation:   0
  • Joined:  11/19/12
  • Last Seen:  

I think the quest is not repeatable, I would like it to be repeatable, because I already did it with two different pjs and only let myself do it once

error3.png

error4.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

I'm not really sure what's wrong with yours but it works on mine.

I used @Emistry's script as I missed the OnInit part.

Capture.thumb.JPG.ac9b2119fc2f51c29fe619c11e6d5b1b.JPG

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  56
  • Reputation:   0
  • Joined:  11/19/12
  • Last Seen:  

I already saw why it is, if one takes for example more dead brach or X item that asks, throws this: Month "You do not have enough to exchange that many.";

How to make the npc of the bloody, although I take 23dead, 25 dead, 20research, because probe like this and I did not let 1

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