Jump to content
  • 0

I cant get this part work (/-_-)/ _l__l_ [Solved]


Dolphin86

Question


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  757
  • Reputation:   17
  • Joined:  01/07/12
  • Last Seen:  

Well the point is when i kill the Guardian, it suppose to set my quest, but some how it dint work

need help pls....

iz_dun03,245,262,4 script Haris 512,{
if( kahoquest == 12 ){
  mes "[^00FF00Haris^000000]";
  mes "What are you doing here?";
  mes "its dangeous!!!!!!";
  next;
  mes "[^00FF00Haris^000000]";
  mes "Go back from where you came from";
  mes "this place is not a child play";
  mes "ground";
  set kahoquest,13;
  close;
}
if( kahoquest == 13 ){
  mes "[^00FF00Haris^000000]";
  mes "Dint you get it?";
  next;
  mes "[^00FF00Haris^000000]";
  mes "very well, this should";
  mes "should convince you!";
  next;
  mes "[^00FF00Haris^000000]";
  mes "Try kill my Guardian";
  close2;
  monster "iz_dun03",245,256,"Guardian",1756,1,strnpcinfo(0)+"::OnGuardianDead";
  end;
}
if( kahoquest == 14 ){
  mes "[^00FF00Haris^000000]";
  mes "Hmm..... you knock down";
  mes "my guardian";
  mes "................";
  next;
  mes "[^00FF00Haris^000000]";
  mes "Then you are worthy";
  mes "i shall give you a Secret";
  next;
  mes "[^00FF00Haris^000000]";
  mes "Beyond this enterance";
  mes "there is a single chest";
  next;
  mes "[^00FF00Haris^000000]";
  mes "Its been told that a";
  mes "legendary power concealed";
  mes "within it";
  next;
  mes "[^00FF00Haris^000000]";
  mes "But! be warn, there will";
  mes "be a test";
  next;
  mes "[^00FF00Haris^000000]";
  mes "Good luck i hope for";
  mes "the best of your";
  mes "quest";
  set kahoquest,15;
  close;
} else {
  mes "[^00FF00Haris^000000]";
  mes "I must find that";
  mes "legendary power";
  close;
}
OnGuardianDead:
message strcharinfo(0),"[^00FF00Haris^000000]: "+strcharinfo(0)+" you killed a guardian";
set kahoquest,14;
end;
}

Solve:

iz_dun03,245,262,4 script Haris 512,{
if( kahoquest == 12 ){
  mes "[^00FF00Haris^000000]";
  mes "What are you doing here?";
  mes "its dangeous!!!!!!";
  next;
  mes "[^00FF00Haris^000000]";
  mes "Go back from where you came from";
  mes "this place is not a child play";
  mes "ground";
  set kahoquest,13;
  close;
}
if( kahoquest == 13 ){
  if(.spawned){
  mes "[^00FF00Haris^000000]";
  mes "Go find my Guardian";
  mes "and knock him down";
  mes "if your that strong";
  mes "enough";
  close;
  }
  mes "[^00FF00Haris^000000]";
  mes "Dint you get it?";
  next;
  mes "[^00FF00Haris^000000]";
  mes "very well, this should";
  mes "should convince you!";
  next;
  mes "[^00FF00Haris^000000]";
  mes "Try kill my Guardian";
  close2;
  monster "iz_dun03",245,256,"Guardian",1756,1,"Haris::OnGuardDead";
  set .spawned,1;
  end;
}
if( kahoquest == 14 ){
  mes "[^00FF00Haris^000000]";
  mes "Hmm..... you knock down";
  mes "my guardian";
  mes "................";
  next;
  mes "[^00FF00Haris^000000]";
  mes "Then you are worthy";
  mes "i shall give you a Secret";
  next;
  mes "[^00FF00Haris^000000]";
  mes "Beyond this enterance";
  mes "there is a single chest";
  next;
  mes "[^00FF00Haris^000000]";
  mes "Its been told that a";
  mes "legendary power concealed";
  mes "within it";
  next;
  mes "[^00FF00Haris^000000]";
  mes "But! be warn, there will";
  mes "be a test";
  next;
  mes "[^00FF00Haris^000000]";
  mes "Good luck i hope for";
  mes "the best of your";
  mes "quest";
  set kahoquest,15;
  close;
} else {
  mes "[^00FF00Haris^000000]";
  mes "I must find that";
  mes "legendary power";
  close;
}
OnGuardDead:
message strcharinfo(0),"[Haris]: "+strcharinfo(0)+" you killed a guardian";
specialeffect2 371;
set kahoquest,14;
set .spawned,0;
end;
}
Edited by dolphincute
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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